	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_mac_start              ## -- Begin function mt7601u_mac_start
	.p2align	4, 0x90
_mt7601u_mac_start:                     ## @mt7601u_mac_start
	.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, %rbx
	movq	_MT_MAC_SYS_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MT_MAC_SYS_CTRL_ENABLE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mt7601u_wr
	movq	_MT_WPDMA_GLO_CFG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MT_WPDMA_GLO_CFG_TX_DMA_BUSY@GOTPCREL(%rip), %rax
	movq	_MT_WPDMA_GLO_CFG_RX_DMA_BUSY@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$200000, %r8d                   ## imm = 0x30D40
	callq	_mt76_poll
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MT_RX_FILTR_CFG_CRC_ERR@GOTPCREL(%rip), %rax
	movq	_MT_RX_FILTR_CFG_PHY_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_PROMISC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_VER_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_DUP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_CFACK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_CFEND@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_ACK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_CTS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_RTS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_PSPOLL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_BA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_RX_FILTR_CFG_CTRL_RSV@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_MT_RX_FILTR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_wr
	movl	(%r15), %esi
	movq	_MT_MAC_SYS_CTRL_ENABLE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT_MAC_SYS_CTRL_ENABLE_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt7601u_wr
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	_MT_WPDMA_GLO_CFG_TX_DMA_BUSY@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$50, %r8d
	callq	_mt76_poll
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_MAC_SYS_CTRL,4,2            ## @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ## @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_WPDMA_GLO_CFG,4,2           ## @MT_WPDMA_GLO_CFG
	.comm	_MT_WPDMA_GLO_CFG_TX_DMA_BUSY,4,2 ## @MT_WPDMA_GLO_CFG_TX_DMA_BUSY
	.comm	_MT_WPDMA_GLO_CFG_RX_DMA_BUSY,4,2 ## @MT_WPDMA_GLO_CFG_RX_DMA_BUSY
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_MT_RX_FILTR_CFG_CRC_ERR,4,2    ## @MT_RX_FILTR_CFG_CRC_ERR
	.comm	_MT_RX_FILTR_CFG_PHY_ERR,4,2    ## @MT_RX_FILTR_CFG_PHY_ERR
	.comm	_MT_RX_FILTR_CFG_PROMISC,4,2    ## @MT_RX_FILTR_CFG_PROMISC
	.comm	_MT_RX_FILTR_CFG_VER_ERR,4,2    ## @MT_RX_FILTR_CFG_VER_ERR
	.comm	_MT_RX_FILTR_CFG_DUP,4,2        ## @MT_RX_FILTR_CFG_DUP
	.comm	_MT_RX_FILTR_CFG_CFACK,4,2      ## @MT_RX_FILTR_CFG_CFACK
	.comm	_MT_RX_FILTR_CFG_CFEND,4,2      ## @MT_RX_FILTR_CFG_CFEND
	.comm	_MT_RX_FILTR_CFG_ACK,4,2        ## @MT_RX_FILTR_CFG_ACK
	.comm	_MT_RX_FILTR_CFG_CTS,4,2        ## @MT_RX_FILTR_CFG_CTS
	.comm	_MT_RX_FILTR_CFG_RTS,4,2        ## @MT_RX_FILTR_CFG_RTS
	.comm	_MT_RX_FILTR_CFG_PSPOLL,4,2     ## @MT_RX_FILTR_CFG_PSPOLL
	.comm	_MT_RX_FILTR_CFG_BA,4,2         ## @MT_RX_FILTR_CFG_BA
	.comm	_MT_RX_FILTR_CFG_CTRL_RSV,4,2   ## @MT_RX_FILTR_CFG_CTRL_RSV
	.comm	_MT_RX_FILTR_CFG,4,2            ## @MT_RX_FILTR_CFG
	.comm	_MT_MAC_SYS_CTRL_ENABLE_RX,4,2  ## @MT_MAC_SYS_CTRL_ENABLE_RX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_mac_start              ; -- Begin function mt7601u_mac_start
	.p2align	2
_mt7601u_mac_start:                     ; @mt7601u_mac_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _MT_MAC_SYS_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MT_MAC_SYS_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x23, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_mt7601u_wr
Lloh4:
	adrp	x20, _MT_WPDMA_GLO_CFG@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MT_WPDMA_GLO_CFG@GOTPAGEOFF]
Lloh6:
	adrp	x22, _MT_WPDMA_GLO_CFG_TX_DMA_BUSY@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MT_WPDMA_GLO_CFG_TX_DMA_BUSY@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x22]
Lloh8:
	adrp	x24, _MT_WPDMA_GLO_CFG_RX_DMA_BUSY@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MT_WPDMA_GLO_CFG_RX_DMA_BUSY@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #3392
	movk	w4, #3, lsl #16
	bl	_mt76_poll
	cbz	w0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _MT_RX_FILTR_CFG_CRC_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_RX_FILTR_CFG_CRC_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MT_RX_FILTR_CFG_PHY_ERR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_PHY_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _MT_RX_FILTR_CFG_PROMISC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_PROMISC@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _MT_RX_FILTR_CFG_VER_ERR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_VER_ERR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _MT_RX_FILTR_CFG_DUP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_DUP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _MT_RX_FILTR_CFG_CFACK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_CFACK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _MT_RX_FILTR_CFG_CFEND@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_CFEND@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _MT_RX_FILTR_CFG_ACK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_ACK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _MT_RX_FILTR_CFG_CTS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_CTS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _MT_RX_FILTR_CFG_RTS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_RTS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _MT_RX_FILTR_CFG_PSPOLL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_PSPOLL@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _MT_RX_FILTR_CFG_BA@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_BA@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _MT_RX_FILTR_CFG_CTRL_RSV@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MT_RX_FILTR_CFG_CTRL_RSV@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w2, w8, w9
	str	w2, [x19]
Lloh49:
	adrp	x8, _MT_RX_FILTR_CFG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MT_RX_FILTR_CFG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt7601u_wr
	ldr	w1, [x21]
	ldr	w8, [x23]
Lloh52:
	adrp	x9, _MT_MAC_SYS_CTRL_ENABLE_RX@GOTPAGE
Lloh53:
	ldr	x9, [x9, _MT_MAC_SYS_CTRL_ENABLE_RX@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mt7601u_wr
	ldr	w1, [x20]
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #50
	bl	_mt76_poll
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_3
LBB0_2:
Lloh55:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_MAC_SYS_CTRL,4,2            ; @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ; @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_WPDMA_GLO_CFG,4,2           ; @MT_WPDMA_GLO_CFG
	.comm	_MT_WPDMA_GLO_CFG_TX_DMA_BUSY,4,2 ; @MT_WPDMA_GLO_CFG_TX_DMA_BUSY
	.comm	_MT_WPDMA_GLO_CFG_RX_DMA_BUSY,4,2 ; @MT_WPDMA_GLO_CFG_RX_DMA_BUSY
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_MT_RX_FILTR_CFG_CRC_ERR,4,2    ; @MT_RX_FILTR_CFG_CRC_ERR
	.comm	_MT_RX_FILTR_CFG_PHY_ERR,4,2    ; @MT_RX_FILTR_CFG_PHY_ERR
	.comm	_MT_RX_FILTR_CFG_PROMISC,4,2    ; @MT_RX_FILTR_CFG_PROMISC
	.comm	_MT_RX_FILTR_CFG_VER_ERR,4,2    ; @MT_RX_FILTR_CFG_VER_ERR
	.comm	_MT_RX_FILTR_CFG_DUP,4,2        ; @MT_RX_FILTR_CFG_DUP
	.comm	_MT_RX_FILTR_CFG_CFACK,4,2      ; @MT_RX_FILTR_CFG_CFACK
	.comm	_MT_RX_FILTR_CFG_CFEND,4,2      ; @MT_RX_FILTR_CFG_CFEND
	.comm	_MT_RX_FILTR_CFG_ACK,4,2        ; @MT_RX_FILTR_CFG_ACK
	.comm	_MT_RX_FILTR_CFG_CTS,4,2        ; @MT_RX_FILTR_CFG_CTS
	.comm	_MT_RX_FILTR_CFG_RTS,4,2        ; @MT_RX_FILTR_CFG_RTS
	.comm	_MT_RX_FILTR_CFG_PSPOLL,4,2     ; @MT_RX_FILTR_CFG_PSPOLL
	.comm	_MT_RX_FILTR_CFG_BA,4,2         ; @MT_RX_FILTR_CFG_BA
	.comm	_MT_RX_FILTR_CFG_CTRL_RSV,4,2   ; @MT_RX_FILTR_CFG_CTRL_RSV
	.comm	_MT_RX_FILTR_CFG,4,2            ; @MT_RX_FILTR_CFG
	.comm	_MT_MAC_SYS_CTRL_ENABLE_RX,4,2  ; @MT_MAC_SYS_CTRL_ENABLE_RX
.subsections_via_symbols
