	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gz_load
_gz_load:                               ## @gz_load
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$0, (%rcx)
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movl	%eax, %esi
	addq	%r12, %rsi
	movl	%ebx, %edx
	subl	%eax, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	(%r15), %eax
	movl	%eax, (%r15)
	cmpl	%ebx, %eax
	jb	LBB0_1
	jmp	LBB0_6
LBB0_3:
	js	LBB0_4
## %bb.5:
	movl	$1, (%r14)
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_Z_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_zstrerror
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_gz_error
	movl	$-1, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_ERRNO,4,2                    ## @Z_ERRNO
	.no_dead_strip	_gz_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gz_load
_gz_load:                               ; @gz_load
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w8, #0
	str	wzr, [x3]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	add	x1, x22, w8, uxtw
	sub	w2, w21, w8
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	add	w8, w8, w0
	cmp	w8, w21
	str	w8, [x20]
	b.lo	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _Z_ERRNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z_ERRNO@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_zstrerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_gz_error
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_ERRNO,4,2                    ; @Z_ERRNO
	.no_dead_strip	_gz_load
.subsections_via_symbols
