	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ems_usb_probe
_ems_usb_probe:                         ## @ems_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	%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
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	subl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MAX_TX_URBS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$104, %edi
	callq	_alloc_candev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 96(%r13)
	movq	%r15, 88(%r13)
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r13)
	movq	_EMS_USB_ARM7_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r13)
	movq	_ems_usb_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 72(%r13)
	movq	_ems_usb_set_bittiming@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	_ems_usb_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r13)
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	_ems_usb_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_IFF_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	leaq	48(%r13), %rdi
	callq	_init_usb_anchor
	leaq	44(%r13), %rdi
	callq	_init_usb_anchor
	leaq	40(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	32(%r13), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rax
	cmpq	%rax, %rdx
	jl	LBB0_4
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_INTR_IN_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_CPC_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r13, %r14
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_init_params_sja1000
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ems_usb_command_msg
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	subl	(%r12), %r13d
	movl	%r13d, %ebx
	jmp	LBB0_19
LBB0_6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_8:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_12:
	movq	%r15, %rdi
	callq	_register_candev
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_15:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_netdev_err
	movq	16(%r13), %rdi
	callq	_kfree
LBB0_16:
	movq	8(%r13), %rdi
	callq	_kfree
LBB0_17:
	movl	(%r13), %edi
	callq	_usb_free_urb
LBB0_18:
	movq	%r15, %rdi
	callq	_free_candev
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_TX_URBS,4,2                ## @MAX_TX_URBS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ems_usb: Couldn't alloc candev\n"

	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.comm	_EMS_USB_ARM7_CLOCK,4,2         ## @EMS_USB_ARM7_CLOCK
	.comm	_ems_usb_bittiming_const,4,2    ## @ems_usb_bittiming_const
	.comm	_ems_usb_set_bittiming,4,2      ## @ems_usb_set_bittiming
	.comm	_ems_usb_set_mode,4,2           ## @ems_usb_set_mode
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_ems_usb_netdev_ops,4,2         ## @ems_usb_netdev_ops
	.comm	_IFF_ECHO,4,2                   ## @IFF_ECHO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_INTR_IN_BUFFER_SIZE,8,3        ## @INTR_IN_BUFFER_SIZE
	.comm	_CPC_HEADER_SIZE,8,3            ## @CPC_HEADER_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"couldn't initialize controller: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't register CAN device: %d\n"

	.no_dead_strip	_ems_usb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ems_usb_probe
_ems_usb_probe:                         ; @ems_usb_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x0
Lloh0:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh2:
	adrp	x23, _MAX_TX_URBS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAX_TX_URBS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #104
	bl	_alloc_candev
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	neg	w20, w21
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x22
	bl	_interface_to_usbdev
	str	w0, [x21, #96]
	str	x19, [x21, #88]
Lloh4:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _EMS_USB_ARM7_CLOCK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EMS_USB_ARM7_CLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _ems_usb_bittiming_const@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ems_usb_bittiming_const@GOTPAGEOFF]
	stp	w9, w8, [x21, #80]
	str	x10, [x21, #72]
Lloh12:
	adrp	x8, _ems_usb_set_bittiming@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ems_usb_set_bittiming@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #64]
Lloh15:
	adrp	x8, _ems_usb_set_mode@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ems_usb_set_mode@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #56]
Lloh21:
	adrp	x8, _ems_usb_netdev_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ems_usb_netdev_ops@GOTPAGEOFF]
Lloh23:
	adrp	x9, _IFF_ECHO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IFF_ECHO@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh25:
	ldr	w8, [x9]
	ldr	w9, [x19]
	orr	w8, w9, w8
	add	x0, x21, #48
	str	w8, [x19]
	bl	_init_usb_anchor
	add	x0, x21, #44
	bl	_init_usb_anchor
	add	x0, x21, #40
	mov	w1, #0
	bl	_atomic_set
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x21, #32]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x8, [x23]
	cmp	x9, x8
	b.lt	LBB0_3
LBB0_4:
Lloh26:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh27:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	w0, [x21]
	cbz	w0, LBB0_15
; %bb.5:
Lloh28:
	adrp	x8, _INTR_IN_BUFFER_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INTR_IN_BUFFER_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_14
; %bb.6:
Lloh31:
	adrp	x8, _CPC_HEADER_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CPC_HEADER_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x0, x8, #4
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	bl	_usb_set_intfdata
	mov	x0, x19
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	add	x20, x21, #24
	mov	x0, x20
	bl	_init_params_sja1000
	mov	x0, x21
	mov	x1, x20
	bl	_ems_usb_command_msg
	cbz	w0, LBB0_10
; %bb.8:
	mov	x20, x0
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	ldr	w8, [x20]
	neg	w20, w8
	b	LBB0_16
LBB0_10:
	mov	x0, x19
	bl	_register_candev
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.11:
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x20
	bl	_netdev_err
	ldr	x0, [x21, #16]
	bl	_kfree
LBB0_13:
	ldr	x0, [x21, #8]
	bl	_kfree
LBB0_14:
	ldr	w0, [x21]
	bl	_usb_free_urb
LBB0_15:
	mov	x0, x19
	bl	_free_candev
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_TX_URBS,4,2                ; @MAX_TX_URBS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ems_usb: Couldn't alloc candev\n"

	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.comm	_EMS_USB_ARM7_CLOCK,4,2         ; @EMS_USB_ARM7_CLOCK
	.comm	_ems_usb_bittiming_const,4,2    ; @ems_usb_bittiming_const
	.comm	_ems_usb_set_bittiming,4,2      ; @ems_usb_set_bittiming
	.comm	_ems_usb_set_mode,4,2           ; @ems_usb_set_mode
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_ems_usb_netdev_ops,4,2         ; @ems_usb_netdev_ops
	.comm	_IFF_ECHO,4,2                   ; @IFF_ECHO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_INTR_IN_BUFFER_SIZE,8,3        ; @INTR_IN_BUFFER_SIZE
	.comm	_CPC_HEADER_SIZE,8,3            ; @CPC_HEADER_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"couldn't initialize controller: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't register CAN device: %d\n"

	.no_dead_strip	_ems_usb_probe
.subsections_via_symbols
