	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_handle_wep_reauth
_ath10k_wmi_handle_wep_reauth:          ## @ath10k_wmi_handle_wep_reauth
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	movl	(%rbx), %edi
	callq	_ieee80211_is_auth
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %edi
	callq	_ieee80211_has_protected
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	callq	_ieee80211_hdrlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_IEEE80211_WEP_IV_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	%eax, 8(%r12)
	jb	LBB0_5
## %bb.3:
	movq	(%r12), %rcx
	decl	%eax
	movl	(%rcx,%rax,4), %r12d
	movq	_WEP_KEYID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movq	%rbx, %rdi
	callq	_ieee80211_get_SA
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_ath10k_mac_is_peer_wep_key_set
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rcx
	callq	_ath10k_dbg
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_WEP_IV_LEN,4,2       ## @IEEE80211_WEP_IV_LEN
	.comm	_WEP_KEYID_SHIFT,4,2            ## @WEP_KEYID_SHIFT
	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac wep key present for peer %pM\n"

	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.no_dead_strip	_ath10k_wmi_handle_wep_reauth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_handle_wep_reauth
_ath10k_wmi_handle_wep_reauth:          ; @ath10k_wmi_handle_wep_reauth
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x1]
	ldr	w0, [x21]
	bl	_ieee80211_is_auth
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x21]
	bl	_ieee80211_has_protected
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x21]
	bl	_ieee80211_hdrlen
	ldr	w9, [x22, #8]
Lloh0:
	adrp	x8, _IEEE80211_WEP_IV_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_WEP_IV_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w0
	cmp	w9, w8
	b.lo	LBB0_5
; %bb.3:
	ldr	x9, [x22]
	sub	w8, w8, #1
	ldr	w8, [x9, w8, uxtw #2]
Lloh3:
	adrp	x9, _WEP_KEYID_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WEP_KEYID_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w22, w8, w9
	mov	x0, x21
	bl	_ieee80211_get_SA
	mov	x21, x0
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_ath10k_mac_is_peer_wep_key_set
	mov	x22, x0
	mov	x0, x20
	bl	_spin_unlock_bh
	cbz	w22, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_ath10k_dbg
Lloh11:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_WEP_IV_LEN,4,2       ; @IEEE80211_WEP_IV_LEN
	.comm	_WEP_KEYID_SHIFT,4,2            ; @WEP_KEYID_SHIFT
	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac wep key present for peer %pM\n"

	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.no_dead_strip	_ath10k_wmi_handle_wep_reauth
.subsections_via_symbols
