	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccmp_encrypt_skb
_ccmp_encrypt_skb:                      ## @ccmp_encrypt_skb
	.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	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %r14
	movq	(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r15
	movq	%rsp, %rbx
	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, %rdx
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rax), %eax
	movq	_IEEE80211_KEY_FLAG_GENERATE_IV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_4:
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %r12
	movl	(%r14), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	jne	LBB0_6
## %bb.5:
	movl	(%rax), %ebx
LBB0_6:
	movl	(%r13), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_skb_tailroom
	movl	$1, %edi
	cmpl	%ebx, %eax
	jl	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_skb_headroom
	movq	_CCMP_HDR_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
LBB0_8:
	callq	_WARN_ON
	movl	$-1, %r14d
	testq	%rax, %rax
	movq	%r12, %rbx
	je	LBB0_9
LBB0_13:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_CCMP_HDR_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_skb_push
	movq	%rax, %r12
	movq	(%r14), %rax
	leaq	(%r12,%rax,4), %rsi
	movq	%r12, %rdi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_memmove
	movq	%r13, %rdi
	callq	_skb_network_offset
	addq	(%r14), %rax
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_skb_set_network_header
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	jne	LBB0_13
LBB0_11:
	movslq	-88(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r12,%rax,4), %r12
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	leaq	4(%r14), %rdi
	callq	_atomic64_inc_return
	movl	%eax, -60(%rbp)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, -64(%rbp)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, -68(%rbp)
	sarl	$24, %eax
	movl	%eax, -72(%rbp)
	movl	8(%r14), %edx
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ccmp_pn2hdr
	xorl	%r14d, %r14d
	cmpq	$0, (%r15)
	jne	LBB0_13
## %bb.12:
	movl	-100(%rbp), %r15d               ## 4-byte Reload
	subl	-88(%rbp), %r15d                ## 4-byte Folded Reload
	movq	_CCMP_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r12,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_ccmp_special_blocks
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_put
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	movq	%rdx, %r8
	movl	%eax, %r9d
	callq	_ieee80211_aes_ccm_encrypt
	jmp	LBB0_13
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ## @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.comm	_CCMP_MIC_LEN,4,2               ## @CCMP_MIC_LEN
	.comm	_CCMP_HDR_LEN,8,3               ## @CCMP_HDR_LEN
	.no_dead_strip	_ccmp_encrypt_skb
.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_encrypt_skb
lCPI0_0:
	.long	4294967272                      ; 0xffffffe8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ccmp_encrypt_skb:                      ; @ccmp_encrypt_skb
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x22, [x1, #8]
	ldr	x25, [x0]
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	mov	x24, sp
Lloh3:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	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	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_3:
	ldr	w0, [x22]
	bl	_ieee80211_hdrlen
	mov	x22, x0
	ldr	w27, [x19]
	ldr	x8, [x21]
Lloh14:
	adrp	x26, _CCMP_MIC_LEN@GOTPAGE
Lloh15:
	ldr	x26, [x26, _CCMP_MIC_LEN@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	x8, #0
	csel	w23, w9, wzr, eq
	mov	x0, x19
	bl	_skb_tailroom
	cmp	w0, w23
	b.ge	LBB0_6
; %bb.4:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #-1
	b	LBB0_12
LBB0_6:
	mov	x0, x19
	bl	_skb_headroom
Lloh16:
	adrp	x8, _CCMP_HDR_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CCMP_HDR_LEN@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	bl	_WARN_ON
	cbnz	x0, LBB0_5
LBB0_7:
Lloh19:
	adrp	x28, _CCMP_HDR_LEN@GOTPAGE
Lloh20:
	ldr	x28, [x28, _CCMP_HDR_LEN@GOTPAGEOFF]
	ldr	x1, [x28]
	mov	x0, x19
	bl	_skb_push
	mov	x23, x0
	ldr	x8, [x28]
	add	x1, x0, x8, lsl #2
	mov	x2, x22
	bl	_memmove
	mov	x0, x19
	bl	_skb_network_offset
	ldr	x8, [x28]
	add	x1, x8, x0
	mov	x0, x19
	bl	_skb_set_network_header
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
LBB0_9:
	add	x23, x23, w22, sxtw #2
	add	x0, x25, #4
	bl	_atomic64_inc_return
	asr	w8, w0, #8
	dup.2s	v0, w0
	stp	w8, w0, [x29, #-96]
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	stur	d0, [x29, #-104]
	ldr	w2, [x25, #8]
	sub	x1, x29, #112
	mov	x0, x23
	bl	_ccmp_pn2hdr
	ldr	x8, [x21]
	cbnz	x8, LBB0_11
; %bb.10:
	sub	w21, w27, w22
	ldr	x8, [x28]
	add	x22, x23, x8, lsl #2
	sub	x1, x29, #112
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_ccmp_special_blocks
	ldr	w23, [x25]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_skb_put
	mov	x5, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x22
	bl	_ieee80211_aes_ccm_encrypt
LBB0_11:
	mov	w0, #0
LBB0_12:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ; @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.comm	_CCMP_MIC_LEN,4,2               ; @CCMP_MIC_LEN
	.comm	_CCMP_HDR_LEN,8,3               ; @CCMP_HDR_LEN
	.no_dead_strip	_ccmp_encrypt_skb
.subsections_via_symbols
