	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcba_usb_probe
_mcba_usb_probe:                        ## @mcba_usb_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movq	_MCBA_MAX_TX_URBS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_alloc_candev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r12, 88(%rax)
	movq	%r15, 16(%rax)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	$0, 8(%rbx)
	leaq	84(%rbx), %rdi
	callq	_init_usb_anchor
	leaq	80(%rbx), %rdi
	callq	_init_usb_anchor
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_mcba_termination@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 64(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 56(%rbx)
	movq	_mcba_bitrate@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 48(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 40(%rbx)
	movq	_mcba_set_termination@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_mcba_net_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_mcba_net_get_berr_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_mcba_net_set_bittiming@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_mcba_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_IFF_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_register_candev
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_4:
	movq	%r15, %rdi
	callq	_devm_can_led_init
	movq	%rbx, %rdi
	callq	_mcba_usb_start
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	%eax, %r12d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_7
## %bb.6:
	movq	16(%rbx), %rdi
	callq	_netif_device_detach
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_netdev_warn
	movq	16(%rbx), %rdi
	callq	_unregister_candev
LBB0_8:
	movq	%r15, %rdi
	callq	_free_candev
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MCBA_MAX_TX_URBS,4,2           ## @MCBA_MAX_TX_URBS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't alloc candev\n"

	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.comm	_mcba_termination,8,3           ## @mcba_termination
	.comm	_mcba_bitrate,8,3               ## @mcba_bitrate
	.comm	_mcba_set_termination,4,2       ## @mcba_set_termination
	.comm	_mcba_net_set_mode,4,2          ## @mcba_net_set_mode
	.comm	_mcba_net_get_berr_counter,4,2  ## @mcba_net_get_berr_counter
	.comm	_mcba_net_set_bittiming,4,2     ## @mcba_net_set_bittiming
	.comm	_mcba_netdev_ops,4,2            ## @mcba_netdev_ops
	.comm	_IFF_ECHO,4,2                   ## @IFF_ECHO
L_.str.1:                               ## @.str.1
	.asciz	"couldn't register CAN device: %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"couldn't start device: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Microchip CAN BUS Analyzer connected\n"

	.no_dead_strip	_mcba_usb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcba_usb_probe
_mcba_usb_probe:                        ; @mcba_usb_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_interface_to_usbdev
	mov	x22, x0
Lloh0:
	adrp	x8, _MCBA_MAX_TX_URBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCBA_MAX_TX_URBS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_alloc_candev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	str	x22, [x0, #88]
	str	x19, [x0, #16]
	movi.2s	v0, #1
	str	d0, [x0]
	str	wzr, [x0, #8]
	add	x0, x0, #84
	bl	_init_usb_anchor
	add	x0, x21, #80
	bl	_init_usb_anchor
	mov	x0, x20
	mov	x1, x21
	bl	_usb_set_intfdata
Lloh3:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #72]
Lloh6:
	adrp	x8, _mcba_termination@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mcba_termination@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	str	x0, [x21, #64]
	bl	_ARRAY_SIZE
Lloh9:
	adrp	x8, _mcba_bitrate@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mcba_bitrate@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x0, [x21, #48]
	mov	x0, x8
	bl	_ARRAY_SIZE
Lloh12:
	adrp	x8, _mcba_set_termination@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mcba_set_termination@GOTPAGEOFF]
	str	x0, [x21, #40]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _mcba_net_set_mode@GOTPAGE
Lloh16:
	ldr	x9, [x9, _mcba_net_set_mode@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #32]
Lloh18:
	adrp	x8, _mcba_net_get_berr_counter@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mcba_net_get_berr_counter@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _mcba_net_set_bittiming@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mcba_net_set_bittiming@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
Lloh24:
	adrp	x8, _mcba_netdev_ops@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mcba_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh26:
	adrp	x8, _IFF_ECHO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IFF_ECHO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_register_candev
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_netdev_err
	b	LBB0_8
LBB0_3:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_devm_can_led_init
	mov	x0, x21
	bl	_mcba_usb_start
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.5:
Lloh36:
	adrp	x8, _ENODEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x21, #16]
	bl	_netif_device_detach
LBB0_7:
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_netdev_warn
	ldr	x0, [x21, #16]
	bl	_unregister_candev
LBB0_8:
	mov	x0, x19
	bl	_free_candev
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MCBA_MAX_TX_URBS,4,2           ; @MCBA_MAX_TX_URBS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't alloc candev\n"

	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.comm	_mcba_termination,8,3           ; @mcba_termination
	.comm	_mcba_bitrate,8,3               ; @mcba_bitrate
	.comm	_mcba_set_termination,4,2       ; @mcba_set_termination
	.comm	_mcba_net_set_mode,4,2          ; @mcba_net_set_mode
	.comm	_mcba_net_get_berr_counter,4,2  ; @mcba_net_get_berr_counter
	.comm	_mcba_net_set_bittiming,4,2     ; @mcba_net_set_bittiming
	.comm	_mcba_netdev_ops,4,2            ; @mcba_netdev_ops
	.comm	_IFF_ECHO,4,2                   ; @IFF_ECHO
l_.str.1:                               ; @.str.1
	.asciz	"couldn't register CAN device: %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"couldn't start device: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Microchip CAN BUS Analyzer connected\n"

	.no_dead_strip	_mcba_usb_probe
.subsections_via_symbols
