	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccmp_init_blocks
_ccmp_init_blocks:                      ## @ccmp_init_blocks
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AES_BLOCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	28(%r13), %edi
	callq	_ieee80211_has_a4
	movl	%eax, %ebx
	movl	28(%r13), %edi
	callq	_ieee80211_is_data_qos
	testl	%ebx, %ebx
	movl	$22, %ecx
	movl	$28, %r14d
	cmoveq	%rcx, %r14
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	24(%r13), %rax
	testl	%ebx, %ebx
	cmoveq	%r13, %rax
	movl	(%rax), %eax
	andl	$15, %eax
	addq	$2, %r14
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	$89, (%r12)
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, 4(%r12)
	leaq	8(%r12), %rdi
	movq	8(%r13), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	leaq	32(%r12), %rdi
	movq	_CCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movzbl	%ch, %eax
	movl	%eax, 56(%r12)
	movzbl	%cl, %eax
	movl	%eax, 60(%r12)
	movl	$0, (%r15)
	movl	%r14d, 4(%r15)
	movl	$143, %eax
	andl	(%r13), %eax
	movl	%eax, 8(%r15)
	movl	$199, %eax
	andl	4(%r13), %eax
	movl	%eax, 12(%r15)
	leaq	16(%r15), %rdi
	movq	16(%r13), %rsi
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edx
	callq	_memcpy
	movl	24(%r13), %eax
	andl	$15, %eax
	movl	%eax, 88(%r15)
	movl	$0, 92(%r15)
	leaq	96(%r15), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	(%r13), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
LBB0_5:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	leaq	120(%r15), %rax
	testl	%ebx, %ebx
	cmoveq	%r14, %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_7:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_lib80211_ccmp_aes_encrypt
	movq	_AES_BLOCK_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_xor_block
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_lib80211_ccmp_aes_encrypt
	movslq	(%r13), %rdx
	leaq	(%r15,%rdx,4), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_xor_block
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_lib80211_ccmp_aes_encrypt
	andl	$7, (%r12)
	movq	$0, 56(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	16(%rbp), %rdx
	callq	_lib80211_ccmp_aes_encrypt
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_LEN,4,2              ## @AES_BLOCK_LEN
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_CCMP_PN_LEN,4,2                ## @CCMP_PN_LEN
	.no_dead_strip	_ccmp_init_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ccmp_init_blocks
lCPI0_0:
	.long	143                             ; 0x8f
	.long	199                             ; 0xc7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ccmp_init_blocks:                      ; @ccmp_init_blocks
	.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, #32
	stp	x2, x6, [x29, #-104]            ; 16-byte Folded Spill
	mov	x22, x5
	mov	x20, x4
	mov	x27, x3
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _AES_BLOCK_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AES_BLOCK_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w0, [x1, #28]
	bl	_ieee80211_has_a4
	mov	x25, x0
	ldr	w0, [x24, #28]
	bl	_ieee80211_is_data_qos
	mov	x26, x0
	cmp	w25, #0
	mov	w8, #28
	mov	w9, #22
	csel	x28, x9, x8, eq
	cbz	w0, LBB0_2
; %bb.1:
	cmp	w25, #0
	mov	w8, #24
	csel	x8, xzr, x8, eq
	ldr	w8, [x24, x8]
	and	w9, w8, #0xf
	add	x28, x28, #2
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
	mov	w8, #89
	stp	w8, w9, [x20]
	stur	w9, [x29, #-108]                ; 4-byte Folded Spill
	add	x0, x20, #8
	ldr	x1, [x24, #8]
Lloh8:
	adrp	x19, _ETH_ALEN@GOTPAGE
Lloh9:
	ldr	x19, [x19, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_memcpy
	add	x0, x20, #32
Lloh10:
	adrp	x8, _CCMP_PN_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCMP_PN_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	bl	_memcpy
	ubfx	w8, w27, #8, #8
	and	w9, w27, #0xff
	stp	w8, w9, [x20, #56]
	stp	wzr, w28, [x23]
	ldr	d0, [x24]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	and.8b	v0, v0, v1
	str	d0, [x23, #8]
	add	x0, x23, #16
	ldr	x1, [x24, #16]
	ldr	w8, [x19]
	add	w2, w8, w8, lsl #1
	bl	_memcpy
	ldr	w8, [x24, #24]
	and	w8, w8, #0xf
	stp	w8, wzr, [x23, #88]
	add	x27, x23, #96
	mov	x0, x27
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbz	w25, LBB0_5
; %bb.4:
	ldr	x1, [x24]
	ldr	w2, [x19]
	mov	x0, x27
	bl	_memcpy
LBB0_5:
	cbz	w26, LBB0_7
; %bb.6:
	cmp	w25, #0
	mov	w8, #120
	mov	w9, #96
	csel	x8, x9, x8, eq
	ldur	w9, [x29, #-108]                ; 4-byte Folded Reload
	str	w9, [x23, x8]
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_lib80211_ccmp_aes_encrypt
Lloh15:
	adrp	x19, _AES_BLOCK_LEN@GOTPAGE
Lloh16:
	ldr	x19, [x19, _AES_BLOCK_LEN@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x22
	mov	x1, x23
	bl	_xor_block
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	bl	_lib80211_ccmp_aes_encrypt
	ldrsw	x2, [x19]
	add	x1, x23, x2, lsl #2
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_xor_block
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	bl	_lib80211_ccmp_aes_encrypt
	ldr	w8, [x20]
	and	w8, w8, #0x7
	str	w8, [x20]
	str	xzr, [x20, #56]
	mov	x0, x21
	mov	x1, x20
	ldur	x2, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_lib80211_ccmp_aes_encrypt
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_LEN,4,2              ; @AES_BLOCK_LEN
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_CCMP_PN_LEN,4,2                ; @CCMP_PN_LEN
	.no_dead_strip	_ccmp_init_blocks
.subsections_via_symbols
