	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_write_tx_desc       ## -- Begin function rt2800mmio_write_tx_desc
	.p2align	4, 0x90
_rt2800mmio_write_tx_desc:              ## @rt2800mmio_write_tx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_get_skb_frame_desc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rcx
	movq	(%rcx), %r15
	movq	8(%r12), %rcx
	movl	(%rcx), %r14d
	movq	$0, -48(%rbp)
	movq	_TXD_W0_SD_PTR0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_rt2x00_set_field32
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_rt2x00_desc_write
	movq	$0, -48(%rbp)
	movq	_TXD_W1_SD_LEN1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_rt2x00_set_field32
	movq	_TXD_W1_LAST_SEC1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ENTRY_TXD_MORE_FRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_rt2x00_set_field32
	movq	_TXD_W1_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ENTRY_TXD_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_rt2x00_set_field32
	movq	_TXD_W1_SD_LEN0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movq	_TXD_W1_LAST_SEC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movq	_TXD_W1_DMA_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rt2x00_desc_write
	movq	$0, -48(%rbp)
	movq	_TXD_W2_SD_PTR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	addl	(%r12), %r14d
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_rt2x00_desc_write
	movq	$0, -48(%rbp)
	movq	_TXD_W3_WIV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ENTRY_TXD_ENCRYPT_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_rt2x00_set_field32
	movq	_TXD_W3_QSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_rt2x00_set_field32
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_rt2x00_desc_write
	movq	%r15, 8(%r12)
	movq	_TXD_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXD_W0_SD_PTR0,4,2             ## @TXD_W0_SD_PTR0
	.comm	_TXD_W1_SD_LEN1,4,2             ## @TXD_W1_SD_LEN1
	.comm	_TXD_W1_LAST_SEC1,4,2           ## @TXD_W1_LAST_SEC1
	.comm	_ENTRY_TXD_MORE_FRAG,4,2        ## @ENTRY_TXD_MORE_FRAG
	.comm	_TXD_W1_BURST,4,2               ## @TXD_W1_BURST
	.comm	_ENTRY_TXD_BURST,4,2            ## @ENTRY_TXD_BURST
	.comm	_TXD_W1_SD_LEN0,4,2             ## @TXD_W1_SD_LEN0
	.comm	_TXD_W1_LAST_SEC0,4,2           ## @TXD_W1_LAST_SEC0
	.comm	_TXD_W1_DMA_DONE,4,2            ## @TXD_W1_DMA_DONE
	.comm	_TXD_W2_SD_PTR1,4,2             ## @TXD_W2_SD_PTR1
	.comm	_TXD_W3_WIV,4,2                 ## @TXD_W3_WIV
	.comm	_ENTRY_TXD_ENCRYPT_IV,4,2       ## @ENTRY_TXD_ENCRYPT_IV
	.comm	_TXD_W3_QSEL,4,2                ## @TXD_W3_QSEL
	.comm	_TXD_DESC_SIZE,4,2              ## @TXD_DESC_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_write_tx_desc       ; -- Begin function rt2800mmio_write_tx_desc
	.p2align	2
_rt2800mmio_write_tx_desc:              ; @rt2800mmio_write_tx_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x23, x0
	ldr	x0, [x0]
	bl	_get_skb_frame_desc
	mov	x19, x0
	ldp	x9, x8, [x23, #8]
	ldr	x20, [x8]
	ldr	w22, [x9]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _TXD_W0_SD_PTR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXD_W0_SD_PTR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0]
	add	x0, sp, #8
	bl	_rt2x00_set_field32
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_rt2x00_desc_write
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _TXD_W1_SD_LEN1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TXD_W1_SD_LEN1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x23]
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_rt2x00_set_field32
Lloh6:
	adrp	x8, _TXD_W1_LAST_SEC1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TXD_W1_LAST_SEC1@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _ENTRY_TXD_MORE_FRAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENTRY_TXD_MORE_FRAG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cmp	w0, #0
	cset	w2, eq
	add	x0, sp, #8
	mov	x1, x23
	bl	_rt2x00_set_field32
Lloh12:
	adrp	x8, _TXD_W1_BURST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TXD_W1_BURST@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x8, _ENTRY_TXD_BURST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENTRY_TXD_BURST@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x23
	bl	_rt2x00_set_field32
Lloh18:
	adrp	x8, _TXD_W1_SD_LEN0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TXD_W1_SD_LEN0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x22
	bl	_rt2x00_set_field32
Lloh21:
	adrp	x8, _TXD_W1_LAST_SEC0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TXD_W1_LAST_SEC0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_rt2x00_set_field32
Lloh24:
	adrp	x8, _TXD_W1_DMA_DONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TXD_W1_DMA_DONE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	w1, #1
	bl	_rt2x00_desc_write
	str	xzr, [sp, #8]
Lloh27:
	adrp	x8, _TXD_W2_SD_PTR1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TXD_W2_SD_PTR1@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w8, [x19]
	add	w2, w8, w22
	add	x0, sp, #8
	bl	_rt2x00_set_field32
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	w1, #2
	bl	_rt2x00_desc_write
	str	xzr, [sp, #8]
Lloh30:
	adrp	x8, _TXD_W3_WIV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TXD_W3_WIV@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
Lloh33:
	adrp	x8, _ENTRY_TXD_ENCRYPT_IV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENTRY_TXD_ENCRYPT_IV@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cmp	w0, #0
	cset	w2, eq
	add	x0, sp, #8
	mov	x1, x22
	bl	_rt2x00_set_field32
Lloh36:
	adrp	x8, _TXD_W3_QSEL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TXD_W3_QSEL@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #2
	bl	_rt2x00_set_field32
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	w1, #3
	bl	_rt2x00_desc_write
	str	x20, [x19, #8]
Lloh39:
	adrp	x8, _TXD_DESC_SIZE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TXD_DESC_SIZE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TXD_W0_SD_PTR0,4,2             ; @TXD_W0_SD_PTR0
	.comm	_TXD_W1_SD_LEN1,4,2             ; @TXD_W1_SD_LEN1
	.comm	_TXD_W1_LAST_SEC1,4,2           ; @TXD_W1_LAST_SEC1
	.comm	_ENTRY_TXD_MORE_FRAG,4,2        ; @ENTRY_TXD_MORE_FRAG
	.comm	_TXD_W1_BURST,4,2               ; @TXD_W1_BURST
	.comm	_ENTRY_TXD_BURST,4,2            ; @ENTRY_TXD_BURST
	.comm	_TXD_W1_SD_LEN0,4,2             ; @TXD_W1_SD_LEN0
	.comm	_TXD_W1_LAST_SEC0,4,2           ; @TXD_W1_LAST_SEC0
	.comm	_TXD_W1_DMA_DONE,4,2            ; @TXD_W1_DMA_DONE
	.comm	_TXD_W2_SD_PTR1,4,2             ; @TXD_W2_SD_PTR1
	.comm	_TXD_W3_WIV,4,2                 ; @TXD_W3_WIV
	.comm	_ENTRY_TXD_ENCRYPT_IV,4,2       ; @ENTRY_TXD_ENCRYPT_IV
	.comm	_TXD_W3_QSEL,4,2                ; @TXD_W3_QSEL
	.comm	_TXD_DESC_SIZE,4,2              ; @TXD_DESC_SIZE
.subsections_via_symbols
