	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_open
_at91_open:                             ## @at91_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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_open_candev
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %ecx
	movl	4(%r15), %edi
	movq	_at91_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_close_candev
LBB0_4:
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_CAN_LED_EVENT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_can_led_event
	movq	%r15, %rdi
	callq	_at91_chip_start
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_napi_enable
	movq	%r15, %rdi
	callq	_netif_start_queue
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_at91_irq,4,2                   ## @at91_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_CAN_LED_EVENT_OPEN,4,2         ## @CAN_LED_EVENT_OPEN
	.no_dead_strip	_at91_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_open
_at91_open:                             ; @at91_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_open_candev
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _at91_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _at91_irq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	w3, w0, [x19]
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x19
	bl	_close_candev
LBB0_4:
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
LBB0_5:
	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_6:
Lloh9:
	adrp	x8, _CAN_LED_EVENT_OPEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_LED_EVENT_OPEN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_can_led_event
	mov	x0, x19
	bl	_at91_chip_start
	add	x0, x20, #4
	bl	_napi_enable
	mov	x0, x19
	bl	_netif_start_queue
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_at91_irq,4,2                   ; @at91_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_CAN_LED_EVENT_OPEN,4,2         ; @CAN_LED_EVENT_OPEN
	.no_dead_strip	_at91_open
.subsections_via_symbols
