	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00crypto_tx_overhead       ## -- Begin function rt2x00crypto_tx_overhead
	.p2align	4, 0x90
_rt2x00crypto_tx_overhead:              ## @rt2x00crypto_tx_overhead
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_rt2x00_has_cap_hw_crypto
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	movq	24(%r14), %rax
	movl	(%r14), %ecx
	movq	_IEEE80211_KEY_FLAG_GENERATE_IV@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_4
## %bb.3:
	addq	16(%r14), %rax
LBB0_4:
	movq	_IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.5:
	movq	8(%r14), %rcx
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rdx
	leal	8(%rax), %esi
	cmpq	(%rdx), %rcx
	cmovnel	%eax, %esi
	movl	%esi, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00crypto_tx_overhead       ; -- Begin function rt2x00crypto_tx_overhead
	.p2align	2
_rt2x00crypto_tx_overhead:              ; @rt2x00crypto_tx_overhead
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	ldr	x20, [x0]
	mov	x0, x19
	bl	_rt2x00_has_cap_hw_crypto
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_6
; %bb.1:
	cbz	x20, LBB0_6
; %bb.2:
	ldr	x0, [x20, #24]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x20, #16]
	add	x0, x9, x0
LBB0_4:
Lloh3:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	w10, w0, #8
	cmp	x8, x9
	csel	w0, w10, w0, eq
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
.subsections_via_symbols
