	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esd_usb2_probe_one_net
_esd_usb2_probe_one_net:                ## @esd_usb2_probe_one_net
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_usb_get_intfdata
	movq	%rax, %r12
	movq	_MAX_TX_URBS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$80, %edi
	callq	_alloc_candev
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	76(%rax), %rdi
	callq	_init_usb_anchor
	movq	%rbx, %rdi
	addq	$72, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movq	64(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r15), %rax
	cmpq	%rax, %rdx
	jl	LBB0_5
LBB0_6:
	movq	%r12, %r15
	movq	%r12, 56(%rbx)
	movq	%r13, 48(%rbx)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, (%rbx)
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_CANUSBM_PRODUCT_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_ESD_USBM_CAN_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
LBB0_8:
	movq	_ESD_USB2_CAN_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%rbx)
LBB0_9:
	movl	%eax, 36(%rbx)
	movq	_esd_usb2_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_esd_usb2_set_bittiming@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_esd_usb2_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_esd_usb2_get_berr_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_IFF_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
	movq	_esd_usb2_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movl	%r12d, (%r13)
	movq	%r13, %rdi
	callq	_register_candev
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_free_candev
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_11:
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movl	4(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_info
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TX_URBS,4,2                ## @MAX_TX_URBS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't alloc candev\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_USB_CANUSBM_PRODUCT_ID,8,3     ## @USB_CANUSBM_PRODUCT_ID
	.comm	_ESD_USBM_CAN_CLOCK,4,2         ## @ESD_USBM_CAN_CLOCK
	.comm	_ESD_USB2_CAN_CLOCK,4,2         ## @ESD_USB2_CAN_CLOCK
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_esd_usb2_bittiming_const,4,2   ## @esd_usb2_bittiming_const
	.comm	_esd_usb2_set_bittiming,4,2     ## @esd_usb2_set_bittiming
	.comm	_esd_usb2_set_mode,4,2          ## @esd_usb2_set_mode
	.comm	_esd_usb2_get_berr_counter,4,2  ## @esd_usb2_get_berr_counter
	.comm	_IFF_ECHO,4,2                   ## @IFF_ECHO
	.comm	_esd_usb2_netdev_ops,4,2        ## @esd_usb2_netdev_ops
L_.str.1:                               ## @.str.1
	.asciz	"couldn't register CAN device: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"device %s registered\n"

	.no_dead_strip	_esd_usb2_probe_one_net
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esd_usb2_probe_one_net
_esd_usb2_probe_one_net:                ; @esd_usb2_probe_one_net
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_usb_get_intfdata
	mov	x22, x0
Lloh0:
	adrp	x24, _MAX_TX_URBS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_TX_URBS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #80
	bl	_alloc_candev
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x23, x0
	add	x0, x0, #76
	bl	_init_usb_anchor
	add	x0, x23, #72
	mov	w1, #0
	bl	_atomic_set
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x23, #64]
LBB0_3:                                 ; =>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_3
LBB0_4:
	stp	x20, x22, [x23, #48]
	str	w21, [x23]
Lloh2:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x23, #40]
Lloh5:
	adrp	x8, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x23, #32]
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh8:
	adrp	x8, _USB_CANUSBM_PRODUCT_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_CANUSBM_PRODUCT_ID@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _ESD_USBM_CAN_CLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ESD_USBM_CAN_CLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x8, _ESD_USB2_CAN_CLOCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ESD_USB2_CAN_CLOCK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	ldr	w10, [x23, #32]
	orr	w9, w10, w9
	str	w9, [x23, #32]
LBB0_8:
	str	w8, [x23, #36]
Lloh22:
	adrp	x8, _esd_usb2_bittiming_const@GOTPAGE
Lloh23:
	ldr	x8, [x8, _esd_usb2_bittiming_const@GOTPAGEOFF]
	str	x8, [x23, #24]
Lloh24:
	adrp	x8, _esd_usb2_set_bittiming@GOTPAGE
Lloh25:
	ldr	x8, [x8, _esd_usb2_set_bittiming@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x23, #16]
Lloh27:
	adrp	x8, _esd_usb2_set_mode@GOTPAGE
Lloh28:
	ldr	x8, [x8, _esd_usb2_set_mode@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _esd_usb2_get_berr_counter@GOTPAGE
Lloh31:
	ldr	x9, [x9, _esd_usb2_get_berr_counter@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #8]
Lloh33:
	adrp	x8, _IFF_ECHO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IFF_ECHO@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
Lloh36:
	adrp	x8, _esd_usb2_netdev_ops@GOTPAGE
Lloh37:
	ldr	x8, [x8, _esd_usb2_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	str	w21, [x20]
	mov	x0, x20
	bl	_register_candev
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_11
; %bb.9:
	str	x0, [sp]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_free_candev
LBB0_10:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	ldr	x8, [x22]
	str	x23, [x8, w21, sxtw #3]
	ldr	w2, [x20, #4]
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TX_URBS,4,2                ; @MAX_TX_URBS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't alloc candev\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_USB_CANUSBM_PRODUCT_ID,8,3     ; @USB_CANUSBM_PRODUCT_ID
	.comm	_ESD_USBM_CAN_CLOCK,4,2         ; @ESD_USBM_CAN_CLOCK
	.comm	_ESD_USB2_CAN_CLOCK,4,2         ; @ESD_USB2_CAN_CLOCK
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_esd_usb2_bittiming_const,4,2   ; @esd_usb2_bittiming_const
	.comm	_esd_usb2_set_bittiming,4,2     ; @esd_usb2_set_bittiming
	.comm	_esd_usb2_set_mode,4,2          ; @esd_usb2_set_mode
	.comm	_esd_usb2_get_berr_counter,4,2  ; @esd_usb2_get_berr_counter
	.comm	_IFF_ECHO,4,2                   ; @IFF_ECHO
	.comm	_esd_usb2_netdev_ops,4,2        ; @esd_usb2_netdev_ops
l_.str.1:                               ; @.str.1
	.asciz	"couldn't register CAN device: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"device %s registered\n"

	.no_dead_strip	_esd_usb2_probe_one_net
.subsections_via_symbols
