	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_media_get_status      ## -- Begin function ifconfig_media_get_status
	.p2align	4, 0x90
_ifconfig_media_get_status:             ## @ifconfig_media_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_IFM_TYPE
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.4:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.6:
	movl	4(%rbx), %edi
	callq	_IFM_OPMODE
	movq	_IFM_IEEE80211_STA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
LBB0_7:
	cmoveq	%rcx, %rax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"active"

L_.str.1:                               ## @.str.1
	.asciz	"no carrier"

	.comm	_IFM_IEEE80211_STA,4,2          ## @IFM_IEEE80211_STA
L_.str.2:                               ## @.str.2
	.asciz	"associated"

L_.str.3:                               ## @.str.3
	.asciz	"running"

L_.str.4:                               ## @.str.4
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_media_get_status      ; -- Begin function ifconfig_media_get_status
	.p2align	2
_ifconfig_media_get_status:             ; @ifconfig_media_get_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_IFM_TYPE
	sub	w8, w0, #129
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, l_.str@PAGE
Lloh4:
	add	x10, x10, l_.str@PAGEOFF
Lloh5:
	adrp	x11, l_.str.1@PAGE
Lloh6:
	add	x11, x11, l_.str.1@PAGEOFF
	tst	w9, w8
	csel	x0, x11, x10, eq
	b	LBB0_7
LBB0_2:
	cmp	w0, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_IFM_OPMODE
Lloh10:
	adrp	x8, _IFM_IEEE80211_STA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IFM_IEEE80211_STA@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh15:
	adrp	x10, l_.str.2@PAGE
Lloh16:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w0, w8
	csel	x0, x10, x9, eq
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"active"

l_.str.1:                               ; @.str.1
	.asciz	"no carrier"

	.comm	_IFM_IEEE80211_STA,4,2          ; @IFM_IEEE80211_STA
l_.str.2:                               ; @.str.2
	.asciz	"associated"

l_.str.3:                               ; @.str.3
	.asciz	"running"

l_.str.4:                               ; @.str.4
	.space	1

.subsections_via_symbols
