	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_insert_ccmp_hdr           ## -- Begin function mt76_insert_ccmp_hdr
	.p2align	4, 0x90
_mt76_insert_ccmp_hdr:                  ## @mt76_insert_ccmp_hdr
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_ieee80211_get_hdrlen_from_skb
	movl	%eax, %r15d
	movq	(%r12), %r13
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	___skb_push
	movq	(%rbx), %rdi
	leaq	32(%rdi), %rsi
	movl	%r15d, %edx
	callq	_memmove
	movq	(%rbx), %rax
	movslq	%r15d, %rcx
	movl	20(%r13), %edx
	movl	%edx, (%rax,%rcx,4)
	movl	16(%r13), %edx
	movl	%edx, 4(%rax,%rcx,4)
	movl	$0, 8(%rax,%rcx,4)
	shll	$6, %r14d
	orl	$32, %r14d
	movl	%r14d, 12(%rax,%rcx,4)
	movl	12(%r13), %edx
	movl	%edx, 16(%rax,%rcx,4)
	movl	8(%r13), %edx
	movl	%edx, 20(%rax,%rcx,4)
	movl	4(%r13), %edx
	movl	%edx, 24(%rax,%rcx,4)
	movl	(%r13), %edx
	movl	%edx, 28(%rax,%rcx,4)
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_insert_ccmp_hdr           ; -- Begin function mt76_insert_ccmp_hdr
	.p2align	2
_mt76_insert_ccmp_hdr:                  ; @mt76_insert_ccmp_hdr
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x21, x0
	ldr	x23, [x22]
	mov	x0, x20
	mov	w1, #8
	bl	___skb_push
	ldr	x0, [x20]
	add	x1, x0, #32
	mov	x2, x21
	bl	_memmove
	ldr	x8, [x20]
	add	x8, x8, w21, sxtw #2
	ldr	w9, [x23, #20]
	str	w9, [x8]
	ldr	w9, [x23, #16]
	stp	w9, wzr, [x8, #4]
	mov	w9, #32
	bfi	w9, w19, #6, #26
	str	w9, [x8, #12]
	ldr	w9, [x23, #12]
	str	w9, [x8, #16]
	ldr	w9, [x23, #8]
	str	w9, [x8, #20]
	ldr	w9, [x23, #4]
	str	w9, [x8, #24]
	ldr	w9, [x23]
	str	w9, [x8, #28]
Lloh0:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	bic	w8, w9, w8
	str	w8, [x22, #8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
.subsections_via_symbols
