	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_interface_status               ## -- Begin function interface_status
	.p2align	4, 0x90
_interface_status:                      ## @interface_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movl	8(%rdi), %r12d
	leaq	-88(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	-72(%rbp), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-88(%rbp), %eax
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movq	_IFF_RUNNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_12
## %bb.3:
	cmpl	$0, 12(%r13)
	je	LBB0_4
LBB0_11:
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_1:
	movq	_capsyslog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	callq	_cap_syslog
LBB0_12:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-64(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	-52(%rbp), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_5
## %bb.8:
	movl	-60(%rbp), %eax
	movq	_IFM_AVALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movl	-56(%rbp), %ecx
	movq	_IFM_NMASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_12
## %bb.10:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
	jmp	LBB0_12
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_capsyslog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rcx
	callq	_cap_syslog
LBB0_7:
	movl	$1, 12(%r13)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_capsyslog,4,2                  ## @capsyslog
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(SIOCGIFFLAGS) on %s: %m"

	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_RUNNING,4,2                ## @IFF_RUNNING
	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"ioctl(SIOCGIFMEDIA) on %s: %m"

	.comm	_IFM_AVALID,4,2                 ## @IFM_AVALID
	.comm	_IFM_NMASK,4,2                  ## @IFM_NMASK
	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_interface_status               ; -- Begin function interface_status
	.p2align	2
_interface_status:                      ; @interface_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w21, [x0, #8]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w0, [sp, #40]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w8, [sp, #24]
Lloh3:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IFF_RUNNING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IFF_RUNNING@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_7
LBB0_3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _capsyslog@GOTPAGE
Lloh10:
	ldr	x8, [x8, _capsyslog@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_cap_syslog
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w0, [sp, #12]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh17:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_11
; %bb.8:
	ldr	w8, [sp, #4]
Lloh20:
	adrp	x9, _IFM_AVALID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IFM_AVALID@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.9:
	ldr	w9, [sp, #8]
Lloh23:
	adrp	x10, _IFM_NMASK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IFM_NMASK@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	and	w9, w9, w10
	and	w9, w9, #0xfffffffe
	cmp	w9, #128
	b.ne	LBB0_5
; %bb.10:
Lloh26:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
	b	LBB0_5
LBB0_11:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _EINVAL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
Lloh35:
	adrp	x8, _capsyslog@GOTPAGE
Lloh36:
	ldr	x8, [x8, _capsyslog@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.1@PAGE
Lloh42:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_cap_syslog
LBB0_13:
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_capsyslog,4,2                  ; @capsyslog
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(SIOCGIFFLAGS) on %s: %m"

	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_RUNNING,4,2                ; @IFF_RUNNING
	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"ioctl(SIOCGIFMEDIA) on %s: %m"

	.comm	_IFM_AVALID,4,2                 ; @IFM_AVALID
	.comm	_IFM_NMASK,4,2                  ; @IFM_NMASK
	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
.subsections_via_symbols
