	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00crypto_rx_insert_iv      ## -- Begin function rt2x00crypto_rx_insert_iv
	.p2align	4, 0x90
_rt2x00crypto_rx_insert_iv:             ## @rt2x00crypto_rx_insert_iv
	.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	%rdx, %r14
	movl	%esi, %ebx
	movl	(%rdx), %r15d
	movq	%rdi, %r13
	callq	_ALIGN_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movl	4(%r14), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_11
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rdx
	leaq	L_switch.table.rt2x00crypto_rx_insert_iv(%rip), %rcx
	movl	(%rcx,%rdx,4), %r12d
	leaq	L_switch.table.rt2x00crypto_rx_insert_iv.1(%rip), %rcx
	movl	(%rcx,%rdx,4), %ecx
	movq	_RXDONE_L2PAD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 8(%r14)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, %r15d
	subl	%eax, %r15d
	movq	%r13, %rbx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%rcx, %r13
	callq	_skb_push
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	(%rbx), %rdi
	addq	%rdi, %r15
	movq	%r15, %rsi
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_3:
	movq	%rax, %rbx
	leal	(%r12,%rax), %esi
	movq	%r13, %rdi
	callq	_skb_push
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %esi
	subl	%ebx, %esi
	jbe	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_skb_put
	movq	%r13, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_5:
	movq	%r13, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jae	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %esi
	addl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_skb_trim
LBB0_7:
	movq	(%rbx), %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	addq	%r12, %rsi
	addq	%rdi, %rsi
LBB0_8:
	movl	%r13d, %edx
	callq	_memmove
	movl	%r13d, %edi
	addq	(%rbx), %rdi
	movq	24(%r14), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	_RXDONE_L2PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %edx
	subl	%r13d, %edx
	addl	%r12d, %r13d
	addq	(%rbx), %r13
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	addq	%r13, %rsi
	movq	%r13, %rdi
	callq	_memmove
LBB0_10:
	addl	%r15d, %r12d
	movq	(%rbx), %rdi
	addq	%r12, %rdi
	leaq	16(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, (%r14)
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%r14)
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXDONE_L2PAD,4,2               ## @RXDONE_L2PAD
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.rt2x00crypto_rx_insert_iv
L_switch.table.rt2x00crypto_rx_insert_iv:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	8                               ## 0x8

	.p2align	2                               ## @switch.table.rt2x00crypto_rx_insert_iv.1
L_switch.table.rt2x00crypto_rx_insert_iv.1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	8                               ## 0x8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00crypto_rx_insert_iv      ; -- Begin function rt2x00crypto_rx_insert_iv
	.p2align	2
_rt2x00crypto_rx_insert_iv:             ; @rt2x00crypto_rx_insert_iv
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w26, [x2]
	bl	_ALIGN_SIZE
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.1:
	mov	x24, x0
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.rt2x00crypto_rx_insert_iv@PAGE
Lloh1:
	add	x9, x9, l_switch.table.rt2x00crypto_rx_insert_iv@PAGEOFF
	ldr	w23, [x9, x8]
Lloh2:
	adrp	x9, l_switch.table.rt2x00crypto_rx_insert_iv.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.rt2x00crypto_rx_insert_iv.1@PAGEOFF
	ldr	w21, [x9, x8]
	ldr	w8, [x19, #8]
Lloh4:
	adrp	x27, _RXDONE_L2PAD@GOTPAGE
Lloh5:
	ldr	x27, [x27, _RXDONE_L2PAD@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	sub	w25, w23, w24
	mov	x0, x20
	mov	x1, x25
	bl	_skb_push
	mov	x0, x20
	mov	x1, x21
	bl	_skb_put
	ldr	x0, [x20]
	add	x1, x0, x25
	b	LBB0_8
LBB0_3:
	add	w1, w23, w24
	mov	x0, x20
	bl	_skb_push
	subs	w1, w21, w24
	b.ls	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_skb_put
	b	LBB0_7
LBB0_5:
	b.hs	LBB0_7
; %bb.6:
	ldr	w8, [x19]
	add	w9, w21, w23
	add	w1, w9, w8
	mov	x0, x20
	bl	_skb_trim
LBB0_7:
	ldr	x0, [x20]
	add	x8, x23, w24, uxtw
	add	x1, x8, x0
LBB0_8:
	mov	x2, x22
	bl	_memmove
	ldr	x8, [x20]
	add	x0, x8, w22, uxtw
	ldr	x1, [x19, #24]
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [x19, #8]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	sub	w2, w26, w22
	ldr	x8, [x20]
	add	w9, w23, w22
	add	x0, x8, x9
	add	x1, x0, w24, uxtw
	bl	_memmove
LBB0_10:
	ldr	x8, [x20]
	add	w20, w23, w26
	add	x0, x8, x20
	add	x1, x19, #16
	mov	w2, #4
	bl	_memcpy
	add	w8, w20, w21
	str	w8, [x19]
Lloh6:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	str	w8, [x19, #12]
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RXDONE_L2PAD,4,2               ; @RXDONE_L2PAD
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.rt2x00crypto_rx_insert_iv
l_switch.table.rt2x00crypto_rx_insert_iv:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	8                               ; 0x8

	.p2align	2                               ; @switch.table.rt2x00crypto_rx_insert_iv.1
l_switch.table.rt2x00crypto_rx_insert_iv.1:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	8                               ; 0x8

.subsections_via_symbols
