	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_8dev_start
_usb_8dev_start:                        ## @usb_8dev_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), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_RX_URBS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	leaq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movq	_RX_BUFFER_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %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	12(%r12), %edi
	movl	(%r15), %esi
	movl	(%r13), %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	12(%r12), %r13d
	movq	_USB_8DEV_ENDP_DATA_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_usb_rcvbulkpipe
	movl	(%r15), %r8d
	movq	_usb_8dev_read_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	%r13d, %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, %r13
	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	_MAX_RX_URBS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movq	_RX_BUFFER_SIZE@GOTPCREL(%rip), %r15
	jl	LBB0_3
	jmp	LBB0_13
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	testl	%ebx, %ebx
	jne	LBB0_13
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_20
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
	movq	%r14, %rdi
	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	12(%r12), %edi
	movq	_RX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%rbx, %rdx
	callq	_usb_free_coherent
	movq	%r14, %rdi
	callq	_usb_free_urb
LBB0_9:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_13:
	movq	_MAX_RX_URBS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_15:
	movq	%r12, %rdi
	callq	_usb_8dev_cmd_open
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_19
## %bb.18:
	movq	(%r12), %rdi
	callq	_netif_device_detach
LBB0_19:
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_20
LBB0_16:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	xorl	%r15d, %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RX_URBS,4,2                ## @MAX_RX_URBS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RX_BUFFER_SIZE,4,2             ## @RX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory left for USB buffer\n"

	.comm	_USB_8DEV_ENDP_DATA_RX,4,2      ## @USB_8DEV_ENDP_DATA_RX
	.comm	_usb_8dev_read_bulk_callback,4,2 ## @usb_8dev_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	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"couldn't submit control: %d\n"

	.no_dead_strip	_usb_8dev_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_8dev_start
_usb_8dev_start:                        ; @usb_8dev_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
	ldr	x8, [x0]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _MAX_RX_URBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RX_URBS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	w26, #0
	add	x21, x0, #16
Lloh3:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	adrp	x27, _RX_BUFFER_SIZE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _RX_BUFFER_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x25, _usb_8dev_read_bulk_callback@GOTPAGE
Lloh8:
	ldr	x25, [x25, _usb_8dev_read_bulk_callback@GOTPAGEOFF]
Lloh9:
	adrp	x19, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh10:
	ldr	x19, [x19, _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, [x20, #12]
	ldr	w1, [x27]
	ldr	w2, [x28]
	mov	x3, x23
	bl	_usb_alloc_coherent
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	ldr	w22, [x20, #12]
Lloh11:
	adrp	x8, _USB_8DEV_ENDP_DATA_RX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_8DEV_ENDP_DATA_RX@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, x20
	bl	_usb_fill_bulk_urb
	ldr	w8, [x19]
	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_16
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_usb_free_urb
	add	w26, w26, #1
Lloh14:
	adrp	x8, _MAX_RX_URBS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_RX_URBS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w26, w8
	b.lt	LBB0_2
	b	LBB0_9
LBB0_6:
	mov	w22, #0
	b	LBB0_17
LBB0_7:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netdev_err
	mov	x0, x23
	bl	_usb_free_urb
LBB0_8:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	cbz	w26, LBB0_17
LBB0_9:
Lloh22:
	adrp	x8, _MAX_RX_URBS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAX_RX_URBS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ge	LBB0_11
; %bb.10:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netdev_warn
LBB0_11:
	mov	x0, x20
	bl	_usb_8dev_cmd_open
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.12:
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	x0, [x20]
	bl	_netif_device_detach
LBB0_14:
	str	x22, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_15:
Lloh32:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	b	LBB0_19
LBB0_16:
	mov	x22, x0
	mov	x0, x23
	bl	_usb_unanchor_urb
	ldr	w0, [x20, #12]
	ldr	w1, [x27]
	ldr	w3, [x23]
	mov	x2, x24
	bl	_usb_free_coherent
	mov	x0, x23
	bl	_usb_free_urb
	cbnz	w26, LBB0_9
LBB0_17:
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netdev_warn
LBB0_19:
	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 AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RX_URBS,4,2                ; @MAX_RX_URBS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RX_BUFFER_SIZE,4,2             ; @RX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory left for USB buffer\n"

	.comm	_USB_8DEV_ENDP_DATA_RX,4,2      ; @USB_8DEV_ENDP_DATA_RX
	.comm	_usb_8dev_read_bulk_callback,4,2 ; @usb_8dev_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	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"couldn't submit control: %d\n"

	.no_dead_strip	_usb_8dev_start
.subsections_via_symbols
