	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ee_pre_fill_tx_bd_desc    ## -- Begin function rtl92ee_pre_fill_tx_bd_desc
	.p2align	4, 0x90
_rtl92ee_pre_fill_tx_bd_desc:           ## @rtl92ee_pre_fill_tx_bd_desc
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movl	(%r14), %r12d
	movq	_RTL8192EE_SEG_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	(%r13), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r13d
	movq	(%rax), %rax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	shlq	$4, %r15
	movslq	(%rax,%r15), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	_BEACON_QUEUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax,%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_TX_DESC_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_tx_buff_desc_len_0
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_tx_buff_desc_psb
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_tx_buff_desc_own
	incl	%r14d
	je	LBB0_3
## %bb.1:
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	cmpl	$3, %eax
	movl	$2, %ecx
	cmovael	%eax, %ecx
	movslq	%ecx, %r15
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_set_txbuffer_desc_len_with_offset
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_set_txbuffer_desc_amsdu_with_offset
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_set_txbuffer_desc_add_low_with_offset
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_set_txbuffer_desc_add_high_with_offset
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_2
LBB0_3:
	movq	_TX_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_clear_pci_tx_desc_content
	xorl	%eax, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	_BEACON_QUEUE@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	seta	%al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	leal	40(,%rax,8), %eax
	movl	$40, %esi
	cmovnel	%eax, %esi
	movq	%rbx, %rdi
	callq	_set_tx_buff_desc_len_0
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	seta	%cl
	leal	40(%r12), %esi
	andb	%al, %cl
	movzbl	%cl, %eax
	leal	(%r12,%rax,8), %ecx
	addl	$40, %ecx
	leal	(%r12,%rax,8), %edi
	addl	$295, %edi                      ## imm = 0x127
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	movl	%edi, %ecx
	sarl	$8, %ecx
	andl	$-256, %edi
	leal	48(%r12), %edx
	testb	%al, %al
	cmovel	%esi, %edx
	xorl	%esi, %esi
	cmpl	%edx, %edi
	setl	%sil
	addl	%ecx, %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	imulq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	addq	%rax, %r15
	movq	%rbx, %rdi
	callq	_set_tx_buff_desc_psb
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_set_tx_buff_desc_addr_low_0
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_set_tx_buff_desc_addr_high_0
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_set_txbuffer_desc_len_with_offset
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_set_txbuffer_desc_amsdu_with_offset
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_set_txbuffer_desc_add_low_with_offset
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r13d, %ecx
	callq	_set_txbuffer_desc_add_high_with_offset
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_set_tx_desc_pkt_size
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_tx_desc_tx_buffer_size     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8192EE_SEG_NUM,4,2          ## @RTL8192EE_SEG_NUM
	.comm	_BEACON_QUEUE,8,3               ## @BEACON_QUEUE
	.comm	_TX_DESC_SIZE,4,2               ## @TX_DESC_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ee_pre_fill_tx_bd_desc    ; -- Begin function rtl92ee_pre_fill_tx_bd_desc
	.p2align	2
_rtl92ee_pre_fill_tx_bd_desc:           ; @rtl92ee_pre_fill_tx_bd_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_rtl_priv
	mov	x25, x0
	mov	x0, x23
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
Lloh0:
	adrp	x8, _RTL8192EE_SEG_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8192EE_SEG_NUM@GOTPAGEOFF]
	ldr	w22, [x22]
Lloh2:
	ldr	w8, [x8]
	adds	w21, w8, #1
	cset	w26, hs
	ldp	x27, x8, [x25]
	ldr	x8, [x8]
	ldr	w23, [x8]
	ldr	x8, [x0]
	add	x8, x8, x24, lsl #4
Lloh3:
	adrp	x10, _BEACON_QUEUE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BEACON_QUEUE@GOTPAGEOFF]
	ldrsw	x9, [x8]
Lloh5:
	ldr	x28, [x10]
	ldr	x8, [x8, #8]
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
Lloh6:
	adrp	x8, _TX_DESC_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_DESC_SIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	x0, x20
	mov	w1, #0
	bl	_set_tx_buff_desc_len_0
	mov	x0, x20
	mov	w1, #0
	bl	_set_tx_buff_desc_psb
	mov	x0, x20
	mov	w1, #0
	bl	_set_tx_buff_desc_own
	tbnz	w26, #0, LBB0_3
; %bb.1:
	mov	w26, #1
	lsl	w8, w26, w21
	mov	w9, #2
	cmp	w8, #2
	csel	w8, w8, w9, hi
	sxtw	x21, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	w2, #0
	bl	_set_txbuffer_desc_len_with_offset
	mov	x0, x20
	mov	x1, x26
	mov	w2, #0
	bl	_set_txbuffer_desc_amsdu_with_offset
	mov	x0, x20
	mov	x1, x26
	mov	x2, #0
	bl	_set_txbuffer_desc_add_low_with_offset
	mov	x0, x20
	mov	x1, x26
	mov	w2, #0
	mov	x3, x23
	bl	_set_txbuffer_desc_add_high_with_offset
	add	x26, x26, #1
	cmp	x21, x26
	b.ne	LBB0_2
LBB0_3:
Lloh9:
	adrp	x8, _TX_DESC_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_DESC_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_clear_pci_tx_desc_content
	ldr	x8, [x25]
Lloh12:
	adrp	x9, _BEACON_QUEUE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BEACON_QUEUE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x24
	mov	w9, #40
	mov	w10, #48
	csel	w10, w10, w9, hi
	cmp	x8, #0
	csel	w1, w9, w10, eq
	mov	x0, x20
	bl	_set_tx_buff_desc_len_0
	add	w8, w22, #40
	cmp	x27, #0
	cset	w9, ne
	cmp	x28, x24
	cset	w10, hi
	tst	w9, w10
	mov	w9, #8
	csel	w9, w9, wzr, ne
	add	w9, w9, w8
	add	w10, w9, #255
	add	w11, w22, #48
	csel	w8, w11, w8, ne
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w10, w9, #8
	and	w9, w9, #0xffffff00
	cmp	w9, w8
	cinc	w1, w10, lt
	ldp	x9, x8, [sp, #8]                ; 16-byte Folded Reload
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	madd	x24, x10, x8, x9
	mov	x0, x20
	bl	_set_tx_buff_desc_psb
	mov	x0, x20
	mov	x1, x24
	bl	_set_tx_buff_desc_addr_low_0
	mov	x0, x20
	mov	x2, x23
	bl	_set_tx_buff_desc_addr_high_0
	mov	x0, x20
	mov	w1, #1
	mov	x2, x22
	bl	_set_txbuffer_desc_len_with_offset
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_set_txbuffer_desc_amsdu_with_offset
	mov	x0, x20
	mov	w1, #1
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	bl	_set_txbuffer_desc_add_low_with_offset
	mov	x0, x20
	mov	w1, #1
	mov	x3, x23
	bl	_set_txbuffer_desc_add_high_with_offset
	mov	x0, x19
	mov	x1, x22
	bl	_set_tx_desc_pkt_size
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_set_tx_desc_tx_buffer_size
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8192EE_SEG_NUM,4,2          ; @RTL8192EE_SEG_NUM
	.comm	_BEACON_QUEUE,8,3               ; @BEACON_QUEUE
	.comm	_TX_DESC_SIZE,4,2               ; @TX_DESC_SIZE
.subsections_via_symbols
