	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gz_comp
_gz_comp:                               ## @gz_comp
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_gz_init
	cmpl	$-1, %eax
	je	LBB0_27
LBB0_2:
	leaq	40(%r12), %r15
	cmpq	$0, 32(%r12)
	je	LBB0_6
## %bb.3:
	movq	56(%r12), %rsi
	movl	24(%r12), %edi
	movl	40(%r12), %edx
	callq	_write
	testl	%eax, %eax
	js	LBB0_23
## %bb.4:
	cmpl	(%r15), %eax
	jne	LBB0_23
## %bb.5:
	movl	$0, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_6:
	movq	_Z_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	44(%r12), %r13d
	movq	_Z_STREAM_ERROR@GOTPCREL(%rip), %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_Z_FINISH@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	48(%r12), %ebx
	movq	8(%r12), %rsi
	subl	%esi, %ebx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r12), %edi
	movl	%ebx, %edx
	callq	_write
	testl	%eax, %eax
	js	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%ebx, %eax
	jne	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	44(%r12), %r13d
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	48(%r12), %rax
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %r13d
	movl	%r13d, 44(%r12)
	movq	16(%r12), %rax
	movq	%rax, 48(%r12)
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	%rax, 8(%r12)
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_deflate
	cmpl	(%r14), %eax
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	44(%r12), %ecx
	cmpl	%ecx, %r13d
	movl	%ecx, %r13d
	jne	LBB0_7
## %bb.21:
	xorl	%r14d, %r14d
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_28
## %bb.22:
	movq	%r15, %rdi
	callq	_deflateReset
	jmp	LBB0_28
LBB0_23:
	movq	_Z_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_zstrerror
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
LBB0_26:
	callq	_gz_error
LBB0_27:
	movl	$-1, %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_ERRNO,4,2                    ## @Z_ERRNO
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_Z_STREAM_ERROR,4,2             ## @Z_STREAM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal error: deflate stream corrupt"

	.no_dead_strip	_gz_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gz_comp
_gz_comp:                               ; @gz_comp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20], #40
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_gz_init
	cmn	w0, #1
	b.eq	LBB0_26
LBB0_2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #56]
	ldr	w2, [x19, #40]
	bl	_write
	tbnz	w0, #31, LBB0_23
; %bb.4:
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.5:
	mov	w0, #0
	str	wzr, [x20]
	b	LBB0_26
LBB0_6:
Lloh0:
	adrp	x8, _Z_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w27, [x19, #44]
Lloh3:
	adrp	x23, _Z_STREAM_ERROR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _Z_STREAM_ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x25, _Z_NO_FLUSH@GOTPAGE
Lloh6:
	ldr	x25, [x25, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh7:
	adrp	x24, _Z_FINISH@GOTPAGE
Lloh8:
	ldr	x24, [x24, _Z_FINISH@GOTPAGEOFF]
Lloh9:
	adrp	x26, _Z_STREAM_END@GOTPAGE
Lloh10:
	ldr	x26, [x26, _Z_STREAM_END@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	cmp	w8, w21
	b.eq	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x26]
	cmp	w8, w21
	ccmp	w1, w9, #4, eq
	b.ne	LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #48]
	ldr	x1, [x19, #8]
	subs	w22, w8, w1
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #24]
	mov	x2, x22
	bl	_write
	tbnz	w0, #31, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, w22
	b.ne	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w27, [x19, #44]
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w27, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #48]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w27, [x19]
	str	w27, [x19, #44]
	ldr	x8, [x19, #16]
	str	x8, [x19, #48]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [x19, #8]
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_deflate
	mov	x1, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #44]
	cmp	w27, w8
	mov	x27, x8
	b.ne	LBB0_7
; %bb.20:
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_deflateReset
LBB0_22:
	mov	w0, #0
	b	LBB0_26
LBB0_23:
Lloh11:
	adrp	x8, _Z_ERRNO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Z_ERRNO@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_zstrerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	b	LBB0_25
LBB0_24:
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
LBB0_25:
	bl	_gz_error
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_ERRNO,4,2                    ; @Z_ERRNO
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_Z_STREAM_ERROR,4,2             ; @Z_STREAM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal error: deflate stream corrupt"

	.no_dead_strip	_gz_comp
.subsections_via_symbols
