	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_mac_stop                ## -- Begin function mt76x2_mac_stop
	.p2align	4, 0x90
_mt76x2_mac_stop:                       ## @mt76x2_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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_MT_TXOP_CTRL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TXOP_ED_CCA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	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
	movq	_MT_MAC_SYS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mt76_wr
	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, -48(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	movq	%r12, %rdi
	callq	_mt76_wr
	movl	$300, %ebx                      ## imm = 0x12C
	movq	_MT_MAC_STATUS@GOTPCREL(%rip), %r13
	movq	_MT_MAC_STATUS_RX@GOTPCREL(%rip), %r15
	movq	_MT_MAC_STATUS_TX@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mt76_rr
	movl	(%r14), %ecx
	orl	(%r15), %ecx
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_IBI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$12, %esi
	callq	_MT_BBP
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	_CORE@GOTPCREL(%rip), %r13
	movl	(%r13), %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	(%r13), %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	(%r13), %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	(%r13), %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_6:
	movq	_MT_TX_RTS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_MT_MAC_SYS_CTRL,4,2            ## @MT_MAC_SYS_CTRL
	.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_MAC_STATUS,4,2              ## @MT_MAC_STATUS
	.comm	_MT_MAC_STATUS_RX,4,2           ## @MT_MAC_STATUS_RX
	.comm	_MT_MAC_STATUS_TX,4,2           ## @MT_MAC_STATUS_TX
	.comm	_IBI,4,2                        ## @IBI
	.comm	_CORE,4,2                       ## @CORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_mac_stop                ; -- Begin function mt76x2_mac_stop
	.p2align	2
_mt76x2_mac_stop:                       ; @mt76x2_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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MT_TXOP_CTRL_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TXOP_CTRL_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MT_TXOP_ED_CCA_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TXOP_ED_CCA_EN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_mt76_clear
Lloh6:
	adrp	x8, _MT_TXOP_HLDR_ET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_TXOP_HLDR_ET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MT_TXOP_HLDR_TX40M_BLK_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_TXOP_HLDR_TX40M_BLK_EN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_clear
Lloh12:
	adrp	x8, _MT_MAC_SYS_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mt76_wr
Lloh15:
	adrp	x22, _MT_TX_RTS_CFG@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MT_TX_RTS_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_mt76_rr
	mov	x20, x0
	ldr	w1, [x22]
Lloh17:
	adrp	x8, _MT_TX_RTS_CFG_RETRY_LIMIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_TX_RTS_CFG_RETRY_LIMIT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_mt76_wr
	mov	w23, #300
Lloh20:
	adrp	x24, _MT_MAC_STATUS@GOTPAGE
Lloh21:
	ldr	x24, [x24, _MT_MAC_STATUS@GOTPAGEOFF]
Lloh22:
	adrp	x25, _MT_MAC_STATUS_RX@GOTPAGE
Lloh23:
	ldr	x25, [x25, _MT_MAC_STATUS_RX@GOTPAGEOFF]
Lloh24:
	adrp	x26, _MT_MAC_STATUS_TX@GOTPAGE
Lloh25:
	ldr	x26, [x26, _MT_MAC_STATUS_TX@GOTPAGEOFF]
Lloh26:
	adrp	x27, _IBI@GOTPAGE
Lloh27:
	ldr	x27, [x27, _IBI@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w23, w23, #1
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_mt76_rr
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	mov	w1, #12
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	cbnz	w0, LBB0_1
	b	LBB0_6
LBB0_4:
	cbz	w21, LBB0_6
; %bb.5:
Lloh28:
	adrp	x23, _CORE@GOTPAGE
Lloh29:
	ldr	x23, [x23, _CORE@GOTPAGEOFF]
	ldr	w0, [x23]
	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, [x23]
	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, [x23]
	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, [x23]
	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_6:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	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	_mt76_wr
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.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	_MT_MAC_SYS_CTRL,4,2            ; @MT_MAC_SYS_CTRL
	.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_MAC_STATUS,4,2              ; @MT_MAC_STATUS
	.comm	_MT_MAC_STATUS_RX,4,2           ; @MT_MAC_STATUS_RX
	.comm	_MT_MAC_STATUS_TX,4,2           ; @MT_MAC_STATUS_TX
	.comm	_IBI,4,2                        ; @IBI
	.comm	_CORE,4,2                       ; @CORE
.subsections_via_symbols
