	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mt7601u_mac_fetch_tx_status
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt7601u_mac_fetch_tx_status
	.p2align	4, 0x90
_mt7601u_mac_fetch_tx_status:           ## @mt7601u_mac_fetch_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	_MT_TX_STAT_FIFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_mt7601u_rr
	movq	_MT_TX_STAT_FIFO_VALID@GOTPCREL(%rip), %rcx
	movq	_MT_TX_STAT_FIFO_SUCCESS@GOTPCREL(%rip), %rdx
	movq	_MT_TX_STAT_FIFO_AGGR@GOTPCREL(%rip), %rsi
	movq	_MT_TX_STAT_FIFO_ACKREQ@GOTPCREL(%rip), %rdi
	movd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm0
	pinsrd	$2, (%rsi), %xmm0
	pinsrd	$3, (%rdi), %xmm0
	movl	%eax, %ebx
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%r14)
	movq	_MT_TX_STAT_FIFO_PID_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%rax, 32(%r14)
	movq	_MT_TX_STAT_FIFO_WCID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%rax, 24(%r14)
	movq	_MT_TX_STAT_FIFO_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%rax, 16(%r14)
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_PID_TYPE,4,2   ## @MT_TX_STAT_FIFO_PID_TYPE
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_mac_fetch_tx_status    ; -- Begin function mt7601u_mac_fetch_tx_status
	.p2align	2
_mt7601u_mac_fetch_tx_status:           ; @mt7601u_mac_fetch_tx_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x8
Lloh0:
	adrp	x8, _MT_TX_STAT_FIFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TX_STAT_FIFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt7601u_rr
	mov	x20, x0
Lloh3:
	adrp	x8, _MT_TX_STAT_FIFO_VALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_VALID@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MT_TX_STAT_FIFO_SUCCESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MT_TX_STAT_FIFO_SUCCESS@GOTPAGEOFF]
Lloh7:
	adrp	x10, _MT_TX_STAT_FIFO_AGGR@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MT_TX_STAT_FIFO_AGGR@GOTPAGEOFF]
Lloh9:
	adrp	x11, _MT_TX_STAT_FIFO_ACKREQ@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MT_TX_STAT_FIFO_ACKREQ@GOTPAGEOFF]
Lloh11:
	ldr	s0, [x8]
	ld1.s	{ v0 }[1], [x9]
	ld1.s	{ v0 }[2], [x10]
	ld1.s	{ v0 }[3], [x11]
	dup.4s	v1, w0
	and.16b	v0, v0, v1
	cmeq.4s	v0, v0, #0
	movi.4s	v1, #1
	bic.16b	v0, v1, v0
	str	q0, [x19]
Lloh12:
	adrp	x8, _MT_TX_STAT_FIFO_PID_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_PID_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	str	x0, [x19, #32]
Lloh15:
	adrp	x8, _MT_TX_STAT_FIFO_WCID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_WCID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	str	x0, [x19, #24]
Lloh18:
	adrp	x8, _MT_TX_STAT_FIFO_RATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT_TX_STAT_FIFO_RATE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	str	x0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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_PID_TYPE,4,2   ; @MT_TX_STAT_FIFO_PID_TYPE
	.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
.subsections_via_symbols
