	.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, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%r13), %r14d
	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, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 88(%rbx)
	movq	%r15, 80(%rbx)
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_EMS_USB_ARM7_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_ems_usb_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	_ems_usb_set_bittiming@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_ems_usb_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_IFF_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ems_usb_netdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%r15)
	orl	%eax, 4(%r15)
	leaq	48(%rbx), %rdi
	callq	_init_usb_anchor
	leaq	44(%rbx), %rdi
	callq	_init_usb_anchor
	leaq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_MAX_TX_URBS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:
	movq	32(%rbx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jl	LBB0_4
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_INTR_IN_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_CPC_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	movl	(%r13), %esi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %r14
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_init_params_sja1000
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ems_usb_command_msg
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	subl	(%r13), %ebx
	movl	%ebx, %r14d
	jmp	LBB0_20
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_8:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_10:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_13:
	movq	%r15, %rdi
	callq	_register_candev
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %r14d
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_16:
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%rbx), %rdi
	callq	_kfree
LBB0_17:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_18:
	movl	(%rbx), %edi
	callq	_usb_free_urb
LBB0_19:
	movq	%r15, %rdi
	callq	_free_candev
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"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	_IFF_ECHO,4,2                   ## @IFF_ECHO
	.comm	_ems_usb_netdev_ops,4,2         ## @ems_usb_netdev_ops
	.comm	_MAX_TX_URBS,4,2                ## @MAX_TX_URBS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't alloc intr URB\n"

	.comm	_INTR_IN_BUFFER_SIZE,8,3        ## @INTR_IN_BUFFER_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't alloc Intr buffer\n"

	.comm	_CPC_HEADER_SIZE,8,3            ## @CPC_HEADER_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't alloc Tx buffer\n"

L_.str.4:                               ## @.str.4
	.asciz	"couldn't initialize controller: %d\n"

L_.str.5:                               ## @.str.5
	.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:
	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	x22, x0
Lloh0:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	w0, #96
	bl	_alloc_candev
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	neg	w21, w21
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x22
	bl	_interface_to_usbdev
	str	w0, [x20, #88]
	str	x19, [x20, #80]
Lloh2:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _EMS_USB_ARM7_CLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EMS_USB_ARM7_CLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #72]
Lloh8:
	adrp	x8, _ems_usb_bittiming_const@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ems_usb_bittiming_const@GOTPAGEOFF]
	str	x8, [x20, #64]
Lloh10:
	adrp	x8, _ems_usb_set_bittiming@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ems_usb_set_bittiming@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ems_usb_set_mode@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ems_usb_set_mode@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #56]
Lloh16:
	adrp	x8, _IFF_ECHO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IFF_ECHO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _ems_usb_netdev_ops@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ems_usb_netdev_ops@GOTPAGEOFF]
	str	x9, [x19, #8]
	str	w8, [x19, #4]
	add	x0, x20, #48
	bl	_init_usb_anchor
	add	x0, x20, #44
	bl	_init_usb_anchor
	add	x0, x20, #40
	mov	w1, #0
	bl	_atomic_set
Lloh21:
	adrp	x8, _MAX_TX_URBS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_TX_URBS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x10, #0
	ldr	x11, [x20, #32]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x11, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x9, [x8]
	cmp	x10, x9
	b.lt	LBB0_3
LBB0_4:
Lloh23:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	w0, [x20]
	cbz	w0, LBB0_10
; %bb.5:
Lloh25:
	adrp	x8, _INTR_IN_BUFFER_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INTR_IN_BUFFER_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_11
; %bb.6:
Lloh28:
	adrp	x8, _CPC_HEADER_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CPC_HEADER_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x0, x8, #4
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x0, x22
	mov	x1, x20
	bl	_usb_set_intfdata
	mov	x0, x19
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	add	x21, x20, #24
	mov	x0, x21
	bl	_init_params_sja1000
	mov	x0, x20
	mov	x1, x21
	bl	_ems_usb_command_msg
	cbz	w0, LBB0_13
; %bb.8:
	mov	x21, x0
	ldr	w0, [x19]
	str	x21, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_9:
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w8, [x20]
	neg	w21, w8
	b	LBB0_19
LBB0_10:
	ldr	w0, [x19]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_18
LBB0_11:
	ldr	w0, [x19]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_12:
	ldr	w0, [x19]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_16
LBB0_13:
	mov	x0, x19
	bl	_register_candev
	mov	x21, x0
	cbz	w0, LBB0_19
; %bb.14:
	ldr	w0, [x19]
	str	x21, [sp]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_15:
	ldr	x0, [x20, #16]
	bl	_kfree
LBB0_16:
	ldr	x0, [x20, #8]
	bl	_kfree
LBB0_17:
	ldr	w0, [x20]
	bl	_usb_free_urb
LBB0_18:
	mov	x0, x19
	bl	_free_candev
LBB0_19:
	mov	x0, x21
	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 AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"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	_IFF_ECHO,4,2                   ; @IFF_ECHO
	.comm	_ems_usb_netdev_ops,4,2         ; @ems_usb_netdev_ops
	.comm	_MAX_TX_URBS,4,2                ; @MAX_TX_URBS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't alloc intr URB\n"

	.comm	_INTR_IN_BUFFER_SIZE,8,3        ; @INTR_IN_BUFFER_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't alloc Intr buffer\n"

	.comm	_CPC_HEADER_SIZE,8,3            ; @CPC_HEADER_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't alloc Tx buffer\n"

l_.str.4:                               ; @.str.4
	.asciz	"couldn't initialize controller: %d\n"

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

	.no_dead_strip	_ems_usb_probe
.subsections_via_symbols
