	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcan4x5x_can_probe
_tcan4x5x_can_probe:                    ## @tcan4x5x_can_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_m_can_class_allocate_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r15
	movq	%rax, 72(%r13)
	movq	%r13, %rdi
	callq	_m_can_class_get_clocks
	movl	8(%r13), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_TCAN4X5X_EXT_CLK_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	cmpl	$20000000, %eax                 ## imm = 0x1312D00
	jge	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movl	8(%r13), %edi
	callq	_clk_get_rate
	movq	_TCAN4X5X_EXT_CLK_DEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$20000000, %eax                 ## imm = 0x1312D00
	jl	LBB0_9
LBB0_8:
	cmpl	%ecx, %eax
	jg	LBB0_9
## %bb.10:
	movq	_TCAN4X5X_MCAN_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r15)
	movq	_TCAN4X5X_MRAM_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movq	%r12, 16(%r15)
	movq	%r13, 8(%r15)
	movq	$0, 64(%r13)
	movl	%eax, 56(%r13)
	movq	%r14, 48(%r13)
	movq	_tcan4x5x_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movl	$1, (%r13)
	movq	_tcan4x5x_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r13)
	movq	_tcan4x5x_data_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r13)
	movl	8(%r12), %eax
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%r13, %rdi
	callq	_tcan4x5x_parse_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movl	$32, (%r12)
	movq	%r12, %rdi
	callq	_spi_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	_tcan4x5x_bus@GOTPCREL(%rip), %rsi
	movq	_tcan4x5x_regmap@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_devm_regmap_init
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_tcan4x5x_power_enable
	movq	%r13, %rdi
	callq	_m_can_class_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_tcan4x5x_power_enable
LBB0_15:
	movl	8(%r13), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movl	8(%r13), %edi
	callq	_clk_disable_unprepare
	movl	4(%r13), %edi
	callq	_clk_disable_unprepare
LBB0_17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_9:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	16(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_info
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no CAN clock source defined\n"

	.comm	_TCAN4X5X_EXT_CLK_DEF,4,2       ## @TCAN4X5X_EXT_CLK_DEF
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_TCAN4X5X_MCAN_OFFSET,4,2       ## @TCAN4X5X_MCAN_OFFSET
	.comm	_TCAN4X5X_MRAM_START,4,2        ## @TCAN4X5X_MRAM_START
	.comm	_tcan4x5x_ops,4,2               ## @tcan4x5x_ops
	.comm	_tcan4x5x_bittiming_const,4,2   ## @tcan4x5x_bittiming_const
	.comm	_tcan4x5x_data_bittiming_const,4,2 ## @tcan4x5x_data_bittiming_const
	.comm	_tcan4x5x_bus,4,2               ## @tcan4x5x_bus
	.comm	_tcan4x5x_regmap,4,2            ## @tcan4x5x_regmap
L_.str.1:                               ## @.str.1
	.asciz	"TCAN4X5X successfully initialized.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Probe failed, err=%d\n"

	.no_dead_strip	_tcan4x5x_can_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcan4x5x_can_probe
_tcan4x5x_can_probe:                    ; @tcan4x5x_can_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_m_can_class_allocate_dev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	str	x0, [x20, #72]
	mov	x0, x20
	bl	_m_can_class_get_clocks
	ldr	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _TCAN4X5X_EXT_CLK_DEF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCAN4X5X_EXT_CLK_DEF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x0, x8
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x20, #8]
	bl	_clk_get_rate
Lloh10:
	adrp	x8, _TCAN4X5X_EXT_CLK_DEF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TCAN4X5X_EXT_CLK_DEF@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
LBB0_6:
	mov	w9, #11520
	movk	w9, #305, lsl #16
	cmp	w0, w9
	ccmp	w0, w8, #0, ge
	b.le	LBB0_10
; %bb.7:
Lloh13:
	adrp	x8, _ERANGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh15:
	adrp	x8, _TCAN4X5X_MCAN_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TCAN4X5X_MCAN_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TCAN4X5X_MRAM_START@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TCAN4X5X_MRAM_START@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
	stp	x20, x22, [x21, #8]
	str	w0, [x20, #56]
Lloh21:
	adrp	x8, _tcan4x5x_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tcan4x5x_ops@GOTPAGEOFF]
	stp	x8, x19, [x20, #40]
	mov	w8, #1
	str	w8, [x20]
Lloh23:
	adrp	x8, _tcan4x5x_bittiming_const@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tcan4x5x_bittiming_const@GOTPAGEOFF]
Lloh25:
	adrp	x9, _tcan4x5x_data_bittiming_const@GOTPAGE
Lloh26:
	ldr	x9, [x9, _tcan4x5x_data_bittiming_const@GOTPAGEOFF]
	str	xzr, [x20, #64]
	stp	x9, x8, [x20, #24]
	ldr	w8, [x22, #8]
	ldr	x9, [x20, #16]
	str	w8, [x9]
	mov	x0, x22
	mov	x1, x21
	bl	_spi_set_drvdata
	mov	x0, x20
	bl	_tcan4x5x_parse_config
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.11:
	mov	w8, #32
	str	w8, [x22]
	mov	x0, x22
	bl	_spi_setup
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.12:
Lloh27:
	adrp	x1, _tcan4x5x_bus@GOTPAGE
Lloh28:
	ldr	x1, [x1, _tcan4x5x_bus@GOTPAGEOFF]
Lloh29:
	adrp	x3, _tcan4x5x_regmap@GOTPAGE
Lloh30:
	ldr	x3, [x3, _tcan4x5x_regmap@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x19
	bl	_devm_regmap_init
	str	w0, [x21, #4]
	ldr	w0, [x21]
	mov	w1, #1
	bl	_tcan4x5x_power_enable
	mov	x0, x20
	bl	_m_can_class_register
	mov	x23, x0
	cbz	w0, LBB0_17
; %bb.13:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_tcan4x5x_power_enable
LBB0_14:
	ldr	w0, [x20, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	w0, [x20, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x20, #4]
	bl	_clk_disable_unprepare
LBB0_16:
	str	x23, [sp]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_17:
	ldr	x0, [x20, #16]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no CAN clock source defined\n"

	.comm	_TCAN4X5X_EXT_CLK_DEF,4,2       ; @TCAN4X5X_EXT_CLK_DEF
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_TCAN4X5X_MCAN_OFFSET,4,2       ; @TCAN4X5X_MCAN_OFFSET
	.comm	_TCAN4X5X_MRAM_START,4,2        ; @TCAN4X5X_MRAM_START
	.comm	_tcan4x5x_ops,4,2               ; @tcan4x5x_ops
	.comm	_tcan4x5x_bittiming_const,4,2   ; @tcan4x5x_bittiming_const
	.comm	_tcan4x5x_data_bittiming_const,4,2 ; @tcan4x5x_data_bittiming_const
	.comm	_tcan4x5x_bus,4,2               ; @tcan4x5x_bus
	.comm	_tcan4x5x_regmap,4,2            ; @tcan4x5x_regmap
l_.str.1:                               ; @.str.1
	.asciz	"TCAN4X5X successfully initialized.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Probe failed, err=%d\n"

	.no_dead_strip	_tcan4x5x_can_probe
.subsections_via_symbols
