	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00crypto_create_tx_descriptor ## -- Begin function rt2x00crypto_create_tx_descriptor
	.p2align	4, 0x90
_rt2x00crypto_create_tx_descriptor:     ## @rt2x00crypto_create_tx_descriptor
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_rt2x00_has_cap_hw_crypto
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movq	_ENTRY_TXD_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	%r15, %rdi
	callq	_rt2x00crypto_key_to_cipher
	movl	%eax, 20(%r14)
	movl	(%r15), %eax
	movq	_IEEE80211_KEY_FLAG_PAIRWISE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_ENTRY_TXD_ENCRYPT_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movl	(%r15), %eax
LBB0_4:
	movl	8(%r15), %ecx
	movl	%ecx, 16(%r14)
	movl	8(%r14), %ecx
	movl	%ecx, 12(%r14)
	movl	4(%r15), %ecx
	movl	%ecx, 4(%r14)
	movq	_IEEE80211_KEY_FLAG_GENERATE_IV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_ENTRY_TXD_ENCRYPT_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movl	(%r15), %eax
LBB0_6:
	movq	_IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENTRY_TXD_ENCRYPT_MMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___set_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTRY_TXD_ENCRYPT,4,2          ## @ENTRY_TXD_ENCRYPT
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ## @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_ENTRY_TXD_ENCRYPT_PAIRWISE,4,2 ## @ENTRY_TXD_ENCRYPT_PAIRWISE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_ENTRY_TXD_ENCRYPT_IV,4,2       ## @ENTRY_TXD_ENCRYPT_IV
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_ENTRY_TXD_ENCRYPT_MMIC,4,2     ## @ENTRY_TXD_ENCRYPT_MMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00crypto_create_tx_descriptor ; -- Begin function rt2x00crypto_create_tx_descriptor
	.p2align	2
_rt2x00crypto_create_tx_descriptor:     ; @rt2x00crypto_create_tx_descriptor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	ldr	x20, [x0]
	mov	x0, x21
	bl	_rt2x00_has_cap_hw_crypto
	cbz	w0, LBB0_7
; %bb.1:
	cbz	x20, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _ENTRY_TXD_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTRY_TXD_ENCRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	___set_bit
	mov	x0, x20
	bl	_rt2x00crypto_key_to_cipher
	str	w0, [x19, #20]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ENTRY_TXD_ENCRYPT_PAIRWISE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENTRY_TXD_ENCRYPT_PAIRWISE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	___set_bit
	ldr	w8, [x20]
LBB0_4:
	ldr	w9, [x19, #8]
	ldp	w11, w10, [x20, #4]
	stp	w9, w10, [x19, #12]
	str	w11, [x19, #4]
Lloh9:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _ENTRY_TXD_ENCRYPT_IV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENTRY_TXD_ENCRYPT_IV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	___set_bit
	ldr	w8, [x20]
LBB0_6:
Lloh15:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh18:
	adrp	x8, _ENTRY_TXD_ENCRYPT_MMIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENTRY_TXD_ENCRYPT_MMIC@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	___set_bit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTRY_TXD_ENCRYPT,4,2          ; @ENTRY_TXD_ENCRYPT
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ; @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_ENTRY_TXD_ENCRYPT_PAIRWISE,4,2 ; @ENTRY_TXD_ENCRYPT_PAIRWISE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_ENTRY_TXD_ENCRYPT_IV,4,2       ; @ENTRY_TXD_ENCRYPT_IV
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_ENTRY_TXD_ENCRYPT_MMIC,4,2     ; @ENTRY_TXD_ENCRYPT_MMIC
.subsections_via_symbols
