	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcan_chip_start
_xcan_chip_start:                       ## @xcan_chip_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_set_reset_mode
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_xcan_set_bittiming
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_XCAN_IXR_TXOK_MASK@GOTPCREL(%rip), %rax
	movq	_XCAN_IXR_BSOFF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_XCAN_IXR_WKUP_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_XCAN_IXR_SLP_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_XCAN_IXR_ERROR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_XCAN_IXR_RXOFLW_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_XCAN_IXR_ARBLST_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_xcan_rx_int_mask
	orl	%ebx, %eax
	movq	_XCAN_FLAG_RXMNF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	24(%r12), %ecx
	je	LBB0_4
## %bb.3:
	movq	_XCAN_IXR_RXMNF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%ecx, %eax
	movq	_XCAN_IER_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	*16(%r12)
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	(%r12), %r15d
	je	LBB0_6
## %bb.5:
	movq	_XCAN_MSR_LBACK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movq	_XCAN_FLAG_EXT_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r12)
	je	LBB0_8
## %bb.7:
	movq	_XCAN_AFR_EXT_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	*16(%r12)
LBB0_8:
	movq	_XCAN_MSR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	*16(%r12)
	movq	_XCAN_SRR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XCAN_SRR_CEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	*16(%r12)
	movq	_XCAN_SR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	*8(%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_netdev_dbg
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_IXR_TXOK_MASK,4,2         ## @XCAN_IXR_TXOK_MASK
	.comm	_XCAN_IXR_BSOFF_MASK,4,2        ## @XCAN_IXR_BSOFF_MASK
	.comm	_XCAN_IXR_WKUP_MASK,4,2         ## @XCAN_IXR_WKUP_MASK
	.comm	_XCAN_IXR_SLP_MASK,4,2          ## @XCAN_IXR_SLP_MASK
	.comm	_XCAN_IXR_ERROR_MASK,4,2        ## @XCAN_IXR_ERROR_MASK
	.comm	_XCAN_IXR_RXOFLW_MASK,4,2       ## @XCAN_IXR_RXOFLW_MASK
	.comm	_XCAN_IXR_ARBLST_MASK,4,2       ## @XCAN_IXR_ARBLST_MASK
	.comm	_XCAN_FLAG_RXMNF,4,2            ## @XCAN_FLAG_RXMNF
	.comm	_XCAN_IXR_RXMNF_MASK,4,2        ## @XCAN_IXR_RXMNF_MASK
	.comm	_XCAN_IER_OFFSET,4,2            ## @XCAN_IER_OFFSET
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_XCAN_MSR_LBACK_MASK,4,2        ## @XCAN_MSR_LBACK_MASK
	.comm	_XCAN_FLAG_EXT_FILTERS,4,2      ## @XCAN_FLAG_EXT_FILTERS
	.comm	_XCAN_AFR_EXT_OFFSET,4,2        ## @XCAN_AFR_EXT_OFFSET
	.comm	_XCAN_MSR_OFFSET,4,2            ## @XCAN_MSR_OFFSET
	.comm	_XCAN_SRR_OFFSET,4,2            ## @XCAN_SRR_OFFSET
	.comm	_XCAN_SRR_CEN_MASK,4,2          ## @XCAN_SRR_CEN_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status:#x%08x\n"

	.comm	_XCAN_SR_OFFSET,4,2             ## @XCAN_SR_OFFSET
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_xcan_chip_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcan_chip_start
_xcan_chip_start:                       ; @xcan_chip_start
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_set_reset_mode
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_xcan_set_bittiming
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _XCAN_IXR_TXOK_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XCAN_IXR_TXOK_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _XCAN_IXR_BSOFF_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XCAN_IXR_BSOFF_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _XCAN_IXR_WKUP_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XCAN_IXR_WKUP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _XCAN_IXR_SLP_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XCAN_IXR_SLP_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _XCAN_IXR_ERROR_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XCAN_IXR_ERROR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _XCAN_IXR_RXOFLW_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XCAN_IXR_RXOFLW_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _XCAN_IXR_ARBLST_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _XCAN_IXR_ARBLST_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_xcan_rx_int_mask
	orr	w8, w21, w0
Lloh21:
	adrp	x9, _XCAN_FLAG_RXMNF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _XCAN_FLAG_RXMNF@GOTPAGEOFF]
	ldr	w10, [x19, #24]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x11, _XCAN_IXR_RXMNF_MASK@GOTPAGE
Lloh25:
	ldr	x11, [x11, _XCAN_IXR_RXMNF_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, wzr, w11, eq
	orr	w2, w8, w9
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _XCAN_IER_OFFSET@GOTPAGE
Lloh28:
	ldr	x9, [x9, _XCAN_IER_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
Lloh30:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x10, _XCAN_MSR_LBACK_MASK@GOTPAGE
Lloh34:
	ldr	x10, [x10, _XCAN_MSR_LBACK_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w8, w9
	csel	w21, wzr, w10, eq
	ldr	w8, [x19, #24]
Lloh36:
	adrp	x9, _XCAN_FLAG_EXT_FILTERS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _XCAN_FLAG_EXT_FILTERS@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
Lloh39:
	adrp	x9, _XCAN_AFR_EXT_OFFSET@GOTPAGE
Lloh40:
	ldr	x9, [x9, _XCAN_AFR_EXT_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #1
	blr	x8
LBB0_4:
	ldr	x8, [x19, #16]
Lloh42:
	adrp	x9, _XCAN_MSR_OFFSET@GOTPAGE
Lloh43:
	ldr	x9, [x9, _XCAN_MSR_OFFSET@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x21
	blr	x8
	ldr	x8, [x19, #16]
Lloh45:
	adrp	x9, _XCAN_SRR_OFFSET@GOTPAGE
Lloh46:
	ldr	x9, [x9, _XCAN_SRR_OFFSET@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x9]
Lloh48:
	adrp	x9, _XCAN_SRR_CEN_MASK@GOTPAGE
Lloh49:
	ldr	x9, [x9, _XCAN_SRR_CEN_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
Lloh51:
	adrp	x9, _XCAN_SR_OFFSET@GOTPAGE
Lloh52:
	ldr	x9, [x9, _XCAN_SR_OFFSET@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x2, x0
Lloh54:
	adrp	x1, l_.str@PAGE
Lloh55:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	mov	w0, #0
Lloh56:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_IXR_TXOK_MASK,4,2         ; @XCAN_IXR_TXOK_MASK
	.comm	_XCAN_IXR_BSOFF_MASK,4,2        ; @XCAN_IXR_BSOFF_MASK
	.comm	_XCAN_IXR_WKUP_MASK,4,2         ; @XCAN_IXR_WKUP_MASK
	.comm	_XCAN_IXR_SLP_MASK,4,2          ; @XCAN_IXR_SLP_MASK
	.comm	_XCAN_IXR_ERROR_MASK,4,2        ; @XCAN_IXR_ERROR_MASK
	.comm	_XCAN_IXR_RXOFLW_MASK,4,2       ; @XCAN_IXR_RXOFLW_MASK
	.comm	_XCAN_IXR_ARBLST_MASK,4,2       ; @XCAN_IXR_ARBLST_MASK
	.comm	_XCAN_FLAG_RXMNF,4,2            ; @XCAN_FLAG_RXMNF
	.comm	_XCAN_IXR_RXMNF_MASK,4,2        ; @XCAN_IXR_RXMNF_MASK
	.comm	_XCAN_IER_OFFSET,4,2            ; @XCAN_IER_OFFSET
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_XCAN_MSR_LBACK_MASK,4,2        ; @XCAN_MSR_LBACK_MASK
	.comm	_XCAN_FLAG_EXT_FILTERS,4,2      ; @XCAN_FLAG_EXT_FILTERS
	.comm	_XCAN_AFR_EXT_OFFSET,4,2        ; @XCAN_AFR_EXT_OFFSET
	.comm	_XCAN_MSR_OFFSET,4,2            ; @XCAN_MSR_OFFSET
	.comm	_XCAN_SRR_OFFSET,4,2            ; @XCAN_SRR_OFFSET
	.comm	_XCAN_SRR_CEN_MASK,4,2          ; @XCAN_SRR_CEN_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status:#x%08x\n"

	.comm	_XCAN_SR_OFFSET,4,2             ; @XCAN_SR_OFFSET
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_xcan_chip_start
.subsections_via_symbols
