	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_crypto_ccmp_decrypt  ## -- Begin function ieee80211_crypto_ccmp_decrypt
	.p2align	4, 0x90
_ieee80211_crypto_ccmp_decrypt:         ## @ieee80211_crypto_ccmp_decrypt
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movq	24(%rdi), %r13
	movslq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, %r12
	movq	_CCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_ieee80211_is_data
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ieee80211_is_robust_mgmt_frame
	testl	%eax, %eax
	je	LBB0_12
LBB0_2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%r15)
	je	LBB0_14
## %bb.3:
	movl	4(%r14), %r13d
	movq	_CCMP_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%esi, %eax
	subl	%eax, %r13d
	js	LBB0_14
## %bb.4:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rdi
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	callq	_pskb_may_pull
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_14
LBB0_6:
	callq	_skb_linearize
	testq	%rax, %rax
	jne	LBB0_14
LBB0_7:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	addl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ccmp_hdr2pn
	movslq	(%r15), %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	movq	_CCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_memcmp
	testq	%rax, %rax
	jg	LBB0_9
## %bb.8:
	incl	12(%rbx)
	jmp	LBB0_14
LBB0_9:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	movq	_CCMP_HDR_LEN@GOTPCREL(%rip), %rbx
	je	LBB0_13
LBB0_10:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edi
	movq	_CCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	4(%r14), %esi
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pskb_trim
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movl	(%r14), %esi
	movl	(%rbx), %edi
	addl	%esi, %edi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memmove
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_skb_pull
LBB0_12:
	movq	_RX_CONTINUE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,2), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_ccmp_special_blocks
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	(%r14), %r8d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	addl	%r8d, %edx
	addl	(%rbx), %edx
	addl	4(%r14), %r8d
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %r8d
	movq	%r12, %rsi
	movl	%r13d, %ecx
	movl	%edx, %r9d
	callq	_ieee80211_aes_ccm_decrypt
	testq	%rax, %rax
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	je	LBB0_10
LBB0_14:
	movq	_RX_DROP_UNUSABLE@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCMP_PN_LEN,4,2                ## @CCMP_PN_LEN
	.comm	_RX_CONTINUE,4,2                ## @RX_CONTINUE
	.comm	_CCMP_HDR_LEN,4,2               ## @CCMP_HDR_LEN
	.comm	_CCMP_MIC_LEN,4,2               ## @CCMP_MIC_LEN
	.comm	_RX_DROP_UNUSABLE,4,2           ## @RX_DROP_UNUSABLE
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_crypto_ccmp_decrypt  ; -- Begin function ieee80211_crypto_ccmp_decrypt
	.p2align	2
_ieee80211_crypto_ccmp_decrypt:         ; @ieee80211_crypto_ccmp_decrypt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x19, [x0, #8]
	ldrsw	x24, [x19]
	ldr	x25, [x0, #24]
	mov	x0, x19
	bl	_IEEE80211_SKB_RXCB
	mov	x22, x0
Lloh3:
	adrp	x26, _CCMP_PN_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _CCMP_PN_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
	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	w0, [x24]
	bl	_ieee80211_hdrlen
	mov	x20, x0
	ldr	w0, [x24]
	bl	_ieee80211_is_data
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_ieee80211_is_robust_mgmt_frame
	cbz	w0, LBB0_12
LBB0_2:
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_14
; %bb.3:
	ldr	w8, [x19, #4]
Lloh7:
	adrp	x9, _CCMP_HDR_LEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CCMP_HDR_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x28, _CCMP_MIC_LEN@GOTPAGE
Lloh11:
	ldr	x28, [x28, _CCMP_MIC_LEN@GOTPAGEOFF]
	ldr	w10, [x28]
	add	w1, w9, w20
	add	w9, w10, w1
	sub	w24, w8, w9
	tbnz	w24, #31, LBB0_14
; %bb.4:
	ldr	w8, [x22]
Lloh12:
	adrp	x27, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh13:
	ldr	x27, [x27, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
	ldr	w9, [x27]
	ldr	x0, [x23, #8]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	bl	_pskb_may_pull
	cbnz	w0, LBB0_7
	b	LBB0_14
LBB0_6:
	bl	_skb_linearize
	cbnz	x0, LBB0_14
LBB0_7:
	ldr	w8, [x19]
	add	w1, w8, w20
	mov	x0, x21
	bl	_ccmp_hdr2pn
	ldrsw	x23, [x23]
	ldr	x8, [x25]
	ldr	w1, [x8, x23, lsl #2]
	ldr	w2, [x26]
	mov	x0, x21
	bl	_memcmp
	cmp	x0, #0
	b.gt	LBB0_9
; %bb.8:
	ldr	w8, [x25, #12]
	add	w8, w8, #1
	str	w8, [x25, #12]
	b	LBB0_14
LBB0_9:
	ldr	w8, [x22]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_10:
	ldr	x8, [x25]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w2, [x26]
	mov	x1, x21
	bl	_memcpy
	ldr	w8, [x19, #4]
	ldr	w9, [x28]
	sub	w1, w8, w9
	mov	x0, x19
	bl	_pskb_trim
	cbnz	x0, LBB0_14
; %bb.11:
	ldr	w1, [x19]
Lloh14:
	adrp	x21, _CCMP_HDR_LEN@GOTPAGE
Lloh15:
	ldr	x21, [x21, _CCMP_HDR_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w0, w8, w1
	mov	x2, x20
	bl	_memmove
	ldr	w1, [x21]
	mov	x0, x19
	bl	_skb_pull
LBB0_12:
Lloh16:
	adrp	x8, _RX_CONTINUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RX_CONTINUE@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	mov	x27, sp
Lloh18:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	lsl	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #1
	bl	_ccmp_special_blocks
	ldr	w0, [x25, #8]
Lloh23:
	adrp	x8, _CCMP_HDR_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CCMP_HDR_LEN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	add	w11, w9, w20
	add	w2, w11, w8
	ldr	w8, [x28]
	add	w9, w10, w9
	sub	w4, w9, w8
	mov	x1, x22
	mov	x3, x24
	mov	x5, x2
	bl	_ieee80211_aes_ccm_decrypt
	mov	sp, x27
	cbz	x0, LBB0_10
LBB0_14:
Lloh26:
	adrp	x8, _RX_DROP_UNUSABLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RX_DROP_UNUSABLE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CCMP_PN_LEN,4,2                ; @CCMP_PN_LEN
	.comm	_RX_CONTINUE,4,2                ; @RX_CONTINUE
	.comm	_CCMP_HDR_LEN,4,2               ; @CCMP_HDR_LEN
	.comm	_CCMP_MIC_LEN,4,2               ; @CCMP_MIC_LEN
	.comm	_RX_DROP_UNUSABLE,4,2           ; @RX_DROP_UNUSABLE
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
.subsections_via_symbols
