	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_dma_enable
_mt76x02_dma_enable:                    ## @mt76x02_dma_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MT_MAC_SYS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_MAC_SYS_CTRL_ENABLE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mt76_wr
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_mt76x02_wait_for_wpdma
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	movq	_MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	movq	_MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MT_WPDMA_GLO_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mt76_set
	movl	(%r14), %esi
	movq	_MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mt76_clear                     ## TAILCALL
	.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_DMA_BURST_SIZE,4,2 ## @MT_WPDMA_GLO_CFG_DMA_BURST_SIZE
	.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,4,2           ## @MT_WPDMA_GLO_CFG
	.comm	_MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE,4,2 ## @MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE
	.no_dead_strip	_mt76x02_dma_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_dma_enable
_mt76x02_dma_enable:                    ; @mt76x02_dma_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MT_MAC_SYS_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_mt76_wr
	mov	x0, x19
	mov	w1, #1000
	bl	_mt76x02_wait_for_wpdma
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
Lloh6:
	adrp	x8, _MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_FIELD_PREP
Lloh9:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh15:
	adrp	x20, _MT_WPDMA_GLO_CFG@GOTPAGE
Lloh16:
	ldr	x20, [x20, _MT_WPDMA_GLO_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt76_set
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt76_clear
	.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
	.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_DMA_BURST_SIZE,4,2 ; @MT_WPDMA_GLO_CFG_DMA_BURST_SIZE
	.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,4,2           ; @MT_WPDMA_GLO_CFG
	.comm	_MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE,4,2 ; @MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE
	.no_dead_strip	_mt76x02_dma_enable
.subsections_via_symbols
