	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_filter_tx               ## -- Begin function mt7603_filter_tx
	.p2align	4, 0x90
_mt7603_filter_tx:                      ## @mt7603_filter_tx
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	leal	(%rax,%rax,2), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$1, %eax
	movl	$8, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %edx
	callq	_mt7603_wtbl_set_skip_tx
	movq	_MT_TX_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MT_TX_ABORT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MT_TX_ABORT_WCID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MT_DMA_FQCR0@GOTPCREL(%rip), %r13
	movl	(%r13), %r13d
	movq	_MT_DMA_FQCR0_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MT_DMA_FQCR0_TARGET_WCID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FIELD_PREP
	orl	%eax, %r12d
	movq	_MT_DMA_FQCR0_TARGET_QID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_FIELD_PREP
	movl	%eax, %r15d
	movq	_MT_DMA_FQCR0_DEST_PORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_FIELD_PREP
	orl	%eax, %r15d
	orl	%r12d, %r15d
	movq	_MT_DMA_FQCR0_DEST_QUEUE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_FIELD_PREP
	orl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_mt76_wr
	movq	_MT_DMA_FQCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_DMA_FQCR0_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$5000, %r8d                     ## imm = 0x1388
	callq	_mt76_poll
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	incl	%r14d
	cmpl	$4, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_MT_TX_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mt76_wr
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7603_wtbl_set_skip_tx        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TX_ABORT,4,2                ## @MT_TX_ABORT
	.comm	_MT_TX_ABORT_EN,4,2             ## @MT_TX_ABORT_EN
	.comm	_MT_TX_ABORT_WCID,4,2           ## @MT_TX_ABORT_WCID
	.comm	_MT_DMA_FQCR0,4,2               ## @MT_DMA_FQCR0
	.comm	_MT_DMA_FQCR0_BUSY,4,2          ## @MT_DMA_FQCR0_BUSY
	.comm	_MT_DMA_FQCR0_TARGET_WCID,4,2   ## @MT_DMA_FQCR0_TARGET_WCID
	.comm	_MT_DMA_FQCR0_TARGET_QID,4,2    ## @MT_DMA_FQCR0_TARGET_QID
	.comm	_MT_DMA_FQCR0_DEST_PORT_ID,4,2  ## @MT_DMA_FQCR0_DEST_PORT_ID
	.comm	_MT_DMA_FQCR0_DEST_QUEUE_ID,4,2 ## @MT_DMA_FQCR0_DEST_QUEUE_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_filter_tx               ; -- Begin function mt7603_filter_tx
	.p2align	2
_mt7603_filter_tx:                      ; @mt7603_filter_tx
	.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	x19, x1
	mov	x20, x0
	mov	w8, #3
	cmp	w2, #0
	csel	w21, wzr, w8, eq
	mov	w8, #8
	csinc	w22, w8, wzr, ne
	mov	w2, #1
	bl	_mt7603_wtbl_set_skip_tx
Lloh0:
	adrp	x8, _MT_TX_ABORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TX_ABORT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _MT_TX_ABORT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TX_ABORT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _MT_TX_ABORT_WCID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_TX_ABORT_WCID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_FIELD_PREP
	orr	w2, w0, w24
	mov	x0, x20
	mov	x1, x23
	bl	_mt76_wr
	mov	w23, #0
Lloh9:
	adrp	x26, _MT_DMA_FQCR0@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MT_DMA_FQCR0@GOTPAGEOFF]
Lloh11:
	adrp	x27, _MT_DMA_FQCR0_BUSY@GOTPAGE
Lloh12:
	ldr	x27, [x27, _MT_DMA_FQCR0_BUSY@GOTPAGEOFF]
Lloh13:
	adrp	x25, _MT_DMA_FQCR0_DEST_QUEUE_ID@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MT_DMA_FQCR0_DEST_QUEUE_ID@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x26]
	ldr	w28, [x27]
Lloh15:
	adrp	x8, _MT_DMA_FQCR0_TARGET_WCID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_DMA_FQCR0_TARGET_WCID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_FIELD_PREP
	orr	w28, w0, w28
Lloh18:
	adrp	x8, _MT_DMA_FQCR0_TARGET_QID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT_DMA_FQCR0_TARGET_QID@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_FIELD_PREP
	orr	w28, w28, w0
Lloh21:
	adrp	x8, _MT_DMA_FQCR0_DEST_PORT_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MT_DMA_FQCR0_DEST_PORT_ID@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w28, w28, w0
	ldr	w0, [x25]
	mov	x1, x22
	bl	_FIELD_PREP
	orr	w2, w28, w0
	mov	x0, x20
	mov	x1, x24
	bl	_mt76_wr
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #5000
	bl	_mt76_poll
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	add	w23, w23, #1
	cmp	w23, #4
	b.ne	LBB0_1
; %bb.2:
Lloh24:
	adrp	x8, _MT_TX_ABORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MT_TX_ABORT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mt76_wr
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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	_mt7603_wtbl_set_skip_tx
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TX_ABORT,4,2                ; @MT_TX_ABORT
	.comm	_MT_TX_ABORT_EN,4,2             ; @MT_TX_ABORT_EN
	.comm	_MT_TX_ABORT_WCID,4,2           ; @MT_TX_ABORT_WCID
	.comm	_MT_DMA_FQCR0,4,2               ; @MT_DMA_FQCR0
	.comm	_MT_DMA_FQCR0_BUSY,4,2          ; @MT_DMA_FQCR0_BUSY
	.comm	_MT_DMA_FQCR0_TARGET_WCID,4,2   ; @MT_DMA_FQCR0_TARGET_WCID
	.comm	_MT_DMA_FQCR0_TARGET_QID,4,2    ; @MT_DMA_FQCR0_TARGET_QID
	.comm	_MT_DMA_FQCR0_DEST_PORT_ID,4,2  ; @MT_DMA_FQCR0_DEST_PORT_ID
	.comm	_MT_DMA_FQCR0_DEST_QUEUE_ID,4,2 ; @MT_DMA_FQCR0_DEST_QUEUE_ID
.subsections_via_symbols
