	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_usb_submit_buf         ## -- Begin function mt7601u_usb_submit_buf
	.p2align	4, 0x90
_mt7601u_usb_submit_buf:                ## @mt7601u_usb_submit_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_mt7601u_to_usb_dev
	movq	%rax, %r14
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r12d, (%rax)
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	16(%r13), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_usb_rcvbulkpipe
	jmp	LBB0_3
LBB0_2:
	movq	8(%r13), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_usb_sndbulkpipe
LBB0_3:
	movq	(%rbx), %rdi
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movq	16(%rbp), %rdx
	movq	%rdx, (%rsp)
	movq	%r14, %rsi
	movl	%eax, %edx
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_usb_fill_bulk_urb
	movl	8(%rbx), %eax
	movq	(%rbx), %rsi
	movl	%eax, 4(%rsi)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rsi)
	movq	%r13, %rdi
	callq	_trace_mt_submit_urb
	movq	(%rbx), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: submit URB dir:%d ep:%d failed:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_usb_submit_buf         ; -- Begin function mt7601u_usb_submit_buf
	.p2align	2
_mt7601u_usb_submit_buf:                ; @mt7601u_usb_submit_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x6
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_mt7601u_to_usb_dev
	mov	x26, x0
Lloh0:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	ldr	w1, [x8, w19, sxtw #2]
	mov	x0, x26
	bl	_usb_rcvbulkpipe
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	w1, [x8, w19, sxtw #2]
	mov	x0, x26
	bl	_usb_sndbulkpipe
LBB0_3:
	mov	x2, x0
	ldr	x0, [x23]
	ldp	w4, w3, [x23, #12]
	mov	x1, x26
	mov	x5, x25
	mov	x6, x24
	bl	_usb_fill_bulk_urb
	ldr	w8, [x23, #8]
Lloh3:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x1]
	orr	w9, w10, w9
	stp	w9, w8, [x1]
	mov	x0, x21
	bl	_trace_mt_submit_urb
	ldr	x0, [x23]
	mov	x1, x22
	bl	_usb_submit_urb
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_dev_err
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: submit URB dir:%d ep:%d failed:%d\n"

.subsections_via_symbols
