	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_interface_link_status          ## -- Begin function interface_link_status
	.p2align	4, 0x90
_interface_link_status:                 ## @interface_link_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-32(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	%r15d, %edx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.6:
	movl	%ebx, %edi
	callq	_close
	movl	-40(%rbp), %ecx
	movq	_IFM_AVALID@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.7:
	movl	-36(%rbp), %edx
	movq	_IFM_NMASK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	andl	$-2, %edx
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.8:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	setne	%al
	jmp	LBB0_9
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_capsyslog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	callq	_cap_syslog
LBB0_5:
	movl	%ebx, %edi
	callq	_close
	movl	$1, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't create socket"

	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_capsyslog,4,2                  ## @capsyslog
	.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_link_status          ; -- Begin function interface_link_status
	.p2align	2
_interface_link_status:                 ; @interface_link_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [sp, #8]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh8:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_close
	ldr	w8, [sp]
Lloh11:
	adrp	x9, _IFM_AVALID@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFM_AVALID@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
	ldr	w9, [sp, #4]
Lloh14:
	adrp	x10, _IFM_NMASK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IFM_NMASK@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	and	w9, w9, w10
	and	w9, w9, #0xfffffffe
	cmp	w9, #128
	b.ne	LBB0_9
; %bb.5:
Lloh17:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _EINVAL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh26:
	adrp	x8, _capsyslog@GOTPAGE
Lloh27:
	ldr	x8, [x8, _capsyslog@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_cap_syslog
LBB0_8:
	mov	x0, x20
	bl	_close
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't create socket"

	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_capsyslog,4,2                  ; @capsyslog
	.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
