	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_load_tx_status     ## -- Begin function mt76x02_mac_load_tx_status
	.p2align	4, 0x90
_mt76x02_mac_load_tx_status:            ## @mt76x02_mac_load_tx_status
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_MT_TX_STAT_FIFO_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt76_rr
	movl	%eax, %r15d
	movq	_MT_TX_STAT_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76_rr
	movl	%eax, %ebx
	movq	_MT_TX_STAT_FIFO_VALID@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, (%r12)
	je	LBB0_1
## %bb.2:
	movq	_MT_TX_STAT_FIFO_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, 4(%r12)
	movq	_MT_TX_STAT_FIFO_AGGR@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, 8(%r12)
	movq	_MT_TX_STAT_FIFO_ACKREQ@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, 12(%r12)
	movq	_MT_TX_STAT_FIFO_WCID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%rax, 40(%r12)
	movq	_MT_TX_STAT_FIFO_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%rax, 32(%r12)
	movq	_MT_TX_STAT_FIFO_EXT_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_FIELD_GET
	movq	%rax, 24(%r12)
	movq	_MT_TX_STAT_FIFO_EXT_PKTID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_FIELD_GET
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_trace_mac_txstat_fetch
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TX_STAT_FIFO_EXT,4,2        ## @MT_TX_STAT_FIFO_EXT
	.comm	_MT_TX_STAT_FIFO,4,2            ## @MT_TX_STAT_FIFO
	.comm	_MT_TX_STAT_FIFO_VALID,4,2      ## @MT_TX_STAT_FIFO_VALID
	.comm	_MT_TX_STAT_FIFO_SUCCESS,4,2    ## @MT_TX_STAT_FIFO_SUCCESS
	.comm	_MT_TX_STAT_FIFO_AGGR,4,2       ## @MT_TX_STAT_FIFO_AGGR
	.comm	_MT_TX_STAT_FIFO_ACKREQ,4,2     ## @MT_TX_STAT_FIFO_ACKREQ
	.comm	_MT_TX_STAT_FIFO_WCID,4,2       ## @MT_TX_STAT_FIFO_WCID
	.comm	_MT_TX_STAT_FIFO_RATE,4,2       ## @MT_TX_STAT_FIFO_RATE
	.comm	_MT_TX_STAT_FIFO_EXT_RETRY,4,2  ## @MT_TX_STAT_FIFO_EXT_RETRY
	.comm	_MT_TX_STAT_FIFO_EXT_PKTID,4,2  ## @MT_TX_STAT_FIFO_EXT_PKTID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_load_tx_status     ; -- Begin function mt76x02_mac_load_tx_status
	.p2align	2
_mt76x02_mac_load_tx_status:            ; @mt76x02_mac_load_tx_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MT_TX_STAT_FIFO_EXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt76_rr
	mov	x21, x0
Lloh3:
	adrp	x8, _MT_TX_STAT_FIFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TX_STAT_FIFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76_rr
Lloh6:
	adrp	x8, _MT_TX_STAT_FIFO_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ands	w8, w8, w0
	cset	w9, ne
	str	w9, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh9:
	adrp	x8, _MT_TX_STAT_FIFO_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
Lloh12:
	adrp	x9, _MT_TX_STAT_FIFO_AGGR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT_TX_STAT_FIFO_AGGR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w0
	cset	w9, ne
	stp	w8, w9, [x19, #4]
Lloh15:
	adrp	x8, _MT_TX_STAT_FIFO_ACKREQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_ACKREQ@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x19, #12]
Lloh18:
	adrp	x8, _MT_TX_STAT_FIFO_WCID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_WCID@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	str	x0, [x19, #40]
Lloh21:
	adrp	x8, _MT_TX_STAT_FIFO_RATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_RATE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	str	x0, [x19, #32]
Lloh24:
	adrp	x8, _MT_TX_STAT_FIFO_EXT_RETRY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_EXT_RETRY@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_GET
	str	x0, [x19, #24]
Lloh27:
	adrp	x8, _MT_TX_STAT_FIFO_EXT_PKTID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_EXT_PKTID@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_GET
	str	x0, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_trace_mac_txstat_fetch
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TX_STAT_FIFO_EXT,4,2        ; @MT_TX_STAT_FIFO_EXT
	.comm	_MT_TX_STAT_FIFO,4,2            ; @MT_TX_STAT_FIFO
	.comm	_MT_TX_STAT_FIFO_VALID,4,2      ; @MT_TX_STAT_FIFO_VALID
	.comm	_MT_TX_STAT_FIFO_SUCCESS,4,2    ; @MT_TX_STAT_FIFO_SUCCESS
	.comm	_MT_TX_STAT_FIFO_AGGR,4,2       ; @MT_TX_STAT_FIFO_AGGR
	.comm	_MT_TX_STAT_FIFO_ACKREQ,4,2     ; @MT_TX_STAT_FIFO_ACKREQ
	.comm	_MT_TX_STAT_FIFO_WCID,4,2       ; @MT_TX_STAT_FIFO_WCID
	.comm	_MT_TX_STAT_FIFO_RATE,4,2       ; @MT_TX_STAT_FIFO_RATE
	.comm	_MT_TX_STAT_FIFO_EXT_RETRY,4,2  ; @MT_TX_STAT_FIFO_EXT_RETRY
	.comm	_MT_TX_STAT_FIFO_EXT_PKTID,4,2  ; @MT_TX_STAT_FIFO_EXT_PKTID
.subsections_via_symbols
