	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function softing_reset_chip
_softing_reset_chip:                    ## @softing_reset_chip
	.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, %r15
	movq	_DPRAM_RESET_RX_FIFO@GOTPCREL(%rip), %r12
	movq	_DPRAM_RESET@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_iowrite8
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_iowrite8
	movq	(%r13), %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	movl	$1, %edi
	callq	_iowrite8
	movq	8(%r15), %rax
	movq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_iowrite8
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_softing_fct_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	$0, (%r15)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPRAM_RESET_RX_FIFO,8,3        ## @DPRAM_RESET_RX_FIFO
	.comm	_DPRAM_RESET,8,3                ## @DPRAM_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset_can"

	.comm	_current,4,2                    ## @current
	.no_dead_strip	_softing_reset_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function softing_reset_chip
_softing_reset_chip:                    ; @softing_reset_chip
	.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
Lloh0:
	adrp	x22, _DPRAM_RESET_RX_FIFO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DPRAM_RESET_RX_FIFO@GOTPAGEOFF]
Lloh2:
	adrp	x23, _DPRAM_RESET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DPRAM_RESET@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x24, _current@GOTPAGE
Lloh7:
	ldr	x24, [x24, _current@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x8, x9, lsl #2
	mov	w0, #0
	bl	_iowrite8
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #2
	add	x1, x8, #4
	mov	w0, #0
	bl	_iowrite8
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x8, x9, lsl #2
	mov	w0, #1
	bl	_iowrite8
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #2
	add	x1, x8, #4
	mov	w0, #0
	bl	_iowrite8
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_softing_fct_cmd
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	bl	_signal_pending
	cbz	x0, LBB0_1
LBB0_3:
	str	xzr, [x19]
	mov	x0, x21
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DPRAM_RESET_RX_FIFO,8,3        ; @DPRAM_RESET_RX_FIFO
	.comm	_DPRAM_RESET,8,3                ; @DPRAM_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset_can"

	.comm	_current,4,2                    ; @current
	.no_dead_strip	_softing_reset_chip
.subsections_via_symbols
