	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_auth_challenge
_ieee80211_auth_challenge:              ## @ieee80211_auth_challenge
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	(%rsi), %rdi
	movq	%rdi, %rax
	subq	%rsi, %rax
	sarq	$2, %rax
	subq	%rax, %rdx
	leaq	-48(%rbp), %rcx
	movq	%rdx, %rsi
	xorl	%edx, %edx
	callq	_ieee802_11_parse_elems
	cmpq	$0, -40(%rbp)
	je	LBB0_2
## %bb.1:
	movl	$4, (%r12)
	movq	(%r14), %rdi
	movq	%r14, %rsi
	callq	_drv_mgd_prepare_tx
	movq	_IEEE80211_HW_REPORTS_TX_ACK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movq	_IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_TX_INTFL_MLME_CONN_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	movl	24(%r12), %edx
	movq	-48(%rbp), %r9
	movq	-40(%rbp), %r8
	addq	$-2, %r8
	addq	$2, %r9
	movq	16(%r12), %rax
	movl	(%rax), %eax
	movl	12(%r12), %r10d
	movl	4(%r12), %r11d
	movl	8(%r12), %r15d
	movq	%r14, %rdi
	movl	$3, %esi
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%r11
	pushq	%r15
	pushq	%r10
	pushq	%rax
	pushq	%rax
	callq	_ieee80211_send_auth
	addq	$48, %rsp
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HW_REPORTS_TX_ACK_STATUS,4,2 ## @IEEE80211_HW_REPORTS_TX_ACK_STATUS
	.comm	_IEEE80211_TX_CTL_REQ_TX_STATUS,4,2 ## @IEEE80211_TX_CTL_REQ_TX_STATUS
	.comm	_IEEE80211_TX_INTFL_MLME_CONN_TX,4,2 ## @IEEE80211_TX_INTFL_MLME_CONN_TX
	.no_dead_strip	_ieee80211_auth_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_auth_challenge
_ieee80211_auth_challenge:              ; @ieee80211_auth_challenge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldp	x21, x20, [x0]
	ldr	x0, [x1]
	sub	x8, x0, x1
	sub	x1, x2, x8, asr #2
	add	x3, sp, #16
	mov	w2, #0
	bl	_ieee802_11_parse_elems
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #4
	str	w8, [x20]
	ldr	x0, [x19]
	mov	x1, x19
	bl	_drv_mgd_prepare_tx
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IEEE80211_HW_REPORTS_TX_ACK_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HW_REPORTS_TX_ACK_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _IEEE80211_TX_INTFL_MLME_CONN_TX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IEEE80211_TX_INTFL_MLME_CONN_TX@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w9, w8
	csel	w8, wzr, w10, eq
	ldr	w2, [x20, #24]
	ldp	x10, x9, [sp, #16]
	sub	x4, x9, #2
	add	x5, x10, #2
	ldr	x9, [x20, #16]
	ldr	w6, [x9]
	ldp	w10, w9, [x20, #8]
	ldr	w11, [x20, #4]
	stp	w11, w8, [sp, #8]
	stp	w9, w10, [sp]
	mov	x0, x19
	mov	w1, #3
	mov	w3, #0
	mov	x7, x6
	bl	_ieee80211_send_auth
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HW_REPORTS_TX_ACK_STATUS,4,2 ; @IEEE80211_HW_REPORTS_TX_ACK_STATUS
	.comm	_IEEE80211_TX_CTL_REQ_TX_STATUS,4,2 ; @IEEE80211_TX_CTL_REQ_TX_STATUS
	.comm	_IEEE80211_TX_INTFL_MLME_CONN_TX,4,2 ; @IEEE80211_TX_INTFL_MLME_CONN_TX
	.no_dead_strip	_ieee80211_auth_challenge
.subsections_via_symbols
