	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7615_dma_init                ## -- Begin function mt7615_dma_init
	.p2align	4, 0x90
_mt7615_dma_init:                       ## @mt7615_dma_init
	.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
	callq	_mt76_dma_attach
	movq	_MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPCREL(%rip), %rax
	movq	_MT_WPDMA_GLO_CFG_FIFO_LITTLE_ENDIAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MT_WPDMA_GLO_CFG@GOTPCREL(%rip), %r15
	movq	_MT_WPDMA_GLO_CFG_FIRST_TOKEN_ONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	_MT_WPDMA_GLO_CFG_OMIT_TX_INFO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt76_wr
	movl	(%r15), %esi
	movq	_MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_mt76_rmw_field
	movl	(%r15), %esi
	movq	_MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT21@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_mt76_rmw_field
	movl	(%r15), %esi
	movq	_MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %ecx
	callq	_mt76_rmw_field
	movl	(%r15), %esi
	movq	_MT_WPDMA_GLO_CFG_MULTI_DMA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %ecx
	callq	_mt76_rmw_field
	movq	_MT_WPDMA_GLO_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mt76_wr
	movq	_MT_WPDMA_TX_PRE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$983040, %edx                   ## imm = 0xF0000
	callq	_mt76_wr
	movq	_MT_WPDMA_RX_PRE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$259981312, %edx                ## imm = 0xF7F0000
	callq	_mt76_wr
	movq	_MT_WPDMA_ABT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$67108902, %edx                 ## imm = 0x4000026
	callq	_mt76_wr
	movq	_MT_WPDMA_ABT_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$411113601, %edx                ## imm = 0x18811881
	callq	_mt76_wr
	movl	$16, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$29016, %esi                    ## imm = 0x7158
	movl	%eax, %edx
	callq	_mt76_set
	movl	$23, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$28672, %esi                    ## imm = 0x7000
	movl	%eax, %edx
	callq	_mt76_clear
	movq	_MT_WPDMA_RST_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_mt76_wr
	movq	_MT7615_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt7615_init_tx_queues
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_MT_TXQ_MCU@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	16(%rbx), %rsi
	movq	_MT7615_TXQ_MCU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT7615_TX_MCU_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_mt7615_init_mcu_queue
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_MT_TXQ_FWDL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	16(%rbx), %rsi
	movq	_MT7615_TXQ_FWDL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT7615_TX_FWDL_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_mt7615_init_mcu_queue
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_MT_RXQ_MCU@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	_MT7615_RX_MCU_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MT_RX_BUF_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	_MT_RX_RING_BASE@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mt76_queue_alloc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_MT_RXQ_MAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	_MT7615_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	movl	(%r13), %r9d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mt76_queue_alloc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	_MT_DELAY_INT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mt76_wr
	movq	%rbx, %rdi
	callq	_mt76_init_queues
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	leaq	4(%rbx), %rdi
	movq	_mt7615_poll_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	callq	_netif_tx_napi_add
	movq	%rbx, %rdi
	callq	_napi_enable
	movl	(%r15), %esi
	movq	_MT_WPDMA_GLO_CFG_TX_DMA_BUSY@GOTPCREL(%rip), %rax
	movq	_MT_WPDMA_GLO_CFG_RX_DMA_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_mt76_poll
	movl	(%r15), %esi
	movq	_MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPCREL(%rip), %rax
	movq	_MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	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	%rbx, %rdi
	callq	_mt7615_irq_enable
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %r14d
LBB0_8:
	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_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
	.comm	_MT_WPDMA_GLO_CFG_FIFO_LITTLE_ENDIAN,4,2 ## @MT_WPDMA_GLO_CFG_FIFO_LITTLE_ENDIAN
	.comm	_MT_WPDMA_GLO_CFG_FIRST_TOKEN_ONLY,4,2 ## @MT_WPDMA_GLO_CFG_FIRST_TOKEN_ONLY
	.comm	_MT_WPDMA_GLO_CFG_OMIT_TX_INFO,4,2 ## @MT_WPDMA_GLO_CFG_OMIT_TX_INFO
	.comm	_MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT0,4,2 ## @MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT0
	.comm	_MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT21,4,2 ## @MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT21
	.comm	_MT_WPDMA_GLO_CFG_DMA_BURST_SIZE,4,2 ## @MT_WPDMA_GLO_CFG_DMA_BURST_SIZE
	.comm	_MT_WPDMA_GLO_CFG_MULTI_DMA_EN,4,2 ## @MT_WPDMA_GLO_CFG_MULTI_DMA_EN
	.comm	_MT_WPDMA_GLO_CFG1,4,2          ## @MT_WPDMA_GLO_CFG1
	.comm	_MT_WPDMA_TX_PRE_CFG,4,2        ## @MT_WPDMA_TX_PRE_CFG
	.comm	_MT_WPDMA_RX_PRE_CFG,4,2        ## @MT_WPDMA_RX_PRE_CFG
	.comm	_MT_WPDMA_ABT_CFG,4,2           ## @MT_WPDMA_ABT_CFG
	.comm	_MT_WPDMA_ABT_CFG1,4,2          ## @MT_WPDMA_ABT_CFG1
	.comm	_MT_WPDMA_RST_IDX,4,2           ## @MT_WPDMA_RST_IDX
	.comm	_MT7615_TX_RING_SIZE,4,2        ## @MT7615_TX_RING_SIZE
	.comm	_MT_TXQ_MCU,8,3                 ## @MT_TXQ_MCU
	.comm	_MT7615_TXQ_MCU,4,2             ## @MT7615_TXQ_MCU
	.comm	_MT7615_TX_MCU_RING_SIZE,4,2    ## @MT7615_TX_MCU_RING_SIZE
	.comm	_MT_TXQ_FWDL,8,3                ## @MT_TXQ_FWDL
	.comm	_MT7615_TXQ_FWDL,4,2            ## @MT7615_TXQ_FWDL
	.comm	_MT7615_TX_FWDL_RING_SIZE,4,2   ## @MT7615_TX_FWDL_RING_SIZE
	.comm	_MT_RXQ_MCU,8,3                 ## @MT_RXQ_MCU
	.comm	_MT7615_RX_MCU_RING_SIZE,4,2    ## @MT7615_RX_MCU_RING_SIZE
	.comm	_MT_RX_BUF_SIZE,4,2             ## @MT_RX_BUF_SIZE
	.comm	_MT_RX_RING_BASE,4,2            ## @MT_RX_RING_BASE
	.comm	_MT_RXQ_MAIN,8,3                ## @MT_RXQ_MAIN
	.comm	_MT7615_RX_RING_SIZE,4,2        ## @MT7615_RX_RING_SIZE
	.comm	_MT_DELAY_INT_CFG,4,2           ## @MT_DELAY_INT_CFG
	.comm	_mt7615_poll_tx,4,2             ## @mt7615_poll_tx
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.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	_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_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	_mt7615_dma_init                ; -- Begin function mt7615_dma_init
	.p2align	2
_mt7615_dma_init:                       ; @mt7615_dma_init
	.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	_mt76_dma_attach
Lloh0:
	adrp	x20, _MT_WPDMA_GLO_CFG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MT_WPDMA_GLO_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MT_WPDMA_GLO_CFG_FIFO_LITTLE_ENDIAN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_FIFO_LITTLE_ENDIAN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _MT_WPDMA_GLO_CFG_FIRST_TOKEN_ONLY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_FIRST_TOKEN_ONLY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _MT_WPDMA_GLO_CFG_OMIT_TX_INFO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_OMIT_TX_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_mt76_wr
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT0@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_mt76_rmw_field
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT21@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT21@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_mt76_rmw_field
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_DMA_BURST_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #3
	bl	_mt76_rmw_field
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _MT_WPDMA_GLO_CFG_MULTI_DMA_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_MULTI_DMA_EN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #3
	bl	_mt76_rmw_field
Lloh26:
	adrp	x8, _MT_WPDMA_GLO_CFG1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG1@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mt76_wr
Lloh29:
	adrp	x8, _MT_WPDMA_TX_PRE_CFG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MT_WPDMA_TX_PRE_CFG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #983040
	bl	_mt76_wr
Lloh32:
	adrp	x8, _MT_WPDMA_RX_PRE_CFG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MT_WPDMA_RX_PRE_CFG@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #259981312
	bl	_mt76_wr
Lloh35:
	adrp	x8, _MT_WPDMA_ABT_CFG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MT_WPDMA_ABT_CFG@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #38
	movk	w2, #1024, lsl #16
	bl	_mt76_wr
Lloh38:
	adrp	x8, _MT_WPDMA_ABT_CFG1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MT_WPDMA_ABT_CFG1@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6273
	movk	w2, #6273, lsl #16
	bl	_mt76_wr
	mov	w0, #16
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #29016
	bl	_mt76_set
	mov	w0, #23
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #28672
	bl	_mt76_clear
Lloh41:
	adrp	x8, _MT_WPDMA_RST_IDX@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MT_WPDMA_RST_IDX@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_mt76_wr
Lloh44:
	adrp	x8, _MT7615_TX_RING_SIZE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MT7615_TX_RING_SIZE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt7615_init_tx_queues
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #16]
Lloh47:
	adrp	x9, _MT_TXQ_MCU@GOTPAGE
Lloh48:
	ldr	x9, [x9, _MT_TXQ_MCU@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
Lloh50:
	adrp	x8, _MT7615_TXQ_MCU@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MT7615_TXQ_MCU@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _MT7615_TX_MCU_RING_SIZE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MT7615_TX_MCU_RING_SIZE@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_mt7615_init_mcu_queue
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #16]
Lloh56:
	adrp	x9, _MT_TXQ_FWDL@GOTPAGE
Lloh57:
	ldr	x9, [x9, _MT_TXQ_FWDL@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
Lloh59:
	adrp	x8, _MT7615_TXQ_FWDL@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MT7615_TXQ_FWDL@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
Lloh62:
	adrp	x8, _MT7615_TX_FWDL_RING_SIZE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MT7615_TX_FWDL_RING_SIZE@GOTPAGEOFF]
Lloh64:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_mt7615_init_mcu_queue
	cbnz	w0, LBB0_7
; %bb.3:
Lloh65:
	adrp	x8, _MT_RXQ_MCU@GOTPAGE
Lloh66:
	ldr	x8, [x8, _MT_RXQ_MCU@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh67:
	ldr	x8, [x8]
	add	x1, x9, x8, lsl #2
Lloh68:
	adrp	x8, _MT7615_RX_MCU_RING_SIZE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _MT7615_RX_MCU_RING_SIZE@GOTPAGEOFF]
Lloh70:
	ldr	w3, [x8]
Lloh71:
	adrp	x21, _MT_RX_BUF_SIZE@GOTPAGE
Lloh72:
	ldr	x21, [x21, _MT_RX_BUF_SIZE@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh73:
	adrp	x22, _MT_RX_RING_BASE@GOTPAGE
Lloh74:
	ldr	x22, [x22, _MT_RX_RING_BASE@GOTPAGEOFF]
	ldr	w5, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_mt76_queue_alloc
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
Lloh75:
	adrp	x9, _MT_RXQ_MAIN@GOTPAGE
Lloh76:
	ldr	x9, [x9, _MT_RXQ_MAIN@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
Lloh78:
	adrp	x8, _MT7615_RX_RING_SIZE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _MT7615_RX_RING_SIZE@GOTPAGEOFF]
Lloh80:
	ldr	w3, [x8]
	ldr	w4, [x21]
	ldr	w5, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_mt76_queue_alloc
	cbnz	w0, LBB0_7
; %bb.5:
Lloh81:
	adrp	x8, _MT_DELAY_INT_CFG@GOTPAGE
Lloh82:
	ldr	x8, [x8, _MT_DELAY_INT_CFG@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mt76_wr
	mov	x0, x19
	bl	_mt76_init_queues
	tbnz	w0, #31, LBB0_7
; %bb.6:
	add	x0, x19, #4
Lloh84:
	adrp	x8, _mt7615_poll_tx@GOTPAGE
Lloh85:
	ldr	x8, [x8, _mt7615_poll_tx@GOTPAGEOFF]
Lloh86:
	ldr	w2, [x8]
Lloh87:
	adrp	x8, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh88:
	ldr	x8, [x8, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh89:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_netif_tx_napi_add
	mov	x0, x19
	bl	_napi_enable
Lloh90:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_DMA_BUSY@GOTPAGE
Lloh91:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_DMA_BUSY@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh92:
	ldr	w8, [x8]
Lloh93:
	adrp	x9, _MT_WPDMA_GLO_CFG_RX_DMA_BUSY@GOTPAGE
Lloh94:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_RX_DMA_BUSY@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1000
	bl	_mt76_poll
Lloh96:
	adrp	x8, _MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPAGE
Lloh97:
	ldr	x8, [x8, _MT_WPDMA_GLO_CFG_TX_DMA_EN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh98:
	ldr	w8, [x8]
Lloh99:
	adrp	x9, _MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPAGE
Lloh100:
	ldr	x9, [x9, _MT_WPDMA_GLO_CFG_RX_DMA_EN@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mt76_set
Lloh102:
	adrp	x8, _MT_INT_RX_DONE_ALL@GOTPAGE
Lloh103:
	ldr	x8, [x8, _MT_INT_RX_DONE_ALL@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
Lloh105:
	adrp	x9, _MT_INT_TX_DONE_ALL@GOTPAGE
Lloh106:
	ldr	x9, [x9, _MT_INT_TX_DONE_ALL@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_mt7615_irq_enable
	mov	w0, #0
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_MT_WPDMA_GLO_CFG_FIFO_LITTLE_ENDIAN,4,2 ; @MT_WPDMA_GLO_CFG_FIFO_LITTLE_ENDIAN
	.comm	_MT_WPDMA_GLO_CFG_FIRST_TOKEN_ONLY,4,2 ; @MT_WPDMA_GLO_CFG_FIRST_TOKEN_ONLY
	.comm	_MT_WPDMA_GLO_CFG_OMIT_TX_INFO,4,2 ; @MT_WPDMA_GLO_CFG_OMIT_TX_INFO
	.comm	_MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT0,4,2 ; @MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT0
	.comm	_MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT21,4,2 ; @MT_WPDMA_GLO_CFG_TX_BT_SIZE_BIT21
	.comm	_MT_WPDMA_GLO_CFG_DMA_BURST_SIZE,4,2 ; @MT_WPDMA_GLO_CFG_DMA_BURST_SIZE
	.comm	_MT_WPDMA_GLO_CFG_MULTI_DMA_EN,4,2 ; @MT_WPDMA_GLO_CFG_MULTI_DMA_EN
	.comm	_MT_WPDMA_GLO_CFG1,4,2          ; @MT_WPDMA_GLO_CFG1
	.comm	_MT_WPDMA_TX_PRE_CFG,4,2        ; @MT_WPDMA_TX_PRE_CFG
	.comm	_MT_WPDMA_RX_PRE_CFG,4,2        ; @MT_WPDMA_RX_PRE_CFG
	.comm	_MT_WPDMA_ABT_CFG,4,2           ; @MT_WPDMA_ABT_CFG
	.comm	_MT_WPDMA_ABT_CFG1,4,2          ; @MT_WPDMA_ABT_CFG1
	.comm	_MT_WPDMA_RST_IDX,4,2           ; @MT_WPDMA_RST_IDX
	.comm	_MT7615_TX_RING_SIZE,4,2        ; @MT7615_TX_RING_SIZE
	.comm	_MT_TXQ_MCU,8,3                 ; @MT_TXQ_MCU
	.comm	_MT7615_TXQ_MCU,4,2             ; @MT7615_TXQ_MCU
	.comm	_MT7615_TX_MCU_RING_SIZE,4,2    ; @MT7615_TX_MCU_RING_SIZE
	.comm	_MT_TXQ_FWDL,8,3                ; @MT_TXQ_FWDL
	.comm	_MT7615_TXQ_FWDL,4,2            ; @MT7615_TXQ_FWDL
	.comm	_MT7615_TX_FWDL_RING_SIZE,4,2   ; @MT7615_TX_FWDL_RING_SIZE
	.comm	_MT_RXQ_MCU,8,3                 ; @MT_RXQ_MCU
	.comm	_MT7615_RX_MCU_RING_SIZE,4,2    ; @MT7615_RX_MCU_RING_SIZE
	.comm	_MT_RX_BUF_SIZE,4,2             ; @MT_RX_BUF_SIZE
	.comm	_MT_RX_RING_BASE,4,2            ; @MT_RX_RING_BASE
	.comm	_MT_RXQ_MAIN,8,3                ; @MT_RXQ_MAIN
	.comm	_MT7615_RX_RING_SIZE,4,2        ; @MT7615_RX_RING_SIZE
	.comm	_MT_DELAY_INT_CFG,4,2           ; @MT_DELAY_INT_CFG
	.comm	_mt7615_poll_tx,4,2             ; @mt7615_poll_tx
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.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	_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_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
