	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function fifolog_write_gzip
LCPI0_0:
	.quad	-9                              ## 0xfffffffffffffff7
	.quad	9                               ## 0x9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fifolog_write_gzip:                    ## @fifolog_write_gzip
	.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, %r14d
	movq	%rdi, %r15
	xorl	%edi, %edi
	testl	%esi, %esi
	setne	%dil
	callq	_assert
	cmpq	$0, 72(%r15)
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	addl	80(%r15), %eax
	cmpl	%r14d, %eax
	jle	LBB0_2
## %bb.3:
	movl	56(%r15), %eax
	addl	64(%r15), %eax
	cmpl	%r14d, %eax
	jle	LBB0_4
## %bb.6:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.8:
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	$0, 72(%r15)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	48(%r15), %rax
	movq	_FIFOLOG_PT_SYNC@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
LBB0_9:
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rcx), %rdi
	movq	%rax, (%rdi)
	movl	44(%r15), %eax
	movl	%eax, 24(%rdi)
	xorl	%r12d, %r12d
	movl	$-1, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	callq	_deflate
	movb	$1, %cl
	movq	_Z_OK@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	%cl, %edi
	callq	_assert
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_fifolog_write_output
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmovsl	%r13d, %r12d
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	jmp	LBB0_10
LBB0_15:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_assert
	movq	$0, 8(%r15)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_17
## %bb.16:
	movq	_FIFOLOG_FLG_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r15)
	movq	16(%r15), %rax
	movdqu	24(%r15), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movq	(%rax), %rdi
	movdqu	%xmm0, 8(%rdi)
	movl	%r14d, (%r15)
	movq	_Z_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_deflateReset
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_assert
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	48(%r15), %rax
	movq	_FIFOLOG_PT_FLUSH@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_FIFOLOG_PT_SYNC,8,3            ## @FIFOLOG_PT_SYNC
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_FIFOLOG_PT_FLUSH,8,3           ## @FIFOLOG_PT_FLUSH
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_BUF_ERROR,4,2                ## @Z_BUF_ERROR
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_FIFOLOG_FLG_SYNC,4,2           ## @FIFOLOG_FLG_SYNC
	.no_dead_strip	_fifolog_write_gzip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function fifolog_write_gzip
lCPI0_0:
	.quad	-9                              ; 0xfffffffffffffff7
	.quad	9                               ; 0x9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fifolog_write_gzip:                    ; @fifolog_write_gzip
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #72]
Lloh0:
	adrp	x23, _Z_FINISH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Z_FINISH@GOTPAGEOFF]
	cbnz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	ldr	w9, [x20, #80]
	add	w8, w8, w9
	cmp	w8, w19
	b.le	LBB0_5
; %bb.2:
	ldr	w8, [x20, #64]
	ldr	w9, [x20, #56]
	add	w8, w9, w8
	cmp	w8, w19
	b.le	LBB0_16
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_17
; %bb.4:
Lloh2:
	adrp	x8, _Z_NO_FLUSH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_5:
	str	xzr, [x20, #72]
	ldr	w22, [x23]
	ldr	x8, [x20, #48]
Lloh5:
	adrp	x9, _FIFOLOG_PT_SYNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FIFOLOG_PT_SYNC@GOTPAGEOFF]
LBB0_6:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_7:
	mov	w21, #0
	ldp	x8, x9, [x20, #8]
	ldr	x0, [x9]
	str	x8, [x0]
	ldr	w8, [x20, #44]
	str	w8, [x0, #24]
Lloh7:
	adrp	x24, _Z_OK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _Z_OK@GOTPAGEOFF]
Lloh9:
	adrp	x25, _Z_BUF_ERROR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _Z_BUF_ERROR@GOTPAGEOFF]
Lloh11:
	adrp	x26, _Z_STREAM_END@GOTPAGE
Lloh12:
	ldr	x26, [x26, _Z_STREAM_END@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x22
	bl	_deflate
	ldr	w8, [x24]
	ldr	w9, [x25]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
	cmp	w0, w8
	cset	w0, eq
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_assert
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_fifolog_write_output
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #0
	csinv	w21, w21, wzr, ge
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	b	LBB0_8
LBB0_13:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	str	xzr, [x20, #8]
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_15
; %bb.14:
Lloh13:
	adrp	x8, _FIFOLOG_FLG_SYNC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FIFOLOG_FLG_SYNC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20, #40]
	orr	w8, w9, w8
	str	w8, [x20, #40]
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	ldur	q0, [x20, #24]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
	stur	q0, [x0, #8]
	str	w19, [x20]
	ldr	w19, [x24]
	bl	_deflateReset
	cmp	w19, w0
	cset	w0, eq
	bl	_assert
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh18:
	adrp	x8, _Z_SYNC_FLUSH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Z_SYNC_FLUSH@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	ldr	x8, [x20, #48]
Lloh21:
	adrp	x9, _FIFOLOG_PT_FLUSH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FIFOLOG_PT_FLUSH@GOTPAGEOFF]
	b	LBB0_6
LBB0_17:
	mov	w21, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_FIFOLOG_PT_SYNC,8,3            ; @FIFOLOG_PT_SYNC
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_FIFOLOG_PT_FLUSH,8,3           ; @FIFOLOG_PT_FLUSH
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_BUF_ERROR,4,2                ; @Z_BUF_ERROR
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_FIFOLOG_FLG_SYNC,4,2           ; @FIFOLOG_FLG_SYNC
	.no_dead_strip	_fifolog_write_gzip
.subsections_via_symbols
