	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92se_tx_fill_cmddesc        ## -- Begin function rtl92se_tx_fill_cmddesc
	.p2align	4, 0x90
_rtl92se_tx_fill_cmddesc:               ## @rtl92se_tx_fill_cmddesc
	.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	%r8, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r13
	movq	16(%r12), %rbx
	movl	(%r15), %edi
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	(%r15), %edi
	movl	%eax, %r15d
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_COMP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_1:
	movq	_TX_CMDDESC_SIZE_RTL8192S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_CLEAR_PCI_TX_DESC_CONTENT
	movq	(%rbx), %rax
	movq	_DESC_PACKET_TYPE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_SET_TX_DESC_LINIP
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SET_TX_DESC_FIRST_SEG
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SET_TX_DESC_LAST_SEG
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_SET_TX_DESC_PKT_SIZE
	jmp	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SET_TX_DESC_FIRST_SEG
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SET_TX_DESC_LAST_SEG
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_SET_TX_DESC_OFFSET
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_SET_TX_DESC_PKT_SIZE
	movq	%r14, %rdi
	movl	$19, %esi
	callq	_SET_TX_DESC_QUEUE_SEL
	movl	8(%r12), %edi
	movl	(%r13), %ecx
	movl	$24, %esi
	movl	$7, %edx
	callq	_SET_BITS_TO_LE_4BYTE
LBB0_3:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_SET_TX_DESC_TX_BUFFER_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_SET_TX_DESC_TX_BUFFER_ADDRESS
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SET_TX_DESC_OWN                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_COMP_SEND,4,2                  ## @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA mapping error\n"

	.comm	_TX_CMDDESC_SIZE_RTL8192S,4,2   ## @TX_CMDDESC_SIZE_RTL8192S
	.comm	_DESC_PACKET_TYPE_INIT,8,3      ## @DESC_PACKET_TYPE_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92se_tx_fill_cmddesc        ; -- Begin function rtl92se_tx_fill_cmddesc
	.p2align	2
_rtl92se_tx_fill_cmddesc:               ; @rtl92se_tx_fill_cmddesc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x19, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x23, x0
	mov	x0, x21
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x24, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	ldr	x25, [x20, #16]
	ldr	w0, [x24]
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
Lloh0:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x21, x0
	ldr	w0, [x24]
	mov	x1, x21
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _COMP_SEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMP_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_RT_TRACE
LBB0_2:
Lloh11:
	adrp	x8, _TX_CMDDESC_SIZE_RTL8192S@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TX_CMDDESC_SIZE_RTL8192S@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CLEAR_PCI_TX_DESC_CONTENT
	ldr	x8, [x25]
Lloh14:
	adrp	x9, _DESC_PACKET_TYPE_INIT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DESC_PACKET_TYPE_INIT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x25, #8]
	mov	x0, x19
	bl	_SET_TX_DESC_LINIP
	mov	x0, x19
	mov	w1, #1
	bl	_SET_TX_DESC_FIRST_SEG
	mov	x0, x19
	mov	w1, #1
	bl	_SET_TX_DESC_LAST_SEG
	ldr	w1, [x20]
	mov	x0, x19
	bl	_SET_TX_DESC_PKT_SIZE
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_SET_TX_DESC_FIRST_SEG
	mov	x0, x19
	mov	w1, #1
	bl	_SET_TX_DESC_LAST_SEG
	mov	x0, x19
	mov	w1, #32
	bl	_SET_TX_DESC_OFFSET
	ldr	w1, [x20]
	mov	x0, x19
	bl	_SET_TX_DESC_PKT_SIZE
	mov	x0, x19
	mov	w1, #19
	bl	_SET_TX_DESC_QUEUE_SEL
	ldr	w0, [x20, #8]
	ldr	w3, [x22]
	mov	w1, #24
	mov	w2, #7
	bl	_SET_BITS_TO_LE_4BYTE
LBB0_5:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_SET_TX_DESC_TX_BUFFER_SIZE
	mov	x0, x19
	mov	x1, x21
	bl	_SET_TX_DESC_TX_BUFFER_ADDRESS
	bl	_wmb
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SET_TX_DESC_OWN
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_COMP_SEND,4,2                  ; @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA mapping error\n"

	.comm	_TX_CMDDESC_SIZE_RTL8192S,4,2   ; @TX_CMDDESC_SIZE_RTL8192S
	.comm	_DESC_PACKET_TYPE_INIT,8,3      ; @DESC_PACKET_TYPE_INIT
.subsections_via_symbols
