	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92de_tx_fill_cmddesc        ## -- Begin function rtl92de_tx_fill_cmddesc
	.p2align	4, 0x90
_rtl92de_tx_fill_cmddesc:               ## @rtl92de_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_rtl_psc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_rtl_hal
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_QSLT_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	movq	(%r12), %rdx
	movq	8(%r12), %rsi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	8(%r12), %rcx
	movl	(%rcx), %r15d
	movl	(%rbx), %edi
	movl	%eax, %ebx
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	_COMP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %rbx
	movq	_TX_DESC_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_CLEAR_PCI_TX_DESC_CONTENT
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	_USB_HWDESC_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SET_TX_DESC_OFFSET
LBB0_3:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_DESC_RATE6M@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_DESC_RATE1M@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SET_TX_DESC_TX_RATE
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_SET_TX_DESC_SEQ
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_SET_TX_DESC_LINIP
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_SET_TX_DESC_QUEUE_SEL
	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_TX_BUFFER_SIZE
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_SET_TX_DESC_TX_BUFFER_ADDRESS
	movq	%r14, %rdi
	movl	$7, %esi
	callq	_SET_TX_DESC_RATE_ID
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_SET_TX_DESC_MACID
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_SET_TX_DESC_PKT_SIZE
	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
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SET_TX_DESC_USE_RATE
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_ieee80211_is_data_qos
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SET_TX_DESC_HWSEQ_EN
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_SET_TX_DESC_PKT_ID
LBB0_9:
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %r9d
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %r8
	callq	_RT_PRINT_DATA
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SET_TX_DESC_OWN                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QSLT_BEACON,4,2                ## @QSLT_BEACON
	.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_DESC_SIZE,4,2               ## @TX_DESC_SIZE
	.comm	_USB_HWDESC_HEADER_LEN,4,2      ## @USB_HWDESC_HEADER_LEN
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_DESC_RATE6M,4,2                ## @DESC_RATE6M
	.comm	_DESC_RATE1M,4,2                ## @DESC_RATE1M
	.comm	_COMP_CMD,4,2                   ## @COMP_CMD
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.1:                               ## @.str.1
	.asciz	"H2C Tx Cmd Content"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92de_tx_fill_cmddesc        ; -- Begin function rtl92de_tx_fill_cmddesc
	.p2align	2
_rtl92de_tx_fill_cmddesc:               ; @rtl92de_tx_fill_cmddesc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x4
	mov	x26, x2
	mov	x19, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x21
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x28, x0
	mov	x0, x20
	bl	_rtl_psc
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_hal
	mov	x27, x0
Lloh0:
	adrp	x8, _QSLT_BEACON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QSLT_BEACON@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	w0, [x28]
	ldp	x2, x1, [x22]
Lloh3:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x24, x0
	ldr	x8, [x22, #8]
	ldr	w23, [x8]
	ldr	w0, [x28]
	mov	x1, x24
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _COMP_SEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMP_SEND@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_RT_TRACE
LBB0_2:
Lloh14:
	adrp	x28, _TX_DESC_SIZE@GOTPAGE
Lloh15:
	ldr	x28, [x28, _TX_DESC_SIZE@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CLEAR_PCI_TX_DESC_CONTENT
	cbz	w26, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _USB_HWDESC_HEADER_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _USB_HWDESC_HEADER_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SET_TX_DESC_OFFSET
LBB0_4:
	ldr	x8, [x27]
Lloh19:
	adrp	x9, _BAND_ON_5G@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BAND_ON_5G@GOTPAGEOFF]
Lloh21:
	adrp	x10, _DESC_RATE6M@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DESC_RATE6M@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x11, _DESC_RATE1M@GOTPAGE
Lloh25:
	ldr	x11, [x11, _DESC_RATE1M@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SET_TX_DESC_TX_RATE
	mov	x0, x19
	mov	w1, #0
	bl	_SET_TX_DESC_SEQ
	mov	x0, x19
	mov	w1, #0
	bl	_SET_TX_DESC_LINIP
	mov	x0, x19
	mov	x1, x25
	bl	_SET_TX_DESC_QUEUE_SEL
	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, [x22]
	mov	x0, x19
	bl	_SET_TX_DESC_TX_BUFFER_SIZE
	mov	x0, x19
	mov	x1, x24
	bl	_SET_TX_DESC_TX_BUFFER_ADDRESS
	mov	x0, x19
	mov	w1, #7
	bl	_SET_TX_DESC_RATE_ID
	mov	x0, x19
	mov	w1, #0
	bl	_SET_TX_DESC_MACID
	ldr	w1, [x22]
	mov	x0, x19
	bl	_SET_TX_DESC_PKT_SIZE
	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
	mov	x0, x19
	mov	w1, #1
	bl	_SET_TX_DESC_USE_RATE
	mov	x0, x23
	bl	_ieee80211_is_data_qos
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_SET_TX_DESC_HWSEQ_EN
	mov	x0, x19
	mov	w1, #8
	bl	_SET_TX_DESC_PKT_ID
LBB0_7:
Lloh26:
	adrp	x8, _COMP_CMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _COMP_CMD@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	w5, [x28]
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_RT_PRINT_DATA
	bl	_wmb
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_SET_TX_DESC_OWN
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_QSLT_BEACON,4,2                ; @QSLT_BEACON
	.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_DESC_SIZE,4,2               ; @TX_DESC_SIZE
	.comm	_USB_HWDESC_HEADER_LEN,4,2      ; @USB_HWDESC_HEADER_LEN
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_DESC_RATE6M,4,2                ; @DESC_RATE6M
	.comm	_DESC_RATE1M,4,2                ; @DESC_RATE1M
	.comm	_COMP_CMD,4,2                   ; @COMP_CMD
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.1:                               ; @.str.1
	.asciz	"H2C Tx Cmd Content"

.subsections_via_symbols
