	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_chip_config
_c_can_chip_config:                     ## @c_can_chip_config
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_c_can_software_reset
	testl	%eax, %eax
	je	LBB0_1
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_C_CAN_CTRL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CONTROL_ENABLE_AR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	32(%rbx), %r12d
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rax
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.2:
	movl	(%r15), %esi
	movq	_CONTROL_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	24(%rbx), %rax
	movq	_C_CAN_TEST_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%r12d, %r13d
	je	LBB0_6
## %bb.3:
	movq	_TEST_LBACK@GOTPCREL(%rip), %rcx
	movq	_TEST_SILENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	jmp	LBB0_7
LBB0_4:
	testl	%r12d, %r13d
	je	LBB0_8
## %bb.5:
	movl	(%r15), %esi
	movq	_CONTROL_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	_C_CAN_TEST_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TEST_LBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_TEST_SILENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_7:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_8:
	movq	%r14, %rdi
	callq	_c_can_configure_msg_objects
	movq	_C_CAN_STS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LEC_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_c_can_set_bittiming            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_C_CAN_CTRL_REG,4,2             ## @C_CAN_CTRL_REG
	.comm	_CONTROL_ENABLE_AR,4,2          ## @CONTROL_ENABLE_AR
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_CONTROL_TEST,4,2               ## @CONTROL_TEST
	.comm	_C_CAN_TEST_REG,4,2             ## @C_CAN_TEST_REG
	.comm	_TEST_LBACK,4,2                 ## @TEST_LBACK
	.comm	_TEST_SILENT,4,2                ## @TEST_SILENT
	.comm	_C_CAN_STS_REG,4,2              ## @C_CAN_STS_REG
	.comm	_LEC_UNUSED,4,2                 ## @LEC_UNUSED
	.no_dead_strip	_c_can_chip_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_can_chip_config
_c_can_chip_config:                     ; @c_can_chip_config
	.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
	mov	x0, x19
	bl	_c_can_software_reset
	cbz	w0, LBB0_2
; %bb.1:
	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_2:
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x21, _C_CAN_CTRL_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _C_CAN_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x9, _CONTROL_ENABLE_AR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CONTROL_ENABLE_AR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x0, x20
	blr	x8
	ldr	w8, [x20, #32]
Lloh5:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	and	w22, w10, w8
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x20, #24]
	ldr	w1, [x21]
Lloh11:
	adrp	x9, _CONTROL_TEST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONTROL_TEST@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #24]
Lloh14:
	adrp	x9, _C_CAN_TEST_REG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _C_CAN_TEST_REG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	cbz	w22, LBB0_7
; %bb.4:
Lloh17:
	adrp	x9, _TEST_LBACK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TEST_LBACK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _TEST_SILENT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TEST_SILENT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w2, w10, w9
	b	LBB0_9
LBB0_5:
	cbz	w22, LBB0_10
; %bb.6:
	ldr	x8, [x20, #24]
	ldr	w1, [x21]
Lloh23:
	adrp	x9, _CONTROL_TEST@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CONTROL_TEST@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x9]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #24]
Lloh26:
	adrp	x9, _C_CAN_TEST_REG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _C_CAN_TEST_REG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
Lloh29:
	adrp	x9, _TEST_LBACK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TEST_LBACK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh31:
	adrp	x9, _TEST_SILENT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TEST_SILENT@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x9]
LBB0_9:
	mov	x0, x20
	blr	x8
LBB0_10:
	mov	x0, x19
	bl	_c_can_configure_msg_objects
	ldr	x8, [x20, #24]
Lloh33:
	adrp	x9, _C_CAN_STS_REG@GOTPAGE
Lloh34:
	ldr	x9, [x9, _C_CAN_STS_REG@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x9]
Lloh36:
	adrp	x9, _LEC_UNUSED@GOTPAGE
Lloh37:
	ldr	x9, [x9, _LEC_UNUSED@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x9]
	mov	x0, x20
	blr	x8
	add	x0, x20, #16
	mov	w1, #0
	bl	_atomic_set
	stp	xzr, xzr, [x20]
	mov	x0, x19
	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
	b	_c_can_set_bittiming
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_C_CAN_CTRL_REG,4,2             ; @C_CAN_CTRL_REG
	.comm	_CONTROL_ENABLE_AR,4,2          ; @CONTROL_ENABLE_AR
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_CONTROL_TEST,4,2               ; @CONTROL_TEST
	.comm	_C_CAN_TEST_REG,4,2             ; @C_CAN_TEST_REG
	.comm	_TEST_LBACK,4,2                 ; @TEST_LBACK
	.comm	_TEST_SILENT,4,2                ; @TEST_SILENT
	.comm	_C_CAN_STS_REG,4,2              ; @C_CAN_STS_REG
	.comm	_LEC_UNUSED,4,2                 ; @LEC_UNUSED
	.no_dead_strip	_c_can_chip_config
.subsections_via_symbols
