	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_mac_dma_start           ## -- Begin function mt7603_mac_dma_start
	.p2align	4, 0x90
_mt7603_mac_dma_start:                  ## @mt7603_mac_dma_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_mt7603_mac_start
	movq	%r15, %rdi
	callq	_wait_for_wpdma
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	movq	_MT_WPDMA_GLO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPCREL(%rip), %rax
	movq	_MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	_MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_mt76_set
	movq	_MT_INT_RX_DONE_ALL@GOTPCREL(%rip), %rax
	movq	_MT_INT_TX_DONE_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7603_irq_enable              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_WPDMA_GLO_CFG,4,2           ## @MT_WPDMA_GLO_CFG
	.comm	_MT_WPDMA_GLO_CFG_TX_DMA_EN,4,2 ## @MT_WPDMA_GLO_CFG_TX_DMA_EN
	.comm	_MT_WPDMA_GLO_CFG_RX_DMA_EN,4,2 ## @MT_WPDMA_GLO_CFG_RX_DMA_EN
	.comm	_MT_WPDMA_GLO_CFG_DMA_BURST_SIZE,4,2 ## @MT_WPDMA_GLO_CFG_DMA_BURST_SIZE
	.comm	_MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE,4,2 ## @MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE
	.comm	_MT_INT_RX_DONE_ALL,4,2         ## @MT_INT_RX_DONE_ALL
	.comm	_MT_INT_TX_DONE_ALL,4,2         ## @MT_INT_TX_DONE_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_mac_dma_start           ; -- Begin function mt7603_mac_dma_start
	.p2align	2
_mt7603_mac_dma_start:                  ; @mt7603_mac_dma_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_mt7603_mac_start
	mov	x0, x19
	bl	_wait_for_wpdma
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
Lloh0:
	adrp	x8, _MT_WPDMA_GLO_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh9:
	adrp	x8, _MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_FIELD_PREP
	orr	w8, w21, w0
Lloh12:
	adrp	x9, _MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_set
Lloh15:
	adrp	x8, _MT_INT_RX_DONE_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_INT_RX_DONE_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MT_INT_TX_DONE_ALL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MT_INT_TX_DONE_ALL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mt7603_irq_enable
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_WPDMA_GLO_CFG,4,2           ; @MT_WPDMA_GLO_CFG
	.comm	_MT_WPDMA_GLO_CFG_TX_DMA_EN,4,2 ; @MT_WPDMA_GLO_CFG_TX_DMA_EN
	.comm	_MT_WPDMA_GLO_CFG_RX_DMA_EN,4,2 ; @MT_WPDMA_GLO_CFG_RX_DMA_EN
	.comm	_MT_WPDMA_GLO_CFG_DMA_BURST_SIZE,4,2 ; @MT_WPDMA_GLO_CFG_DMA_BURST_SIZE
	.comm	_MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE,4,2 ; @MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE
	.comm	_MT_INT_RX_DONE_ALL,4,2         ; @MT_INT_RX_DONE_ALL
	.comm	_MT_INT_TX_DONE_ALL,4,2         ; @MT_INT_TX_DONE_ALL
.subsections_via_symbols
