	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ican3_reset_module
_ican3_reset_module:                    ## @ican3_reset_module
	.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, %rbx
	movb	(%rdi), %cl
	movl	$1, %edi
	shll	%cl, %edi
	movq	32(%rbx), %rsi
	callq	_iowrite8
	movq	_DPM_FREE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_QUEUE_OLD_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ican3_set_page
	movq	_TARGET_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread8
	movl	%eax, %r15d
	movq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite8
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %r12
	xorl	$255, %r15d
	movq	_HZ@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QUEUE_OLD_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ican3_set_page
	movq	_TARGET_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread8
	cmpl	%r15d, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	(%r14), %rdi
	movl	(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPM_FREE_START,4,2             ## @DPM_FREE_START
	.comm	_QUEUE_OLD_CONTROL,4,2          ## @QUEUE_OLD_CONTROL
	.comm	_TARGET_RUNNING,8,3             ## @TARGET_RUNNING
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to reset CAN module\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_ican3_reset_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ican3_reset_module
_ican3_reset_module:                    ; @ican3_reset_module
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w0, w9, w8
	ldr	x1, [x19, #32]
	bl	_iowrite8
Lloh0:
	adrp	x8, _DPM_FREE_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPM_FREE_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh3:
	adrp	x21, _QUEUE_OLD_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _QUEUE_OLD_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ican3_set_page
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x22, _TARGET_RUNNING@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TARGET_RUNNING@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread8
	mov	x20, x0
	ldr	x1, [x19, #16]
	mov	w0, #0
	bl	_iowrite8
Lloh7:
	adrp	x23, _jiffies@GOTPAGE
Lloh8:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x24, [x23]
	eor	w20, w20, #0xff
Lloh9:
	adrp	x25, _HZ@GOTPAGE
Lloh10:
	ldr	x25, [x25, _HZ@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ican3_set_page
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread8
	cmp	w0, w20
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x23]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x1, x24, w8, sxtw
	bl	_time_before
	cbnz	x0, LBB0_1
; %bb.3:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DPM_FREE_START,4,2             ; @DPM_FREE_START
	.comm	_QUEUE_OLD_CONTROL,4,2          ; @QUEUE_OLD_CONTROL
	.comm	_TARGET_RUNNING,8,3             ; @TARGET_RUNNING
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to reset CAN module\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_ican3_reset_module
.subsections_via_symbols
