	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_check_media               ## -- Begin function wlan_check_media
	.p2align	4, 0x90
_wlan_check_media:                      ## @wlan_check_media
	.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, %rbx
	leaq	-48(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-32(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	cmpq	$0, -48(%rbp)
	je	LBB0_4
## %bb.2:
	movq	_IFM_AVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_4
## %bb.3:
	movl	-36(%rbp), %edi
	callq	_IFM_TYPE
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sock,4,2                       ## @sock
	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.comm	_IFM_AVALID,4,2                 ## @IFM_AVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_check_media               ; -- Begin function wlan_check_media
	.p2align	2
_wlan_check_media:                      ; @wlan_check_media
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #24]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x8, _sock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	mov	x8, x0
	mov	w0, #0
	tbnz	x8, #63, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w8, [sp, #16]
Lloh6:
	adrp	x9, _IFM_AVALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFM_AVALID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [sp, #20]
	bl	_IFM_TYPE
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sock,4,2                       ; @sock
	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.comm	_IFM_AVALID,4,2                 ; @IFM_AVALID
.subsections_via_symbols
