	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzsetparams                    ## -- Begin function gzsetparams
	.p2align	4, 0x90
_gzsetparams:                           ## @gzsetparams
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_GZ_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movq	_Z_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.4:
	movl	%edx, %r14d
	movl	%esi, %r15d
	cmpl	%esi, 16(%rbx)
	jne	LBB0_6
## %bb.5:
	cmpl	%r14d, 20(%rbx)
	je	LBB0_15
LBB0_6:
	cmpq	$0, 40(%rbx)
	je	LBB0_9
## %bb.7:
	movq	$0, 40(%rbx)
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gz_zero
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_9:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.10:
	leaq	48(%rbx), %r12
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.11:
	movq	_Z_PARTIAL_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gz_comp
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_deflateParams
LBB0_14:
	movl	%r15d, 16(%rbx)
	movl	%r14d, 20(%rbx)
	movl	(%r13), %eax
	jmp	LBB0_15
LBB0_1:
	movq	_Z_STREAM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_12:
	movl	8(%rbx), %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_STREAM_ERROR,4,2             ## @Z_STREAM_ERROR
	.comm	_GZ_WRITE,8,3                   ## @GZ_WRITE
	.comm	_Z_OK,8,3                       ## @Z_OK
	.comm	_Z_PARTIAL_FLUSH,4,2            ## @Z_PARTIAL_FLUSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzsetparams                    ; -- Begin function gzsetparams
	.p2align	2
_gzsetparams:                           ; @gzsetparams
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x22, x0
	ldr	x8, [x22], #48
Lloh0:
	adrp	x9, _GZ_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GZ_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.2:
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x23, _Z_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _Z_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.3:
	mov	x19, x2
	mov	x21, x1
	ldr	w8, [x20, #16]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x20, #20]
	cmp	w8, w19
	b.eq	LBB0_13
LBB0_5:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_7
; %bb.6:
	str	xzr, [x20, #40]
	ldr	w1, [x20, #32]
	mov	x0, x20
	bl	_gz_zero
	cmn	w0, #1
	b.eq	LBB0_14
LBB0_7:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _Z_PARTIAL_FLUSH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Z_PARTIAL_FLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gz_comp
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_deflateParams
LBB0_11:
	stp	w21, w19, [x20, #16]
	ldr	w0, [x23]
	b	LBB0_13
LBB0_12:
Lloh8:
	adrp	x8, _Z_STREAM_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
LBB0_14:
	mov	w0, #-1
	b	LBB0_13
LBB0_15:
	ldr	w0, [x20, #8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_STREAM_ERROR,4,2             ; @Z_STREAM_ERROR
	.comm	_GZ_WRITE,8,3                   ; @GZ_WRITE
	.comm	_Z_OK,8,3                       ; @Z_OK
	.comm	_Z_PARTIAL_FLUSH,4,2            ; @Z_PARTIAL_FLUSH
.subsections_via_symbols
