	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzgets                         ## -- Begin function gzgets
	.p2align	4, 0x90
_gzgets:                                ## @gzgets
	.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
	xorl	%ecx, %ecx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movl	%edx, %r12d
	testl	%edx, %edx
	jle	LBB0_8
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_GZ_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	8(%rbx), %rax
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.5:
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movq	%rcx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpq	$0, 56(%rbx)
	je	LBB0_12
## %bb.10:
	movq	$0, 56(%rbx)
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gz_skip
	xorl	%ecx, %ecx
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.11:
	decl	%r12d
	jne	LBB0_13
	jmp	LBB0_8
LBB0_12:
	decl	%r12d
	je	LBB0_7
LBB0_13:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %r14d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_gz_fetch
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	24(%r14), %r14d
	testl	%r14d, %r14d
	je	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r12d, %r14d
	cmovael	%r12d, %r14d
	movq	32(%r13), %rdi
	movl	$10, %esi
	movl	%r14d, %edx
	callq	_memchr
	movq	%rax, %r15
	movq	32(%r13), %rsi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r12d
	subl	%esi, %r12d
	incl	%r12d
	testq	%rax, %rax
	cmovel	%r14d, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	movl	24(%r13), %r14d
	subl	%r12d, %r14d
	movl	%r14d, 24(%r13)
	addq	%r12, 32(%r13)
	addl	%r12d, 40(%r13)
	addq	%r12, %rbx
	subl	%r12d, -44(%rbp)                ## 4-byte Folded Spill
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%r15, %r15
	je	LBB0_14
	jmp	LBB0_22
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 16(%rax)
LBB0_22:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rbx
	je	LBB0_7
## %bb.23:
	movb	$0, (%rbx)
	jmp	LBB0_8
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzgets                         ; -- Begin function gzgets
	.p2align	2
_gzgets:                                ; @gzgets
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	mov	x0, #0
	cbz	x20, LBB0_18
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_18
; %bb.2:
	subs	w24, w2, #1
	b.lt	LBB0_18
; %bb.3:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _GZ_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GZ_READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.4:
	ldr	x8, [x20, #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_17
; %bb.5:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_8
; %bb.6:
	str	xzr, [x20, #56]
	ldr	w1, [x20, #48]
	mov	x0, x20
	bl	_gz_skip
	mov	x8, x0
	mov	x0, #0
	cmn	w8, #1
	b.eq	LBB0_18
; %bb.7:
	cbnz	w24, LBB0_9
	b	LBB0_18
LBB0_8:
	subs	w24, w2, #1
	b.eq	LBB0_17
LBB0_9:
	ldr	w8, [x20, #24]
	mov	x21, x19
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, w24
	csel	w22, w8, w24, lo
	ldr	x0, [x20, #32]
	mov	w1, #10
	mov	x2, x22
	bl	_memchr
	mov	x23, x0
	ldr	x1, [x20, #32]
	sub	w8, w23, w1
	cmp	x0, #0
	csinc	w22, w22, w8, eq
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x20, #24]
	sub	w8, w8, w22
	str	w8, [x20, #24]
	ldr	x9, [x20, #32]
	add	x9, x9, x22
	str	x9, [x20, #32]
	ldr	w9, [x20, #40]
	add	w9, w9, w22
	str	w9, [x20, #40]
	sub	w24, w24, w22
	add	x21, x21, x22
	cmp	w24, #0
	ccmp	x23, #0, #0, ne
	b.ne	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_gz_fetch
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_10
; %bb.14:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_15:
	cmp	x21, x19
	b.eq	LBB0_17
; %bb.16:
	strb	wzr, [x21]
	mov	x0, x19
	b	LBB0_18
LBB0_17:
	mov	x0, #0
LBB0_18:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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
.subsections_via_symbols
