	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2u_mac_stop               ## -- Begin function mt76x2u_mac_stop
	.p2align	4, 0x90
_mt76x2u_mac_stop:                      ## @mt76x2u_mac_stop
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_MT76_REMOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_30
LBB0_2:
	movq	_MT_TX_RTS_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_mt76_rr
	movl	(%rbx), %esi
	movq	_MT_TX_RTS_CFG_RETRY_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	movq	%r12, %rdi
	callq	_mt76_wr
	movq	_MT_TXOP_CTRL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TXOP_ED_CCA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mt76_clear
	movq	_MT_TXOP_HLDR_ET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TXOP_HLDR_TX40M_BLK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mt76_clear
	xorl	%ebx, %ebx
	movq	_CFG@GOTPCREL(%rip), %r15
	movq	_MT_USB_U3DMA_CFG@GOTPCREL(%rip), %r13
	movq	_MT_USB_DMA_CFG_TX_BUSY@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	incl	%ebx
	cmpl	$2000, %ebx                     ## imm = 0x7D0
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_MT_VEND_ADDR
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	testl	%eax, (%r14)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$10, %ebx
	jbe	LBB0_5
LBB0_6:
	movl	$200, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	decl	%ebx
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1080, %esi                     ## imm = 0x438
	callq	_mt76_rr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movl	$2608, %esi                     ## imm = 0xA30
	callq	_mt76_rr
	testb	%al, %al
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movl	$2612, %esi                     ## imm = 0xA34
	callq	_mt76_rr
	testl	$-16711936, %eax                ## imm = 0xFF00FF00
	jne	LBB0_10
LBB0_11:
	movq	_MT_MAC_SYS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_MAC_SYS_CTRL_ENABLE_RX@GOTPCREL(%rip), %rax
	movq	_MT_MAC_SYS_CTRL_ENABLE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mt76_clear
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_MT_MAC_STATUS@GOTPCREL(%rip), %r14
	movq	_MT_MAC_STATUS_TX@GOTPCREL(%rip), %r15
	movq	_IBI@GOTPCREL(%rip), %r13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	decl	%ebx
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_mt76_rr
	testl	%eax, (%r15)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r13), %edi
	movl	$12, %esi
	callq	_MT_BBP
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_16
LBB0_15:
	movq	_CORE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_MT_BBP
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mt76_set
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_MT_BBP
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mt76_clear
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_MT_BBP
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mt76_set
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_MT_BBP
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mt76_clear
LBB0_16:
	xorl	%r15d, %r15d
	movl	$200, %r13d
	jmp	LBB0_17
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%r15d
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$50, %edi
	callq	_msleep
	decl	%r13d
	je	LBB0_23
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1072, %esi                     ## imm = 0x430
	callq	_mt76_rr
	testl	$16711680, %eax                 ## imm = 0xFF0000
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	movl	$2608, %esi                     ## imm = 0xA30
	callq	_mt76_rr
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	movl	$2612, %esi                     ## imm = 0xA34
	callq	_mt76_rr
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$9, %r15d
	jle	LBB0_21
LBB0_23:
	movl	(%r14), %esi
	movq	_MT_MAC_STATUS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	$2000, %r8d                     ## imm = 0x7D0
	callq	_mt76_poll
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_25:
	movq	_MT_USB_DMA_CFG_RX_BUSY@GOTPCREL(%rip), %r14
	movq	_CFG@GOTPCREL(%rip), %r15
	movq	_MT_USB_U3DMA_CFG@GOTPCREL(%rip), %r13
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	incl	%ebx
	cmpl	$2000, %ebx                     ## imm = 0x7D0
	je	LBB0_29
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_MT_VEND_ADDR
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	testl	%eax, (%r14)
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$10, %ebx
	jbe	LBB0_28
LBB0_29:
	movq	_MT_TX_RTS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mt76_wr
	xorl	%eax, %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT76_REMOVED,4,2               ## @MT76_REMOVED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MT_TX_RTS_CFG,4,2              ## @MT_TX_RTS_CFG
	.comm	_MT_TX_RTS_CFG_RETRY_LIMIT,4,2  ## @MT_TX_RTS_CFG_RETRY_LIMIT
	.comm	_MT_TXOP_CTRL_CFG,4,2           ## @MT_TXOP_CTRL_CFG
	.comm	_MT_TXOP_ED_CCA_EN,4,2          ## @MT_TXOP_ED_CCA_EN
	.comm	_MT_TXOP_HLDR_ET,4,2            ## @MT_TXOP_HLDR_ET
	.comm	_MT_TXOP_HLDR_TX40M_BLK_EN,4,2  ## @MT_TXOP_HLDR_TX40M_BLK_EN
	.comm	_CFG,4,2                        ## @CFG
	.comm	_MT_USB_U3DMA_CFG,4,2           ## @MT_USB_U3DMA_CFG
	.comm	_MT_USB_DMA_CFG_TX_BUSY,4,2     ## @MT_USB_DMA_CFG_TX_BUSY
	.comm	_MT_MAC_SYS_CTRL,4,2            ## @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_ENABLE_RX,4,2  ## @MT_MAC_SYS_CTRL_ENABLE_RX
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ## @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_MAC_STATUS,4,2              ## @MT_MAC_STATUS
	.comm	_MT_MAC_STATUS_TX,4,2           ## @MT_MAC_STATUS_TX
	.comm	_IBI,4,2                        ## @IBI
	.comm	_CORE,4,2                       ## @CORE
	.comm	_MT_MAC_STATUS_RX,4,2           ## @MT_MAC_STATUS_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC RX failed to stop\n"

	.comm	_MT_USB_DMA_CFG_RX_BUSY,4,2     ## @MT_USB_DMA_CFG_RX_BUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2u_mac_stop               ; -- Begin function mt76x2u_mac_stop
	.p2align	2
_mt76x2u_mac_stop:                      ; @mt76x2u_mac_stop
	.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, x0
Lloh0:
	adrp	x8, _MT76_REMOVED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT76_REMOVED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_28
LBB0_2:
Lloh6:
	adrp	x22, _MT_TX_RTS_CFG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MT_TX_RTS_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_mt76_rr
	mov	x20, x0
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _MT_TX_RTS_CFG_RETRY_LIMIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_TX_RTS_CFG_RETRY_LIMIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_mt76_wr
Lloh11:
	adrp	x8, _MT_TXOP_CTRL_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_TXOP_CTRL_CFG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _MT_TXOP_ED_CCA_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_TXOP_ED_CCA_EN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_clear
Lloh17:
	adrp	x8, _MT_TXOP_HLDR_ET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_TXOP_HLDR_ET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _MT_TXOP_HLDR_TX40M_BLK_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_TXOP_HLDR_TX40M_BLK_EN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_clear
	mov	w21, #0
Lloh23:
	adrp	x23, _CFG@GOTPAGE
Lloh24:
	ldr	x23, [x23, _CFG@GOTPAGEOFF]
Lloh25:
	adrp	x24, _MT_USB_U3DMA_CFG@GOTPAGE
Lloh26:
	ldr	x24, [x24, _MT_USB_U3DMA_CFG@GOTPAGEOFF]
Lloh27:
	adrp	x25, _MT_USB_DMA_CFG_TX_BUSY@GOTPAGE
Lloh28:
	ldr	x25, [x25, _MT_USB_DMA_CFG_TX_BUSY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_MT_VEND_ADDR
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x25]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w21, #10, #0, eq
	b.hi	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	add	w21, w21, #1
	cmp	w21, #2000
	b.ne	LBB0_3
LBB0_5:
	mov	w21, #200
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	subs	w21, w21, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1080
	bl	_mt76_rr
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #2608
	bl	_mt76_rr
	tst	w0, #0xff
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #2612
	bl	_mt76_rr
	tst	w0, #0xff00ff00
	b.ne	LBB0_6
LBB0_10:
Lloh29:
	adrp	x8, _MT_MAC_SYS_CTRL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL@GOTPAGEOFF]
Lloh31:
	adrp	x9, _MT_MAC_SYS_CTRL_ENABLE_RX@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MT_MAC_SYS_CTRL_ENABLE_RX@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mt76_clear
	mov	w21, #1000
Lloh38:
	adrp	x25, _MT_MAC_STATUS@GOTPAGE
Lloh39:
	ldr	x25, [x25, _MT_MAC_STATUS@GOTPAGEOFF]
Lloh40:
	adrp	x26, _MT_MAC_STATUS_TX@GOTPAGE
Lloh41:
	ldr	x26, [x26, _MT_MAC_STATUS_TX@GOTPAGEOFF]
Lloh42:
	adrp	x27, _IBI@GOTPAGE
Lloh43:
	ldr	x27, [x27, _IBI@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	subs	w21, w21, #1
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x27]
	mov	w1, #12
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	cbnz	w0, LBB0_11
	b	LBB0_15
LBB0_14:
Lloh44:
	adrp	x26, _CORE@GOTPAGE
Lloh45:
	ldr	x26, [x26, _CORE@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	w1, #4
	bl	_MT_BBP
	mov	x21, x0
	mov	w0, #1
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_set
	ldr	w0, [x26]
	mov	w1, #4
	bl	_MT_BBP
	mov	x21, x0
	mov	w0, #1
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_clear
	ldr	w0, [x26]
	mov	w1, #4
	bl	_MT_BBP
	mov	x21, x0
	mov	w0, #0
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_set
	ldr	w0, [x26]
	mov	w1, #4
	bl	_MT_BBP
	mov	x21, x0
	mov	w0, #0
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_clear
LBB0_15:
	mov	w21, #0
	mov	w26, #200
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w21, w21, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #50
	bl	_msleep
	subs	w26, w26, #1
	b.eq	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1072
	bl	_mt76_rr
	tst	w0, #0xff0000
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x19
	mov	w1, #2608
	bl	_mt76_rr
	cbnz	w0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x19
	mov	w1, #2612
	bl	_mt76_rr
	cbnz	w0, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w21, #9
	b.le	LBB0_16
LBB0_22:
	ldr	w1, [x25]
Lloh46:
	adrp	x8, _MT_MAC_STATUS_RX@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MT_MAC_STATUS_RX@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #2000
	bl	_mt76_poll
	cbnz	w0, LBB0_24
; %bb.23:
	ldr	w0, [x19]
Lloh49:
	adrp	x1, l_.str@PAGE
Lloh50:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_24:
	mov	w21, #0
Lloh51:
	adrp	x25, _MT_USB_DMA_CFG_RX_BUSY@GOTPAGE
Lloh52:
	ldr	x25, [x25, _MT_USB_DMA_CFG_RX_BUSY@GOTPAGEOFF]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_MT_VEND_ADDR
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x25]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w21, #10, #0, eq
	b.hi	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	add	w21, w21, #1
	cmp	w21, #2000
	b.ne	LBB0_25
LBB0_27:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
	mov	w0, #0
LBB0_28:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_MT76_REMOVED,4,2               ; @MT76_REMOVED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MT_TX_RTS_CFG,4,2              ; @MT_TX_RTS_CFG
	.comm	_MT_TX_RTS_CFG_RETRY_LIMIT,4,2  ; @MT_TX_RTS_CFG_RETRY_LIMIT
	.comm	_MT_TXOP_CTRL_CFG,4,2           ; @MT_TXOP_CTRL_CFG
	.comm	_MT_TXOP_ED_CCA_EN,4,2          ; @MT_TXOP_ED_CCA_EN
	.comm	_MT_TXOP_HLDR_ET,4,2            ; @MT_TXOP_HLDR_ET
	.comm	_MT_TXOP_HLDR_TX40M_BLK_EN,4,2  ; @MT_TXOP_HLDR_TX40M_BLK_EN
	.comm	_CFG,4,2                        ; @CFG
	.comm	_MT_USB_U3DMA_CFG,4,2           ; @MT_USB_U3DMA_CFG
	.comm	_MT_USB_DMA_CFG_TX_BUSY,4,2     ; @MT_USB_DMA_CFG_TX_BUSY
	.comm	_MT_MAC_SYS_CTRL,4,2            ; @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_ENABLE_RX,4,2  ; @MT_MAC_SYS_CTRL_ENABLE_RX
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ; @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_MAC_STATUS,4,2              ; @MT_MAC_STATUS
	.comm	_MT_MAC_STATUS_TX,4,2           ; @MT_MAC_STATUS_TX
	.comm	_IBI,4,2                        ; @IBI
	.comm	_CORE,4,2                       ; @CORE
	.comm	_MT_MAC_STATUS_RX,4,2           ; @MT_MAC_STATUS_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC RX failed to stop\n"

	.comm	_MT_USB_DMA_CFG_RX_BUSY,4,2     ; @MT_USB_DMA_CFG_RX_BUSY
.subsections_via_symbols
