	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcan4x5x_init
_tcan4x5x_init:                         ## @tcan4x5x_init
	.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
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_tcan4x5x_check_wake
	movq	%rbx, %rdi
	callq	_tcan4x5x_clear_interrupts
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_TCAN4X5X_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCAN4X5X_ENABLE_TCAN_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_tcan4x5x_write_tcan_reg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	movq	_TCAN4X5X_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCAN4X5X_MODE_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TCAN4X5X_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_m_can_init_ram
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCAN4X5X_INT_EN,4,2            ## @TCAN4X5X_INT_EN
	.comm	_TCAN4X5X_ENABLE_TCAN_INT,4,2   ## @TCAN4X5X_ENABLE_TCAN_INT
	.comm	_TCAN4X5X_CONFIG,4,2            ## @TCAN4X5X_CONFIG
	.comm	_TCAN4X5X_MODE_SEL_MASK,4,2     ## @TCAN4X5X_MODE_SEL_MASK
	.comm	_TCAN4X5X_MODE_NORMAL,4,2       ## @TCAN4X5X_MODE_NORMAL
	.no_dead_strip	_tcan4x5x_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcan4x5x_init
_tcan4x5x_init:                         ; @tcan4x5x_init
	.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	x20, [x0]
	mov	x0, x20
	bl	_tcan4x5x_check_wake
	mov	x0, x19
	bl	_tcan4x5x_clear_interrupts
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _TCAN4X5X_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCAN4X5X_INT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TCAN4X5X_ENABLE_TCAN_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCAN4X5X_ENABLE_TCAN_INT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tcan4x5x_write_tcan_reg
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _TCAN4X5X_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCAN4X5X_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TCAN4X5X_MODE_SEL_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCAN4X5X_MODE_SEL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _TCAN4X5X_MODE_NORMAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCAN4X5X_MODE_NORMAL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_m_can_init_ram
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TCAN4X5X_INT_EN,4,2            ; @TCAN4X5X_INT_EN
	.comm	_TCAN4X5X_ENABLE_TCAN_INT,4,2   ; @TCAN4X5X_ENABLE_TCAN_INT
	.comm	_TCAN4X5X_CONFIG,4,2            ; @TCAN4X5X_CONFIG
	.comm	_TCAN4X5X_MODE_SEL_MASK,4,2     ; @TCAN4X5X_MODE_SEL_MASK
	.comm	_TCAN4X5X_MODE_NORMAL,4,2       ; @TCAN4X5X_MODE_NORMAL
	.no_dead_strip	_tcan4x5x_init
.subsections_via_symbols
