	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzungetc                       ## -- Begin function gzungetc
	.p2align	4, 0x90
_gzungetc:                              ## @gzungetc
	.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
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_GZ_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movl	%edi, %r14d
	movq	8(%rbx), %rax
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.3:
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_6:
	movl	$-1, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	cmpq	$0, 72(%rbx)
	je	LBB0_12
## %bb.9:
	movq	$0, 72(%rbx)
	movl	64(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gz_skip
	testl	%r14d, %r14d
	js	LBB0_6
## %bb.10:
	cmpl	$-1, %eax
	jne	LBB0_13
	jmp	LBB0_6
LBB0_12:
	testl	%r14d, %r14d
	js	LBB0_6
LBB0_13:
	movl	40(%rbx), %ecx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.14:
	movl	24(%rbx), %eax
	addl	%eax, %eax
	cmpl	%eax, %ecx
	jne	LBB0_17
## %bb.15:
	movq	_Z_DATA_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gz_error
	jmp	LBB0_6
LBB0_16:
	movl	$1, 40(%rbx)
	movq	16(%rbx), %rax
	movl	24(%rbx), %ecx
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx), %rdx
	decq	%rdx
	movq	%rdx, 48(%rbx)
	movb	%r14b, -1(%rax,%rcx)
	jmp	LBB0_26
LBB0_17:
	movq	48(%rbx), %rdx
	cmpq	16(%rbx), %rdx
	je	LBB0_21
## %bb.18:
	movq	%rdx, %rax
	jmp	LBB0_25
LBB0_21:
	cltq
	addq	%rdx, %rax
	testl	%ecx, %ecx
	jle	LBB0_25
## %bb.22:
	addq	%rcx, %rdx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rdx), %ecx
	decq	%rdx
	movb	%cl, -1(%rax)
	decq	%rax
	cmpq	16(%rbx), %rdx
	ja	LBB0_23
## %bb.24:
	movl	40(%rbx), %ecx
LBB0_25:
	incl	%ecx
	movl	%ecx, 40(%rbx)
	leaq	-1(%rax), %rcx
	movq	%rcx, 48(%rbx)
	movb	%r14b, -1(%rax)
LBB0_26:
	decl	56(%rbx)
	movq	$0, 32(%rbx)
	jmp	LBB0_7
	.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	_Z_DATA_ERROR,4,2               ## @Z_DATA_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of room to push characters"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzungetc                       ; -- Begin function gzungetc
	.p2align	2
_gzungetc:                              ; @gzungetc
	.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	x1, LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _GZ_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GZ_READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %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_10
; %bb.3:
	mov	x20, x0
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_6
; %bb.4:
	str	xzr, [x19, #72]
	ldr	w1, [x19, #64]
	mov	x0, x19
	bl	_gz_skip
	mov	x8, x0
	mov	w0, #-1
	tbnz	w20, #31, LBB0_11
; %bb.5:
	cmn	w8, #1
	b.ne	LBB0_7
	b	LBB0_11
LBB0_6:
	tbnz	w20, #31, LBB0_10
LBB0_7:
	ldr	w9, [x19, #40]
	cbz	w9, LBB0_12
; %bb.8:
	ldr	w8, [x19, #24]
	lsl	w8, w8, #1
	cmp	w9, w8
	b.ne	LBB0_13
; %bb.9:
Lloh9:
	adrp	x8, _Z_DATA_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Z_DATA_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gz_error
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #40]
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #24]
	lsl	w9, w9, #1
	add	x8, x8, w9, sxtw
	b	LBB0_20
LBB0_13:
	ldr	x10, [x19, #48]
	ldr	x11, [x19, #16]
	cmp	x10, x11
	b.eq	LBB0_15
; %bb.14:
	mov	x8, x10
	b	LBB0_19
LBB0_15:
	add	x8, x10, w8, sxtw
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.16:
	add	x9, x10, x9
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, #-1]!
	strb	w10, [x8, #-1]!
	ldr	x10, [x19, #16]
	cmp	x9, x10
	b.hi	LBB0_17
; %bb.18:
	ldr	w9, [x19, #40]
LBB0_19:
	add	w9, w9, #1
	str	w9, [x19, #40]
LBB0_20:
	sub	x9, x8, #1
	str	x9, [x19, #48]
	sturb	w20, [x8, #-1]
	ldr	w8, [x19, #56]
	sub	w8, w8, #1
	str	w8, [x19, #56]
	str	xzr, [x19, #32]
	mov	x0, x20
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.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	_Z_DATA_ERROR,4,2               ; @Z_DATA_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of room to push characters"

.subsections_via_symbols
