	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StateSav_ReadUWORD             ## -- Begin function StateSav_ReadUWORD
	.p2align	4, 0x90
_StateSav_ReadUWORD:                    ## @StateSav_ReadUWORD
	.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, %r14
	movq	_StateFile@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, %esi
	jle	LBB0_7
## %bb.2:
	movq	_nFileError@GOTPCREL(%rip), %rax
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_7
## %bb.3:
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	callq	_GZREAD
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	decl	%ebx
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_GZREAD
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %eax
	shll	$8, %eax
	orl	-44(%rbp), %eax
	movl	%eax, (%r14,%r12,4)
	cmpl	%r12d, %ebx
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	callq	_GZREAD
	incq	%r12
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_GetGZErrorText
LBB0_7:
	addq	$8, %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_ReadUWORD             ; -- Begin function StateSav_ReadUWORD
	.p2align	2
_StateSav_ReadUWORD:                    ; @StateSav_ReadUWORD
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _StateFile@GOTPAGE
Lloh1:
	ldr	x20, [x20, _StateFile@GOTPAGEOFF]
	ldr	w0, [x20]
	cbz	w0, LBB0_8
; %bb.1:
	subs	w21, w1, #1
	b.lt	LBB0_8
; %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_8
; %bb.3:
	add	x1, sp, #12
	mov	w2, #1
	bl	_GZREAD
	cbz	x0, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #1
	bl	_GZREAD
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [sp, #8]
	orr	w8, w9, w8, lsl #8
	str	w8, [x19]
	cbz	w21, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #4
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #1
	bl	_GZREAD
	sub	w21, w21, #1
	cbnz	x0, LBB0_4
LBB0_7:
	bl	_GetGZErrorText
LBB0_8:
	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
	add	sp, sp, #64
	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
