	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_software_reset
_c_can_software_reset:                  ## @c_can_software_reset
	.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	(%rax), %rax
	movq	_BOSCH_D_CAN@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_C_CAN_CTRL_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CONTROL_SWR@GOTPCREL(%rip), %r13
	movq	_CONTROL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movl	$102, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$20, %edi
	callq	_msleep
	decl	%r14d
	jne	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BOSCH_D_CAN,8,3                ## @BOSCH_D_CAN
	.comm	_C_CAN_CTRL_REG,4,2             ## @C_CAN_CTRL_REG
	.comm	_CONTROL_SWR,4,2                ## @CONTROL_SWR
	.comm	_CONTROL_INIT,4,2               ## @CONTROL_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCTRL: software reset failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_c_can_software_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_can_software_reset
_c_can_software_reset:                  ; @c_can_software_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BOSCH_D_CAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BOSCH_D_CAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x21, _C_CAN_CTRL_REG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _C_CAN_CTRL_REG@GOTPAGEOFF]
Lloh5:
	adrp	x22, _CONTROL_SWR@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CONTROL_SWR@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w9, [x22]
Lloh7:
	adrp	x10, _CONTROL_INIT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CONTROL_INIT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w2, w10, w9
	blr	x8
	mov	w23, #102
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x21]
	mov	x0, x20
	blr	x8
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #20
	bl	_msleep
	subs	w23, w23, #1
	b.ne	LBB0_2
; %bb.4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BOSCH_D_CAN,8,3                ; @BOSCH_D_CAN
	.comm	_C_CAN_CTRL_REG,4,2             ; @C_CAN_CTRL_REG
	.comm	_CONTROL_SWR,4,2                ; @CONTROL_SWR
	.comm	_CONTROL_INIT,4,2               ; @CONTROL_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCTRL: software reset failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_c_can_software_reset
.subsections_via_symbols
