	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_HZ_put_state_reset
__citrus_HZ_put_state_reset:            ## @_citrus_HZ_put_state_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
	cmpq	$0, (%rcx)
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rcx, %rbx
	movq	16(%rcx), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.5:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_INIT0
	cmpq	%rax, %r14
	je	LBB0_9
## %bb.6:
	cmpq	$1, %r13
	jbe	LBB0_12
## %bb.7:
	movq	_ESCAPE_CHAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rbx), %r14
	movl	%ecx, (%r14)
	movq	%rax, %rdi
	callq	_ESC
	movq	$2, (%rbx)
	movl	%eax, 4(%r14)
	cmpq	$2, %r13
	je	LBB0_12
## %bb.8:
	movq	8(%rbx), %rsi
	movl	$2, %r13d
	movl	$2, %edx
	movq	%r12, %rdi
	callq	_memcpy
	jmp	LBB0_11
LBB0_9:
	testq	%r13, %r13
	je	LBB0_12
## %bb.10:
	xorl	%r13d, %r13d
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__citrus_HZ_init_state
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_12:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_ESCAPE_CHAR,4,2                ## @ESCAPE_CHAR
	.no_dead_strip	__citrus_HZ_put_state_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _citrus_HZ_put_state_reset
__citrus_HZ_put_state_reset:            ; @_citrus_HZ_put_state_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
	ldr	x8, [x3]
	cbz	x8, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	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
LBB0_4:
	mov	x19, x3
	ldr	x24, [x3, #16]
	cbz	x24, LBB0_1
; %bb.5:
	mov	x20, x4
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	bl	_INIT0
	cmp	x24, x0
	b.eq	LBB0_9
; %bb.6:
	cmp	x23, #1
	b.ls	LBB0_12
; %bb.7:
Lloh2:
	adrp	x8, _ESCAPE_CHAR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESCAPE_CHAR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x24, [x19, #8]
	str	w8, [x24]
	bl	_ESC
	mov	w8, #2
	str	x8, [x19]
	str	w0, [x24, #4]
	cmp	x23, #2
	b.eq	LBB0_12
; %bb.8:
	ldr	x1, [x19, #8]
	mov	w23, #2
	mov	x0, x22
	mov	w2, #2
	bl	_memcpy
	b	LBB0_11
LBB0_9:
	cbz	x23, LBB0_12
; %bb.10:
	mov	x23, #0
LBB0_11:
	str	x23, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	__citrus_HZ_init_state
	mov	w0, #0
	b	LBB0_3
LBB0_12:
Lloh5:
	adrp	x8, _E2BIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_ESCAPE_CHAR,4,2                ; @ESCAPE_CHAR
	.no_dead_strip	__citrus_HZ_put_state_reset
.subsections_via_symbols
