	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_rx_h_michael_mic_verify ## -- Begin function ieee80211_rx_h_michael_mic_verify
	.p2align	4, 0x90
_ieee80211_rx_h_michael_mic_verify:     ## @ieee80211_rx_h_michael_mic_verify
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MICHAEL_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	32(%r14), %r13
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, %rbx
	movq	8(%r13), %r12
	movl	(%r12), %edi
	callq	_ieee80211_is_data_present
	movq	_RX_CONTINUE@GOTPCREL(%rip), %rdi
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %ecx
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rdx
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdx), %edx
	orl	%eax, %edx
	testl	%ecx, %edx
	je	LBB0_6
## %bb.2:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.3:
	movq	8(%r14), %rax
	movq	16(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_15
LBB0_4:
	movl	8(%rax), %esi
	jmp	LBB0_16
LBB0_6:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	(%rax), %rdx
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_5
## %bb.8:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.9:
	movq	16(%r14), %rdx
	movq	(%rdx), %rdx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_11
## %bb.10:
	cmpl	$0, 8(%rax)
	jne	LBB0_17
LBB0_11:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_26
LBB0_12:
	incl	24(%rax)
	movq	16(%r14), %rdi
	jmp	LBB0_4
LBB0_13:
	testl	%ecx, %eax
	je	LBB0_20
LBB0_5:
	movq	%rdi, %rbx
	jmp	LBB0_28
LBB0_15:
	movl	$-1, %esi
LBB0_16:
	movq	8(%r13), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ecx, %ecx
	callq	_mac80211_ev_michael_mic_failure
LBB0_17:
	movq	_RX_DROP_UNUSABLE@GOTPCREL(%rip), %rbx
LBB0_28:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_33
## %bb.29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.21:
	movq	(%rax), %rcx
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
LBB0_22:
	movl	28(%r14), %ecx
	movq	32(%rax), %rax
	movq	(%r14), %rdx
	movl	%ecx, 4(%rax,%rdx,8)
	movl	24(%r14), %ecx
	movl	%ecx, (%rax,%rdx,8)
	jmp	LBB0_5
LBB0_26:
	movl	(%r12), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, %r12d
	movq	_MICHAEL_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	movq	_RX_DROP_UNUSABLE@GOTPCREL(%rip), %rbx
	cmpl	%eax, (%r13)
	jb	LBB0_28
## %bb.27:
	movq	32(%r14), %rdi
	callq	_skb_linearize
	testq	%rax, %rax
	jne	LBB0_28
## %bb.30:
	movq	8(%r13), %rsi
	movl	%r12d, %eax
	leaq	(%rsi,%rax,4), %rdx
	movl	(%r13), %ecx
	movq	_MICHAEL_MIC_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	addl	%r12d, %eax
	subl	%eax, %ecx
	movq	8(%r14), %rax
	movq	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	shlq	$2, %rdi
	addq	16(%rax), %rdi
	movq	%rdx, %rbx
	movq	%rcx, %r12
	movq	%r15, %r8
	callq	_michael_mic
	leaq	(%rbx,%r12,4), %rsi
	movq	_MICHAEL_MIC_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	8(%r14), %rax
	jmp	LBB0_12
LBB0_32:
	movl	(%r13), %esi
	subl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_skb_trim
	movq	8(%r14), %rax
	movq	_RX_CONTINUE@GOTPCREL(%rip), %rdi
	jmp	LBB0_22
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MICHAEL_MIC_LEN,4,2            ## @MICHAEL_MIC_LEN
	.comm	_RX_CONTINUE,4,2                ## @RX_CONTINUE
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ## @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_RX_DROP_UNUSABLE,4,2           ## @RX_DROP_UNUSABLE
	.comm	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,8,3 ## @NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_rx_h_michael_mic_verify ; -- Begin function ieee80211_rx_h_michael_mic_verify
	.p2align	2
_ieee80211_rx_h_michael_mic_verify:     ; @ieee80211_rx_h_michael_mic_verify
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x24, _MICHAEL_MIC_LEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MICHAEL_MIC_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x20, [x0, #32]
	mov	x0, x20
	bl	_IEEE80211_SKB_RXCB
	mov	x22, x0
	ldr	x23, [x20, #8]
	ldr	w0, [x23]
	bl	_ieee80211_is_data_present
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w9, [x22]
Lloh7:
	adrp	x8, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x8]
Lloh10:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w10, w8, w10
	tst	w10, w9
	b.eq	LBB0_5
; %bb.2:
Lloh13:
	adrp	x10, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.3:
	ldp	x8, x0, [x19, #8]
	cbz	x8, LBB0_14
LBB0_4:
	ldr	w1, [x8, #8]
	b	LBB0_15
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.6:
	ldr	x10, [x8]
Lloh16:
	adrp	x11, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh17:
	ldr	x11, [x11, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.7:
Lloh19:
	adrp	x10, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh20:
	ldr	x10, [x10, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.8:
	ldr	x10, [x19, #16]
	ldr	x10, [x10]
Lloh22:
	adrp	x11, _NL80211_IFTYPE_AP@GOTPAGE
Lloh23:
	ldr	x11, [x11, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.9:
	ldr	w10, [x8, #8]
	cbnz	w10, LBB0_16
LBB0_10:
Lloh25:
	adrp	x10, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh26:
	ldr	x10, [x10, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_22
LBB0_11:
	ldr	w9, [x8, #24]
	add	w9, w9, #1
	str	w9, [x8, #24]
	ldr	x0, [x19, #16]
	b	LBB0_4
LBB0_12:
	tst	w8, w9
	b.eq	LBB0_19
LBB0_13:
Lloh28:
	adrp	x8, _RX_CONTINUE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RX_CONTINUE@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	mov	w1, #-1
LBB0_15:
	ldr	x2, [x20, #8]
Lloh30:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	mov	x3, #0
	bl	_mac80211_ev_michael_mic_failure
LBB0_16:
Lloh33:
	adrp	x8, _RX_DROP_UNUSABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RX_DROP_UNUSABLE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.18:
	sub	sp, x29, #48
	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
LBB0_19:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.20:
	ldr	x9, [x8]
Lloh38:
	adrp	x10, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh39:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
LBB0_21:
	ldr	x8, [x8, #32]
	ldr	x9, [x19]
	ldr	d0, [x19, #24]
	str	d0, [x8, x9, lsl #3]
	b	LBB0_13
LBB0_22:
	ldr	w0, [x23]
	bl	_ieee80211_hdrlen
	ldr	w8, [x20]
	ldr	w9, [x24]
	add	w9, w9, w0
	cmp	w8, w9
	b.lo	LBB0_16
; %bb.23:
	mov	x22, x0
	ldr	x0, [x19, #32]
	bl	_skb_linearize
	cbnz	x0, LBB0_16
; %bb.24:
	ldr	x1, [x20, #8]
	add	x23, x1, w22, uxtw #2
	ldr	w8, [x20]
	ldr	w9, [x24]
	add	w9, w22, w9
	sub	w22, w8, w9
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
Lloh41:
	adrp	x9, _NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_michael_mic
	add	x1, x23, w22, uxtw #2
	ldr	w2, [x24]
	mov	x0, x21
	bl	_memcmp
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x8, [x19, #8]
	b	LBB0_11
LBB0_26:
	ldr	w8, [x20]
	ldr	w9, [x24]
	sub	w1, w8, w9
	mov	x0, x20
	bl	_skb_trim
	ldr	x8, [x19, #8]
	b	LBB0_21
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MICHAEL_MIC_LEN,4,2            ; @MICHAEL_MIC_LEN
	.comm	_RX_CONTINUE,4,2                ; @RX_CONTINUE
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ; @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_RX_DROP_UNUSABLE,4,2           ; @RX_DROP_UNUSABLE
	.comm	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,8,3 ; @NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
.subsections_via_symbols
