	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_set_tx_cmd_crypto
_iwl_mvm_set_tx_cmd_crypto:             ## @iwl_mvm_set_tx_cmd_crypto
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	(%rsi), %r15
	movl	(%r15), %ecx
	addl	$-128, %ecx
	cmpl	$6, %ecx
	ja	LBB0_10
## %bb.1:
	movq	%rsi, %r13
	movslq	%r8d, %rbx
	shlq	$2, %rbx
	addq	(%r12), %rbx
	movq	_TX_CMD_SEC_CCM@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_TX_CMD_SEC_GCMP@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_TX_CMD_SEC_KEY_FROM_TABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	movl	8(%r15), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_4
LBB0_10:
	movq	_TX_CMD_SEC_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_6:
	movq	_TX_CMD_SEC_KEY128@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_7:
	movl	4(%r15), %edx
	movq	_TX_CMD_SEC_WEP_KEY_IDX_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_TX_CMD_SEC_WEP@GOTPCREL(%rip), %rcx
	movq	_TX_CMD_SEC_WEP_KEY_IDX_MSK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	orl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, (%r14)
	movq	8(%r14), %rdi
	addq	$12, %rdi
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_5:
	movq	_TX_CMD_SEC_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	20(%r15), %rdi
	callq	_atomic64_inc_return
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ieee80211_tkip_add_iv
	movq	8(%r14), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_get_tkip_p2k         ## TAILCALL
LBB0_3:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_set_tx_cmd_ccmp
LBB0_4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_set_tx_cmd_pn          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_TX_CMD_SEC_CCM,4,2             ## @TX_CMD_SEC_CCM
	.comm	_TX_CMD_SEC_TKIP,4,2            ## @TX_CMD_SEC_TKIP
	.comm	_TX_CMD_SEC_KEY128,4,2          ## @TX_CMD_SEC_KEY128
	.comm	_TX_CMD_SEC_WEP,4,2             ## @TX_CMD_SEC_WEP
	.comm	_TX_CMD_SEC_WEP_KEY_IDX_POS,4,2 ## @TX_CMD_SEC_WEP_KEY_IDX_POS
	.comm	_TX_CMD_SEC_WEP_KEY_IDX_MSK,4,2 ## @TX_CMD_SEC_WEP_KEY_IDX_MSK
	.comm	_TX_CMD_SEC_GCMP,4,2            ## @TX_CMD_SEC_GCMP
	.comm	_TX_CMD_SEC_KEY_FROM_TABLE,4,2  ## @TX_CMD_SEC_KEY_FROM_TABLE
	.comm	_TX_CMD_SEC_EXT,4,2             ## @TX_CMD_SEC_EXT
	.no_dead_strip	_iwl_mvm_set_tx_cmd_crypto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_set_tx_cmd_crypto
_iwl_mvm_set_tx_cmd_crypto:             ; @iwl_mvm_set_tx_cmd_crypto
	.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, x2
	ldr	x20, [x1]
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.1:
	mov	x23, x3
	mov	x22, x1
	ldr	x9, [x3]
	add	x21, x9, w4, sxtw #2
Lloh0:
	adrp	x9, _TX_CMD_SEC_CCM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_CMD_SEC_CCM@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x9, _TX_CMD_SEC_GCMP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TX_CMD_SEC_GCMP@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _TX_CMD_SEC_KEY_FROM_TABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TX_CMD_SEC_KEY_FROM_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x20, #8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _TX_CMD_SEC_EXT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_CMD_SEC_EXT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	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
LBB0_5:
	ldr	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _TX_CMD_SEC_KEY128@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_CMD_SEC_KEY128@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
Lloh15:
	adrp	x9, _TX_CMD_SEC_WEP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TX_CMD_SEC_WEP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x20, #4]
Lloh18:
	adrp	x11, _TX_CMD_SEC_WEP_KEY_IDX_POS@GOTPAGE
Lloh19:
	ldr	x11, [x11, _TX_CMD_SEC_WEP_KEY_IDX_POS@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	lsl	w10, w10, w11
Lloh21:
	adrp	x11, _TX_CMD_SEC_WEP_KEY_IDX_MSK@GOTPAGE
Lloh22:
	ldr	x11, [x11, _TX_CMD_SEC_WEP_KEY_IDX_MSK@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	and	w10, w10, w11
	orr	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #8]
	add	x0, x8, #12
	ldp	w2, w1, [x20, #12]
	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
	b	_memcpy
LBB0_8:
Lloh24:
	adrp	x8, _TX_CMD_SEC_TKIP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TX_CMD_SEC_TKIP@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19]
	add	x0, x20, #20
	bl	_atomic64_inc_return
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_ieee80211_tkip_add_iv
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	x1, x23
	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
	b	_ieee80211_get_tkip_p2k
LBB0_9:
	mov	x0, x22
	mov	x1, x19
	bl	_iwl_mvm_set_tx_cmd_ccmp
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	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
	b	_iwl_mvm_set_tx_cmd_pn
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_TX_CMD_SEC_CCM,4,2             ; @TX_CMD_SEC_CCM
	.comm	_TX_CMD_SEC_TKIP,4,2            ; @TX_CMD_SEC_TKIP
	.comm	_TX_CMD_SEC_KEY128,4,2          ; @TX_CMD_SEC_KEY128
	.comm	_TX_CMD_SEC_WEP,4,2             ; @TX_CMD_SEC_WEP
	.comm	_TX_CMD_SEC_WEP_KEY_IDX_POS,4,2 ; @TX_CMD_SEC_WEP_KEY_IDX_POS
	.comm	_TX_CMD_SEC_WEP_KEY_IDX_MSK,4,2 ; @TX_CMD_SEC_WEP_KEY_IDX_MSK
	.comm	_TX_CMD_SEC_GCMP,4,2            ; @TX_CMD_SEC_GCMP
	.comm	_TX_CMD_SEC_KEY_FROM_TABLE,4,2  ; @TX_CMD_SEC_KEY_FROM_TABLE
	.comm	_TX_CMD_SEC_EXT,4,2             ; @TX_CMD_SEC_EXT
	.no_dead_strip	_iwl_mvm_set_tx_cmd_crypto
.subsections_via_symbols
