	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StateSav_SaveINT               ## -- Begin function StateSav_SaveINT
	.p2align	4, 0x90
_StateSav_SaveINT:                      ## @StateSav_SaveINT
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_StateFile@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.1:
	movl	%esi, %r12d
	testl	%esi, %esi
	jle	LBB0_9
## %bb.2:
	movq	_nFileError@GOTPCREL(%rip), %rax
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_9
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	%r13d, %ebx
	negl	%ebx
	cmovsl	%r13d, %ebx
	movzbl	%bl, %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	callq	_GZWRITE
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	%r12d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%bh, %eax
	movl	%eax, -44(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_GZWRITE
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -44(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_GZWRITE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	shrl	$24, %r13d
	andl	$-128, %r13d
	shrl	$24, %ebx
	orl	%r13d, %ebx
	movl	%ebx, -44(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_GZWRITE
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r14d, -64(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %r13d
	movl	%r13d, %ebx
	negl	%ebx
	cmovsl	%r13d, %ebx
	movzbl	%bl, %eax
	movl	%eax, -44(%rbp)
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_GZWRITE
	incq	%r14
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	xorl	%eax, %eax
	callq	_GetGZErrorText
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_StateFile,4,2                  ## @StateFile
	.comm	_nFileError,8,3                 ## @nFileError
	.comm	_Z_OK,8,3                       ## @Z_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StateSav_SaveINT               ; -- Begin function StateSav_SaveINT
	.p2align	2
_StateSav_SaveINT:                      ; @StateSav_SaveINT
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _StateFile@GOTPAGE
Lloh1:
	ldr	x20, [x20, _StateFile@GOTPAGEOFF]
	ldr	w0, [x20]
	cbz	w0, LBB0_11
; %bb.1:
	subs	w21, w1, #1
	b.lt	LBB0_11
; %bb.2:
Lloh2:
	adrp	x8, _nFileError@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nFileError@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _Z_OK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _Z_OK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	ldr	w22, [x19]
	cmp	w22, #0
	cneg	w23, w22, mi
	and	w8, w23, #0xff
	str	w8, [sp, #12]
	add	x1, sp, #12
	mov	w2, #1
	bl	_GZWRITE
	cbz	x0, LBB0_10
; %bb.4:
	add	x19, x19, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ubfx	w8, w23, #8, #8
	str	w8, [sp, #12]
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #1
	bl	_GZWRITE
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ubfx	w8, w23, #16, #8
	str	w8, [sp, #12]
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #1
	bl	_GZWRITE
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	lsr	w8, w22, #24
	and	w8, w8, #0x80
	orr	w8, w8, w23, lsr #24
	str	w8, [sp, #12]
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #1
	bl	_GZWRITE
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20]
	ldr	w22, [x19], #4
	cmp	w22, #0
	cneg	w23, w22, mi
	and	w8, w23, #0xff
	str	w8, [sp, #12]
	add	x1, sp, #12
	mov	w2, #1
	bl	_GZWRITE
	sub	w21, w21, #1
	cbnz	x0, LBB0_5
LBB0_10:
	bl	_GetGZErrorText
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_StateFile,4,2                  ; @StateFile
	.comm	_nFileError,8,3                 ; @nFileError
	.comm	_Z_OK,8,3                       ; @Z_OK
.subsections_via_symbols
