	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00queue_create_tx_descriptor_plcp
_rt2x00queue_create_tx_descriptor_plcp: ## @rt2x00queue_create_tx_descriptor_plcp
	.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, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ENTRY_TXD_FIRST_FRAGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_IFS_SIFS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IFS_BACKOFF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	(%rbx), %r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rt2x00crypto_tx_overhead
	leal	(%rax,%r13), %ebx
	addl	$4, %ebx
	movl	(%r14), %eax
	movl	%eax, (%r15)
	movl	$4, 4(%r15)
	movq	_DEV_RATE_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	shrl	$6, %eax
	andl	$63, %eax
	movl	%eax, 8(%r15)
	andl	$63, %ebx
	movl	%ebx, 12(%r15)
	jmp	LBB0_11
LBB0_5:
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_GET_DURATION_RES
	movl	%eax, %r12d
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_GET_DURATION
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.6:
	incl	%eax
	cmpl	$110, 8(%r14)
	jne	LBB0_9
## %bb.7:
	cmpl	$30, %r12d
	ja	LBB0_9
## %bb.8:
	orb	$-128, 4(%r15)
LBB0_9:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movzbl	%ah, %ecx
	movl	%ecx, 8(%r15)
	movzbl	%al, %eax
	movl	%eax, 12(%r15)
	movq	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	je	LBB0_11
## %bb.10:
	orb	$8, (%r15)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTRY_TXD_FIRST_FRAGMENT,4,2   ## @ENTRY_TXD_FIRST_FRAGMENT
	.comm	_IFS_BACKOFF,4,2                ## @IFS_BACKOFF
	.comm	_IFS_SIFS,4,2                   ## @IFS_SIFS
	.comm	_DEV_RATE_OFDM,4,2              ## @DEV_RATE_OFDM
	.comm	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE,4,2 ## @IEEE80211_TX_RC_USE_SHORT_PREAMBLE
	.no_dead_strip	_rt2x00queue_create_tx_descriptor_plcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00queue_create_tx_descriptor_plcp
_rt2x00queue_create_tx_descriptor_plcp: ; @rt2x00queue_create_tx_descriptor_plcp
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _ENTRY_TXD_FIRST_FRAGMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTRY_TXD_FIRST_FRAGMENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_bit
Lloh3:
	adrp	x8, _IFS_SIFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFS_SIFS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IFS_BACKOFF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFS_BACKOFF@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w24, [x21]
	mov	x0, x22
	mov	x1, x21
	bl	_rt2x00crypto_tx_overhead
	add	w8, w24, w0
	add	w21, w8, #4
	mov	w8, #4
	ldp	w9, w10, [x20]
	stp	w9, w8, [x19]
Lloh7:
	adrp	x8, _DEV_RATE_OFDM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEV_RATE_OFDM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_2
; %bb.1:
	ubfx	w8, w21, #6, #6
	and	w9, w21, #0x3f
	stp	w8, w9, [x19, #8]
	b	LBB0_8
LBB0_2:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_GET_DURATION_RES
	mov	x22, x0
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_GET_DURATION
	cbz	w22, LBB0_6
; %bb.3:
	add	w0, w0, #1
	ldr	w8, [x20, #8]
	cmp	w8, #110
	b.ne	LBB0_6
; %bb.4:
	cmp	w22, #30
	b.hi	LBB0_6
; %bb.5:
	ldr	w8, [x19, #4]
	orr	w8, w8, #0x80
	str	w8, [x19, #4]
LBB0_6:
	ubfx	w8, w0, #8, #8
	and	w9, w0, #0xff
	stp	w8, w9, [x19, #8]
	ldr	w8, [x23]
Lloh10:
	adrp	x9, _IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19]
	orr	w8, w8, #0x8
	str	w8, [x19]
LBB0_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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTRY_TXD_FIRST_FRAGMENT,4,2   ; @ENTRY_TXD_FIRST_FRAGMENT
	.comm	_IFS_BACKOFF,4,2                ; @IFS_BACKOFF
	.comm	_IFS_SIFS,4,2                   ; @IFS_SIFS
	.comm	_DEV_RATE_OFDM,4,2              ; @DEV_RATE_OFDM
	.comm	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE,4,2 ; @IEEE80211_TX_RC_USE_SHORT_PREAMBLE
	.no_dead_strip	_rt2x00queue_create_tx_descriptor_plcp
.subsections_via_symbols
