	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_open
_c_can_open:                            ## @c_can_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_c_can_pm_runtime_get_sync
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_c_can_reset_ram
	movq	%rbx, %rdi
	callq	_open_candev
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	jmp	LBB0_8
LBB0_2:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	movq	_c_can_isr@GOTPCREL(%rip), %rsi
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_c_can_start
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
LBB0_7:
	movq	%rbx, %rdi
	callq	_close_candev
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_c_can_reset_ram
	movq	%r14, %rdi
	callq	_c_can_pm_runtime_put_sync
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CAN_LED_EVENT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_can_led_event
	movq	%r14, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_c_can_irq_control
	movq	%rbx, %rdi
	callq	_netif_start_queue
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open can device\n"

	.comm	_c_can_isr,4,2                  ## @c_can_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"failed to request interrupt\n"

	.comm	_CAN_LED_EVENT_OPEN,4,2         ## @CAN_LED_EVENT_OPEN
	.no_dead_strip	_c_can_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_can_open
_c_can_open:                            ; @c_can_open
	.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	_netdev_priv
	mov	x19, x0
	bl	_c_can_pm_runtime_get_sync
	mov	x0, x19
	mov	w1, #1
	bl	_c_can_reset_ram
	mov	x0, x20
	bl	_open_candev
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldp	w0, w3, [x20]
Lloh5:
	adrp	x1, _c_can_isr@GOTPAGE
Lloh6:
	ldr	x1, [x1, _c_can_isr@GOTPAGEOFF]
	mov	x4, x20
	bl	_request_irq
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_c_can_start
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	b	LBB0_6
LBB0_5:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_6:
	mov	x0, x20
	bl	_close_candev
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_c_can_reset_ram
	mov	x0, x19
	bl	_c_can_pm_runtime_put_sync
LBB0_8:
	mov	x0, x21
	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_9:
Lloh9:
	adrp	x8, _CAN_LED_EVENT_OPEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_LED_EVENT_OPEN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_can_led_event
	mov	x0, x19
	bl	_napi_enable
	mov	x0, x19
	mov	w1, #1
	bl	_c_can_irq_control
	mov	x0, x20
	bl	_netif_start_queue
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open can device\n"

	.comm	_c_can_isr,4,2                  ; @c_can_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"failed to request interrupt\n"

	.comm	_CAN_LED_EVENT_OPEN,4,2         ; @CAN_LED_EVENT_OPEN
	.no_dead_strip	_c_can_open
.subsections_via_symbols
