	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c4_reset
_c4_reset:                              ## @c4_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, %rbx
	movq	_DOORBELL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movq	_DBELL_RESET_ARM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_c4outmeml
	movq	_jiffies@GOTPCREL(%rip), %r12
	movslq	(%r12), %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_c4inmeml
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	leaq	(,%r13,4), %rax
	addq	%r13, %rax
	leaq	(%r14,%rax,2), %r14
	movq	_DBELL_ADDR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_time_before
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movl	(%r13), %esi
	callq	_c4outmeml
	xorl	%eax, %eax
	callq	_mb
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_c4inmeml
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_4:
	movq	_DC21285_ARMCSR_BASE@GOTPCREL(%rip), %r14
	movq	_CHAN_1_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_c4_poke
	movq	_CHAN_2_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_c4_poke                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOORBELL,8,3                   ## @DOORBELL
	.comm	_DBELL_RESET_ARM,4,2            ## @DBELL_RESET_ARM
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_DBELL_ADDR,4,2                 ## @DBELL_ADDR
	.comm	_DC21285_ARMCSR_BASE,8,3        ## @DC21285_ARMCSR_BASE
	.comm	_CHAN_1_CONTROL,8,3             ## @CHAN_1_CONTROL
	.comm	_CHAN_2_CONTROL,8,3             ## @CHAN_2_CONTROL
	.no_dead_strip	_c4_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c4_reset
_c4_reset:                              ; @c4_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
Lloh0:
	adrp	x21, _DOORBELL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DOORBELL@GOTPAGEOFF]
	ldr	x8, [x0]
	ldr	x9, [x21]
	add	x0, x9, x8
Lloh2:
	adrp	x8, _DBELL_RESET_ARM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DBELL_RESET_ARM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_c4outmeml
Lloh5:
	adrp	x22, _jiffies@GOTPAGE
Lloh6:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldrsw	x20, [x22]
Lloh7:
	adrp	x8, _HZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh9:
	ldrsw	x23, [x8]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_c4inmeml
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #10
	madd	x20, x23, x8, x20
Lloh10:
	adrp	x23, _DBELL_ADDR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DBELL_ADDR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_time_before
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldr	w1, [x23]
	bl	_c4outmeml
	bl	_mb
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_c4inmeml
	cmn	w0, #1
	b.ne	LBB0_2
LBB0_4:
Lloh12:
	adrp	x20, _DC21285_ARMCSR_BASE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _DC21285_ARMCSR_BASE@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _CHAN_1_CONTROL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CHAN_1_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_c4_poke
Lloh17:
	adrp	x8, _CHAN_2_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CHAN_2_CONTROL@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x19
	mov	w2, #0
	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
	b	_c4_poke
LBB0_5:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DOORBELL,8,3                   ; @DOORBELL
	.comm	_DBELL_RESET_ARM,4,2            ; @DBELL_RESET_ARM
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_DBELL_ADDR,4,2                 ; @DBELL_ADDR
	.comm	_DC21285_ARMCSR_BASE,8,3        ; @DC21285_ARMCSR_BASE
	.comm	_CHAN_1_CONTROL,8,3             ; @CHAN_1_CONTROL
	.comm	_CHAN_2_CONTROL,8,3             ; @CHAN_2_CONTROL
	.no_dead_strip	_c4_reset
.subsections_via_symbols
