	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcba_usb_start
_mcba_usb_start:                        ## @mcba_usb_start
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	callq	_mcba_init_ctx
	movq	_MCBA_MAX_RX_URBS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movq	_MCBA_USB_RX_BUFF_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rax, %rcx
	callq	_usb_alloc_coherent
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	(%r13), %r12d
	movq	_MCBA_USB_EP_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_usb_rcvbulkpipe
	movl	(%r15), %r8d
	movq	_mcba_usb_read_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r13, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_usb_anchor_urb
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	%rax, %r12
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_usb_free_urb
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	_MCBA_MAX_RX_URBS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movq	_MCBA_USB_RX_BUFF_SIZE@GOTPCREL(%rip), %r15
	jl	LBB0_3
## %bb.13:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_14
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_netdev_err
	movq	%r14, %rdi
	movq	%rbx, %r14
	callq	_usb_free_urb
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_usb_unanchor_urb
	movl	(%r13), %edi
	movq	_MCBA_USB_RX_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%rbx, %rdx
	callq	_usb_free_coherent
	movq	%r14, %rdi
	callq	_usb_free_urb
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_14:
	movq	_MCBA_MAX_RX_URBS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_16:
	movq	_MCBA_VER_REQ_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_mcba_usb_xmit_read_fw_ver
	movq	_MCBA_VER_REQ_CAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_mcba_usb_xmit_read_fw_ver
LBB0_17:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCBA_MAX_RX_URBS,4,2           ## @MCBA_MAX_RX_URBS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MCBA_USB_RX_BUFF_SIZE,4,2      ## @MCBA_USB_RX_BUFF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory left for USB buffer\n"

	.comm	_MCBA_USB_EP_IN,4,2             ## @MCBA_USB_EP_IN
	.comm	_mcba_usb_read_bulk_callback,4,2 ## @mcba_usb_read_bulk_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
L_.str.1:                               ## @.str.1
	.asciz	"couldn't setup read URBs\n"

L_.str.2:                               ## @.str.2
	.asciz	"rx performance may be slow\n"

	.comm	_MCBA_VER_REQ_USB,4,2           ## @MCBA_VER_REQ_USB
	.comm	_MCBA_VER_REQ_CAN,4,2           ## @MCBA_VER_REQ_CAN
	.no_dead_strip	_mcba_usb_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcba_usb_start
_mcba_usb_start:                        ; @mcba_usb_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_mcba_init_ctx
Lloh0:
	adrp	x8, _MCBA_MAX_RX_URBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCBA_MAX_RX_URBS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	w26, #0
	add	x21, x19, #4
Lloh3:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	adrp	x27, _MCBA_USB_RX_BUFF_SIZE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MCBA_USB_RX_BUFF_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x25, _mcba_usb_read_bulk_callback@GOTPAGE
Lloh8:
	ldr	x25, [x25, _mcba_usb_read_bulk_callback@GOTPAGEOFF]
Lloh9:
	adrp	x20, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh10:
	ldr	x20, [x20, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	ldr	w0, [x19]
	ldr	w1, [x27]
	ldr	w2, [x28]
	mov	x3, x23
	bl	_usb_alloc_coherent
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	ldr	w22, [x19]
Lloh11:
	adrp	x8, _MCBA_USB_EP_IN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MCBA_USB_EP_IN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w4, [x27]
	ldr	w5, [x25]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x24
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	w8, [x20]
	ldr	w9, [x23, #4]
	orr	w8, w9, w8
	str	w8, [x23, #4]
	mov	x0, x23
	mov	x1, x21
	bl	_usb_anchor_urb
	ldr	w1, [x28]
	mov	x0, x23
	bl	_usb_submit_urb
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_usb_free_urb
	add	w26, w26, #1
Lloh14:
	adrp	x8, _MCBA_MAX_RX_URBS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MCBA_MAX_RX_URBS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w26, w8
	b.lt	LBB0_2
; %bb.6:
	mov	w22, #0
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_13
LBB0_7:
	mov	w22, #0
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_9:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x23
	bl	_usb_free_urb
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w26, LBB0_13
LBB0_10:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
	b	LBB0_16
LBB0_11:
	mov	x22, x0
	mov	x0, x23
	bl	_usb_unanchor_urb
	ldr	w0, [x19]
	ldr	w1, [x27]
	ldr	w3, [x23]
	mov	x2, x24
	bl	_usb_free_coherent
	mov	x0, x23
	bl	_usb_free_urb
LBB0_12:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w26, LBB0_10
LBB0_13:
Lloh27:
	adrp	x8, _MCBA_MAX_RX_URBS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MCBA_MAX_RX_URBS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ge	LBB0_15
; %bb.14:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
LBB0_15:
Lloh32:
	adrp	x8, _MCBA_VER_REQ_USB@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MCBA_VER_REQ_USB@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mcba_usb_xmit_read_fw_ver
Lloh35:
	adrp	x8, _MCBA_VER_REQ_CAN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MCBA_VER_REQ_CAN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mcba_usb_xmit_read_fw_ver
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MCBA_MAX_RX_URBS,4,2           ; @MCBA_MAX_RX_URBS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MCBA_USB_RX_BUFF_SIZE,4,2      ; @MCBA_USB_RX_BUFF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory left for USB buffer\n"

	.comm	_MCBA_USB_EP_IN,4,2             ; @MCBA_USB_EP_IN
	.comm	_mcba_usb_read_bulk_callback,4,2 ; @mcba_usb_read_bulk_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
l_.str.1:                               ; @.str.1
	.asciz	"couldn't setup read URBs\n"

l_.str.2:                               ; @.str.2
	.asciz	"rx performance may be slow\n"

	.comm	_MCBA_VER_REQ_USB,4,2           ; @MCBA_VER_REQ_USB
	.comm	_MCBA_VER_REQ_CAN,4,2           ; @MCBA_VER_REQ_CAN
	.no_dead_strip	_mcba_usb_start
.subsections_via_symbols
