	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_8dev_probe
_usb_8dev_probe:                        ## @usb_8dev_probe
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	subl	(%r13), %r12d
	callq	_interface_to_usbdev
	movq	%rax, %rbx
	movl	4(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%rax, %rdi
	movl	$18, %ecx
	callq	_usb_string
	testq	%rax, %rax
	jle	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	_MAX_TX_URBS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$80, %edi
	callq	_alloc_candev
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, 72(%rax)
	movq	%r14, (%rax)
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r13)
	movq	_USB_8DEV_ABP_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	_usb_8dev_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r13)
	movq	_usb_8dev_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_usb_8dev_get_berr_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rax
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CAN_CTRLMODE_ONE_SHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 40(%r13)
	movq	_usb_8dev_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_IFF_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	leaq	32(%r13), %rdi
	callq	_init_usb_anchor
	leaq	28(%r13), %rdi
	callq	_init_usb_anchor
	leaq	24(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	movq	16(%r13), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r15), %rax
	cmpq	%rax, %rdx
	jl	LBB0_7
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_register_candev
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	xorl	%r12d, %r12d
	subl	(%r13), %r12d
	jmp	LBB0_14
LBB0_11:
	leaq	-84(%rbp), %rsi
	movq	%r13, %rdi
	callq	_usb_8dev_cmd_version
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	(%r13), %rdi
	callq	_unregister_netdev
LBB0_13:
	movq	%r14, %rdi
	callq	_free_candev
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	-84(%rbp), %edx
	movl	%edx, %eax
	movzbl	%dh, %ebx
	movzbl	%dl, %r9d
	shrl	$24, %edx
	shrl	$16, %eax
	movzbl	%al, %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_devm_can_led_init
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB2CAN converter"

L_.str.1:                               ## @.str.1
	.asciz	"ignoring: not an USB2CAN converter\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MAX_TX_URBS,4,2                ## @MAX_TX_URBS
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't alloc candev\n"

	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.comm	_USB_8DEV_ABP_CLOCK,4,2         ## @USB_8DEV_ABP_CLOCK
	.comm	_usb_8dev_bittiming_const,4,2   ## @usb_8dev_bittiming_const
	.comm	_usb_8dev_set_mode,4,2          ## @usb_8dev_set_mode
	.comm	_usb_8dev_get_berr_counter,4,2  ## @usb_8dev_get_berr_counter
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ## @CAN_CTRLMODE_ONE_SHOT
	.comm	_usb_8dev_netdev_ops,4,2        ## @usb_8dev_netdev_ops
	.comm	_IFF_ECHO,4,2                   ## @IFF_ECHO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"couldn't register CAN device: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"can't get firmware version\n"

L_.str.5:                               ## @.str.5
	.asciz	"firmware: %d.%d, hardware: %d.%d\n"

	.no_dead_strip	_usb_8dev_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_8dev_probe
_usb_8dev_probe:                        ; @usb_8dev_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w23, [x21]
	bl	_interface_to_usbdev
	mov	x22, x0
	ldr	w1, [x0, #4]
	add	x2, sp, #22
	mov	w3, #18
	bl	_usb_string
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #22
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_info
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_3:
Lloh12:
	adrp	x24, _MAX_TX_URBS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MAX_TX_URBS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #80
	bl	_alloc_candev
	cbz	x0, LBB0_10
; %bb.4:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	str	x22, [x0, #72]
	str	x19, [x0]
Lloh14:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _USB_8DEV_ABP_CLOCK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _USB_8DEV_ABP_CLOCK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #64]
Lloh20:
	adrp	x8, _usb_8dev_bittiming_const@GOTPAGE
Lloh21:
	ldr	x8, [x8, _usb_8dev_bittiming_const@GOTPAGEOFF]
	str	x8, [x0, #56]
Lloh22:
	adrp	x8, _usb_8dev_set_mode@GOTPAGE
Lloh23:
	ldr	x8, [x8, _usb_8dev_set_mode@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x0, #48]
Lloh25:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _CAN_CTRLMODE_ONE_SHOT@GOTPAGE
Lloh32:
	ldr	x10, [x10, _CAN_CTRLMODE_ONE_SHOT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh33:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _usb_8dev_get_berr_counter@GOTPAGE
Lloh35:
	ldr	x9, [x9, _usb_8dev_get_berr_counter@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #40]
Lloh37:
	adrp	x8, _usb_8dev_netdev_ops@GOTPAGE
Lloh38:
	ldr	x8, [x8, _usb_8dev_netdev_ops@GOTPAGEOFF]
Lloh39:
	adrp	x9, _IFF_ECHO@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IFF_ECHO@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh41:
	ldr	w8, [x9]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	add	x0, x0, #32
	bl	_init_usb_anchor
	add	x0, x21, #28
	bl	_init_usb_anchor
	add	x0, x21, #24
	mov	w1, #0
	bl	_atomic_set
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x9, #0
	ldr	x10, [x21, #16]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x8, [x24]
	cmp	x9, x8
	b.lt	LBB0_6
LBB0_7:
Lloh42:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_devm_kzalloc
	str	w0, [x21, #12]
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_usb_set_intfdata
	mov	x0, x19
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	add	x0, x21, #8
	bl	_mutex_init
	mov	x0, x19
	bl	_register_candev
	cbz	w0, LBB0_12
; %bb.9:
	mov	x20, x0
	str	x20, [sp]
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_14
LBB0_10:
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x21]
	neg	w20, w8
	b	LBB0_15
LBB0_11:
	neg	w20, w23
	b	LBB0_14
LBB0_12:
	add	x1, sp, #16
	mov	x0, x21
	bl	_usb_8dev_cmd_version
	mov	x20, x0
	cbz	w0, LBB0_17
; %bb.13:
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	x0, [x21]
	bl	_unregister_netdev
LBB0_14:
	mov	x0, x19
	bl	_free_candev
LBB0_15:
	ldr	x8, [sp, #40]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_17:
	ldr	w8, [sp, #16]
	lsr	w2, w8, #24
	ubfx	w3, w8, #16, #8
	ubfx	w4, w8, #8, #8
	and	w5, w8, #0xff
Lloh54:
	adrp	x1, l_.str.5@PAGE
Lloh55:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_devm_can_led_init
	b	LBB0_15
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB2CAN converter"

l_.str.1:                               ; @.str.1
	.asciz	"ignoring: not an USB2CAN converter\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MAX_TX_URBS,4,2                ; @MAX_TX_URBS
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't alloc candev\n"

	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.comm	_USB_8DEV_ABP_CLOCK,4,2         ; @USB_8DEV_ABP_CLOCK
	.comm	_usb_8dev_bittiming_const,4,2   ; @usb_8dev_bittiming_const
	.comm	_usb_8dev_set_mode,4,2          ; @usb_8dev_set_mode
	.comm	_usb_8dev_get_berr_counter,4,2  ; @usb_8dev_get_berr_counter
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ; @CAN_CTRLMODE_ONE_SHOT
	.comm	_usb_8dev_netdev_ops,4,2        ; @usb_8dev_netdev_ops
	.comm	_IFF_ECHO,4,2                   ; @IFF_ECHO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"couldn't register CAN device: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"can't get firmware version\n"

l_.str.5:                               ; @.str.5
	.asciz	"firmware: %d.%d, hardware: %d.%d\n"

	.no_dead_strip	_usb_8dev_probe
.subsections_via_symbols
