	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzrewind                       ## -- Begin function gzrewind
	.p2align	4, 0x90
_gzrewind:                              ## @gzrewind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_GZ_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_LSEEK
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_gz_reset
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GZ_READ,8,3                    ## @GZ_READ
	.comm	_Z_OK,8,3                       ## @Z_OK
	.comm	_Z_BUF_ERROR,8,3                ## @Z_BUF_ERROR
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzrewind                       ; -- Begin function gzrewind
	.p2align	2
_gzrewind:                              ; @gzrewind
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GZ_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GZ_READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _Z_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Z_OK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _Z_BUF_ERROR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _Z_BUF_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldp	w1, w0, [x19, #16]
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_LSEEK
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_gz_reset
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GZ_READ,8,3                    ; @GZ_READ
	.comm	_Z_OK,8,3                       ; @Z_OK
	.comm	_Z_BUF_ERROR,8,3                ; @Z_BUF_ERROR
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
