	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lib80211_ccmp_encrypt
_lib80211_ccmp_encrypt:                 ## @lib80211_ccmp_encrypt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r15
	movq	16(%rdx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	24(%rdx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_skb_tailroom
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rcx
	movl	$-1, %r14d
	cmpl	(%rcx), %eax
	jl	LBB0_11
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r15d
	subl	%r13d, %r15d
	jl	LBB0_11
## %bb.2:
	movl	%r13d, %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_lib80211_ccmp_hdr
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r14
	movq	_CCMP_HDR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movl	32(%rbx), %edi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	36(%rbx), %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r14, %rsi
	movl	%r15d, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_ccmp_init_blocks
	movq	_AES_BLOCK_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_DIV_ROUND_UP
	movl	%eax, %esi
	movl	(%rbx), %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_7
## %bb.4:
	movslq	%r13d, %rax
	leaq	(%r14,%rax,4), %rax
	leaq	(%rax,%r12,4), %r14
	movl	$1, %edx
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	%ecx, %r12d
	cmovnel	%eax, %r12d
	cmpl	%edx, %r13d
	cmovnel	%ecx, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_xor_block
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	32(%r15), %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_lib80211_ccmp_aes_encrypt
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movzbl	%ah, %eax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 56(%rsi)
	movzbl	-44(%rbp), %eax                 ## 1-byte Folded Reload
	movl	%eax, 60(%rsi)
	movl	32(%r15), %edi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdx
	callq	_lib80211_ccmp_aes_encrypt
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_xor_block
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r13d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%edx
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %r14
	movq	_AES_BLOCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_5
LBB0_7:
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_put
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %edx
	xorl	(%rdi,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCMP_MIC_LEN,4,2               ## @CCMP_MIC_LEN
	.comm	_CCMP_HDR_LEN,4,2               ## @CCMP_HDR_LEN
	.comm	_AES_BLOCK_LEN,4,2              ## @AES_BLOCK_LEN
	.no_dead_strip	_lib80211_ccmp_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lib80211_ccmp_encrypt
_lib80211_ccmp_encrypt:                 ; @lib80211_ccmp_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x2
	mov	x26, x1
	mov	x21, x0
	ldp	x23, x19, [x2]
	ldp	x24, x20, [x2, #16]
	bl	_skb_tailroom
Lloh0:
	adrp	x8, _CCMP_MIC_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCMP_MIC_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_7
; %bb.1:
	ldr	w8, [x21]
	subs	w27, w8, w26
	b.lt	LBB0_7
; %bb.2:
	mov	x0, x21
	mov	x1, x26
	mov	x2, #0
	mov	w3, #0
	mov	x4, x22
	bl	_lib80211_ccmp_hdr
	tbnz	w0, #31, LBB0_7
; %bb.3:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x28, [x21, #8]
Lloh3:
	adrp	x8, _CCMP_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCMP_HDR_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x21, [x8]
	ldp	w0, w2, [x22, #32]
	mov	x1, x28
	mov	x3, x27
	mov	x4, x23
	mov	x5, x19
	mov	x6, x20
	bl	_ccmp_init_blocks
Lloh6:
	adrp	x8, _AES_BLOCK_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AES_BLOCK_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_DIV_ROUND_UP
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x25, x0
Lloh9:
	adrp	x8, _AES_BLOCK_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AES_BLOCK_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sdiv	w9, w27, w8
	mov	x10, x28
	msub	w28, w9, w8, w27
	add	x9, x10, w26, sxtw #2
	add	x26, x9, x21, lsl #2
	mov	w21, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w28, #0
	ccmp	w25, w21, #0, ne
	csel	w27, w28, w8, eq
	mov	x0, x19
	mov	x1, x26
	mov	x2, x27
	bl	_xor_block
	ldr	w0, [x22, #32]
	mov	x1, x19
	mov	x2, x19
	bl	_lib80211_ccmp_aes_encrypt
	ubfx	w8, w21, #8, #8
	and	w9, w21, #0xff
	stp	w8, w9, [x23, #56]
	ldr	w0, [x22, #32]
	mov	x1, x23
	mov	x2, x24
	bl	_lib80211_ccmp_aes_encrypt
	mov	x0, x26
	mov	x1, x24
	mov	x2, x27
	bl	_xor_block
	cmp	w25, w21
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	add	x26, x26, w27, sxtw #2
Lloh12:
	adrp	x8, _AES_BLOCK_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AES_BLOCK_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh15:
	adrp	x21, _CCMP_MIC_LEN@GOTPAGE
Lloh16:
	ldr	x21, [x21, _CCMP_MIC_LEN@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_skb_put
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x8, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	x9, x8, #2
	ldr	w10, [x19, x9]
	ldr	w11, [x20, x9]
	eor	w10, w11, w10
	str	w10, [x0, x9]
	add	x8, x8, #1
	ldrsw	x9, [x21]
	cmp	x8, x9
	b.lt	LBB0_11
LBB0_12:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CCMP_MIC_LEN,4,2               ; @CCMP_MIC_LEN
	.comm	_CCMP_HDR_LEN,4,2               ; @CCMP_HDR_LEN
	.comm	_AES_BLOCK_LEN,4,2              ; @AES_BLOCK_LEN
	.no_dead_strip	_lib80211_ccmp_encrypt
.subsections_via_symbols
