	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_submit_rx_buf
_mt7601u_submit_rx_buf:                 ## @mt7601u_submit_rx_buf
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_mt7601u_to_usb_dev
	movq	%rax, %r12
	movl	4(%rbx), %edi
	callq	_page_address
	movq	%rax, %r13
	movq	8(%r15), %rax
	movq	_MT_EP_IN_PKT_RX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_usb_rcvbulkpipe
	movl	(%rbx), %edi
	movq	_MT_RX_URB_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_mt7601u_complete_rx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r15, (%rsp)
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_usb_fill_bulk_urb
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_trace_mt_submit_urb
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EP_IN_PKT_RX,8,3            ## @MT_EP_IN_PKT_RX
	.comm	_MT_RX_URB_SIZE,4,2             ## @MT_RX_URB_SIZE
	.comm	_mt7601u_complete_rx,4,2        ## @mt7601u_complete_rx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: submit RX URB failed:%d\n"

	.no_dead_strip	_mt7601u_submit_rx_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_submit_rx_buf
_mt7601u_submit_rx_buf:                 ; @mt7601u_submit_rx_buf
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mt7601u_to_usb_dev
	mov	x22, x0
	ldr	w0, [x21, #4]
	bl	_page_address
	mov	x23, x0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _MT_EP_IN_PKT_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MT_EP_IN_PKT_RX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x22
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _MT_RX_URB_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_RX_URB_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _mt7601u_complete_rx@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mt7601u_complete_rx@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x1, x22
	mov	x3, x23
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_trace_mt_submit_urb
	ldr	w0, [x21]
	mov	x1, x20
	bl	_usb_submit_urb
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EP_IN_PKT_RX,8,3            ; @MT_EP_IN_PKT_RX
	.comm	_MT_RX_URB_SIZE,4,2             ; @MT_RX_URB_SIZE
	.comm	_mt7601u_complete_rx,4,2        ; @mt7601u_complete_rx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: submit RX URB failed:%d\n"

	.no_dead_strip	_mt7601u_submit_rx_buf
.subsections_via_symbols
