	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_media_status         ## -- Begin function ieee80211_media_status
	.p2align	4, 0x90
_ieee80211_media_status:                ## @ieee80211_media_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	32(%rbx), %r14
	movq	_IFM_AVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	(%rbx), %rcx
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_S_SLEEP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.3:
	movq	_IEEE80211_MODE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_2:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movl	(%r14), %edi
	callq	_ieee80211_chan2mode
	movl	%eax, %r15d
LBB0_4:
	movq	8(%rbx), %rdi
	movl	(%r14), %esi
	callq	_media_status
	movl	%eax, 4(%r12)
	movq	24(%rbx), %rcx
	movl	%r15d, %edx
	movq	(%rcx,%rdx,8), %rsi
	movq	_IEEE80211_FIXED_RATE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_8
## %bb.5:
	movq	8(%rbx), %rcx
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.7:
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
LBB0_8:
	leaq	4(%r12), %rbx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ieee80211_rate2media
	jmp	LBB0_9
LBB0_6:
	movq	_IFM_AUTO@GOTPCREL(%rip), %rbx
LBB0_9:
	orl	(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_11
## %bb.10:
	movl	%eax, 8(%r12)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFM_AVALID,4,2                 ## @IFM_AVALID
	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.comm	_IEEE80211_S_SLEEP,8,3          ## @IEEE80211_S_SLEEP
	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
	.comm	_IEEE80211_MODE_AUTO,4,2        ## @IEEE80211_MODE_AUTO
	.comm	_IEEE80211_FIXED_RATE_NONE,8,3  ## @IEEE80211_FIXED_RATE_NONE
	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
	.comm	_IFM_AUTO,4,2                   ## @IFM_AUTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_media_status         ; -- Begin function ieee80211_media_status
	.p2align	2
_ieee80211_media_status:                ; @ieee80211_media_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x23, [x0]
	ldr	x20, [x23, #32]
Lloh0:
	adrp	x8, _IFM_AVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFM_AVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	x9, [x23]
Lloh3:
	adrp	x10, _IEEE80211_S_RUN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_S_RUN@GOTPAGEOFF]
Lloh5:
	adrp	x11, _IEEE80211_S_SLEEP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IEEE80211_S_SLEEP@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
Lloh9:
	adrp	x22, _IFM_ACTIVE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IFM_ACTIVE@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x20]
	bl	_ieee80211_chan2mode
	mov	x21, x0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _IEEE80211_MODE_AUTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_MODE_AUTO@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
LBB0_3:
	ldr	x0, [x23, #8]
	ldr	w1, [x20]
	bl	_media_status
	mov	x24, x19
	str	w0, [x24, #4]!
	ldr	x8, [x23, #24]
	ldr	x1, [x8, w21, uxtw #3]
Lloh14:
	adrp	x8, _IEEE80211_FIXED_RATE_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_FIXED_RATE_NONE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x23, #8]
Lloh17:
	adrp	x9, _IEEE80211_M_STA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x23, #16]
	ldr	x1, [x8]
LBB0_6:
	mov	x0, x20
	mov	x2, x21
	bl	_ieee80211_rate2media
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x24, _IFM_AUTO@GOTPAGE
Lloh21:
	ldr	x24, [x24, _IFM_AUTO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x19, #4]
	ldr	w9, [x19]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.9:
	str	w8, [x19, #8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IFM_AVALID,4,2                 ; @IFM_AVALID
	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.comm	_IEEE80211_S_SLEEP,8,3          ; @IEEE80211_S_SLEEP
	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
	.comm	_IEEE80211_MODE_AUTO,4,2        ; @IEEE80211_MODE_AUTO
	.comm	_IEEE80211_FIXED_RATE_NONE,8,3  ; @IEEE80211_FIXED_RATE_NONE
	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
	.comm	_IFM_AUTO,4,2                   ; @IFM_AUTO
.subsections_via_symbols
