	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp251x_open
_mcp251x_open:                          ## @mcp251x_open
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	48(%rax), %r15
	movq	%rbx, %rdi
	callq	_open_candev
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	4(%r12), %edi
	movl	$1, %esi
	callq	_mcp251x_power_enable
	leaq	4(%r15), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	movq	$0, 40(%r12)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dev_fwnode
	movl	$0, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movl	(%r15), %r14d
	movq	_mcp251x_can_ist@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_name
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_6:
	movq	_WQ_FREEZABLE@GOTPCREL(%rip), %rax
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	16(%r12), %rdi
	movq	_mcp251x_tx_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	addq	$12, %rdi
	movq	_mcp251x_restart_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, %rdi
	callq	_mcp251x_hw_reset
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mcp251x_setup
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_mcp251x_set_normal_mode
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movl	8(%r12), %edi
	callq	_destroy_workqueue
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_free_irq
	movq	%r15, %rdi
	callq	_mcp251x_hw_sleep
LBB0_14:
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_mcp251x_power_enable
	movq	%r14, %rdi
	callq	_close_candev
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_CAN_LED_EVENT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_can_led_event
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to set initial baudrate!\n"

	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
	.comm	_mcp251x_can_ist,4,2            ## @mcp251x_can_ist
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"failed to acquire irq %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"mcp251x_wq"

	.comm	_WQ_FREEZABLE,4,2               ## @WQ_FREEZABLE
	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mcp251x_tx_work_handler,4,2    ## @mcp251x_tx_work_handler
	.comm	_mcp251x_restart_work_handler,4,2 ## @mcp251x_restart_work_handler
	.comm	_CAN_LED_EVENT_OPEN,4,2         ## @CAN_LED_EVENT_OPEN
	.no_dead_strip	_mcp251x_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp251x_open
_mcp251x_open:                          ; @mcp251x_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0, #48]
	mov	x0, x20
	bl	_open_candev
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	add	x0, x21, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_13
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_mcp251x_power_enable
	add	x23, x21, #4
	stp	xzr, xzr, [x19, #32]
	str	xzr, [x19, #24]
	mov	x0, x23
	bl	_dev_fwnode
Lloh2:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	w0, #0
	csel	x8, x8, xzr, eq
Lloh5:
	adrp	x9, _mcp251x_can_ist@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mcp251x_can_ist@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh7:
	ldr	w24, [x9]
Lloh8:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	orr	x25, x9, x8
	mov	x0, x23
	bl	_dev_name
	mov	x4, x0
	mov	x0, x22
	mov	x1, #0
	mov	x2, x24
	mov	x3, x25
	mov	x5, x19
	bl	_request_threaded_irq
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
	ldr	w8, [x21]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_11
LBB0_4:
Lloh13:
	adrp	x8, _WQ_FREEZABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WQ_FREEZABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _WQ_MEM_RECLAIM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x19, #8]
	cbz	w0, LBB0_9
; %bb.5:
	add	x0, x19, #16
Lloh21:
	adrp	x8, _mcp251x_tx_work_handler@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mcp251x_tx_work_handler@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #12
Lloh24:
	adrp	x8, _mcp251x_restart_work_handler@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mcp251x_restart_work_handler@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x21
	bl	_mcp251x_hw_reset
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_mcp251x_setup
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_mcp251x_set_normal_mode
	mov	x22, x0
	cbz	w0, LBB0_14
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_destroy_workqueue
	b	LBB0_10
LBB0_9:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_free_irq
	mov	x0, x21
	bl	_mcp251x_hw_sleep
LBB0_11:
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_mcp251x_power_enable
	mov	x0, x20
	bl	_close_candev
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
Lloh30:
	adrp	x8, _CAN_LED_EVENT_OPEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CAN_LED_EVENT_OPEN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_can_led_event
	mov	x0, x20
	bl	_netif_wake_queue
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to set initial baudrate!\n"

	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
	.comm	_mcp251x_can_ist,4,2            ; @mcp251x_can_ist
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"failed to acquire irq %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"mcp251x_wq"

	.comm	_WQ_FREEZABLE,4,2               ; @WQ_FREEZABLE
	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mcp251x_tx_work_handler,4,2    ; @mcp251x_tx_work_handler
	.comm	_mcp251x_restart_work_handler,4,2 ; @mcp251x_restart_work_handler
	.comm	_CAN_LED_EVENT_OPEN,4,2         ; @CAN_LED_EVENT_OPEN
	.no_dead_strip	_mcp251x_open
.subsections_via_symbols
