	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m_can_class_register           ## -- Begin function m_can_class_register
	.p2align	4, 0x90
_m_can_class_register:                  ## @m_can_class_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_pm_runtime_enable
	movq	%rbx, %rdi
	callq	_m_can_clk_start
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_m_can_dev_setup
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%rbx), %rdi
	callq	_register_m_can_dev
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_dev_err
LBB0_5:
	movq	%rbx, %rdi
	callq	_m_can_clk_stop
LBB0_6:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movl	8(%rbx), %edi
	callq	_pm_runtime_disable
LBB0_8:
	movq	(%rbx), %rdi
	callq	_free_candev
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	(%rbx), %rdi
	callq	_devm_can_led_init
	movq	(%rbx), %rdi
	callq	_of_can_transceiver
	movl	8(%rbx), %edi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	24(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_m_can_clk_stop
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registering %s failed (err=%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s device registered (irq=%d, version=%d)\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m_can_class_register           ; -- Begin function m_can_class_register
	.p2align	2
_m_can_class_register:                  ; @m_can_class_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_m_can_clk_start
	mov	x20, x0
	cbnz	w0, LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_m_can_dev_setup
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19]
	bl	_register_m_can_dev
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x19
	bl	_m_can_clk_stop
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_pm_runtime_disable
LBB0_8:
	ldr	x0, [x19]
	bl	_free_candev
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x0, [x19]
	bl	_devm_can_led_init
	ldr	x0, [x19]
	bl	_of_can_transceiver
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8]
	ldr	w4, [x19, #24]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_m_can_clk_stop
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registering %s failed (err=%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s device registered (irq=%d, version=%d)\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
.subsections_via_symbols
