	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_init_usb_dma
_mt76x0_init_usb_dma:                   ## @mt76x0_init_usb_dma
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MT_USB_DMA_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_mt76_rr
	movq	_MT_USB_DMA_CFG_RX_BULK_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MT_USB_DMA_CFG_TX_BULK_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MT_USB_DMA_CFG_RX_BULK_AGG_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mt76_wr
	movq	_MT_COM_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76_rr
	testb	$1, %al
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mt76_rr
	movl	%eax, %ebx
	movq	_MT_USB_DMA_CFG_RX_DROP_OR_PAD@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	(%r12), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_USB_DMA_CFG,4,2             ## @MT_USB_DMA_CFG
	.comm	_MT_USB_DMA_CFG_RX_BULK_EN,4,2  ## @MT_USB_DMA_CFG_RX_BULK_EN
	.comm	_MT_USB_DMA_CFG_TX_BULK_EN,4,2  ## @MT_USB_DMA_CFG_TX_BULK_EN
	.comm	_MT_USB_DMA_CFG_RX_BULK_AGG_EN,4,2 ## @MT_USB_DMA_CFG_RX_BULK_AGG_EN
	.comm	_MT_COM_REG0,4,2                ## @MT_COM_REG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCU not ready\n"

	.comm	_MT_USB_DMA_CFG_RX_DROP_OR_PAD,4,2 ## @MT_USB_DMA_CFG_RX_DROP_OR_PAD
	.no_dead_strip	_mt76x0_init_usb_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_init_usb_dma
_mt76x0_init_usb_dma:                   ; @mt76x0_init_usb_dma
	.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
Lloh0:
	adrp	x21, _MT_USB_DMA_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MT_USB_DMA_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_mt76_rr
Lloh2:
	adrp	x8, _MT_USB_DMA_CFG_RX_BULK_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_USB_DMA_CFG_RX_BULK_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MT_USB_DMA_CFG_TX_BULK_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MT_USB_DMA_CFG_TX_BULK_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _MT_USB_DMA_CFG_RX_BULK_AGG_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MT_USB_DMA_CFG_RX_BULK_AGG_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mt76_wr
Lloh11:
	adrp	x8, _MT_COM_REG0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_COM_REG0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_rr
	tbz	w0, #0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mt76_rr
Lloh16:
	adrp	x22, _MT_USB_DMA_CFG_RX_DROP_OR_PAD@GOTPAGE
Lloh17:
	ldr	x22, [x22, _MT_USB_DMA_CFG_RX_DROP_OR_PAD@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w20, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
	ldr	w8, [x22]
	bic	w2, w20, w8
	ldr	w1, [x21]
	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	_mt76_wr
	.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 AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_USB_DMA_CFG,4,2             ; @MT_USB_DMA_CFG
	.comm	_MT_USB_DMA_CFG_RX_BULK_EN,4,2  ; @MT_USB_DMA_CFG_RX_BULK_EN
	.comm	_MT_USB_DMA_CFG_TX_BULK_EN,4,2  ; @MT_USB_DMA_CFG_TX_BULK_EN
	.comm	_MT_USB_DMA_CFG_RX_BULK_AGG_EN,4,2 ; @MT_USB_DMA_CFG_RX_BULK_AGG_EN
	.comm	_MT_COM_REG0,4,2                ; @MT_COM_REG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCU not ready\n"

	.comm	_MT_USB_DMA_CFG_RX_DROP_OR_PAD,4,2 ; @MT_USB_DMA_CFG_RX_DROP_OR_PAD
	.no_dead_strip	_mt76x0_init_usb_dma
.subsections_via_symbols
