	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zip_source_deflate             ## -- Begin function zip_source_deflate
	.p2align	4, 0x90
_zip_source_deflate:                    ## @zip_source_deflate
	.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
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	%ecx, %r15d
	movq	%rsi, %r12
	movq	_ZIP_CM_DEFLATE@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%rdx, %rdi
	callq	_ZIP_CM_IS_DEFAULT
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movq	16(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 8(%r13)
	movq	_ZIP_CODEC_ENCODE@GOTPCREL(%rip), %rbx
	testl	%r15d, (%rbx)
	je	LBB0_12
## %bb.8:
	movq	_ZIP_AFL_TORRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zip_get_archive_flag
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_MAX_MEM_LEVEL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_ZIP_ER_INVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ZIP_ER_MEMORY@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	__zip_error_set
	jmp	LBB0_17
LBB0_9:
	movq	_TORRENT_MEM_LEVEL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_12:
	andl	(%rbx), %r15d
	jne	LBB0_13
## %bb.14:
	movq	_deflate_decompress@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_deflate_compress@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_zip_source_layered
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_deflate_free
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_CM_DEFLATE,8,3             ## @ZIP_CM_DEFLATE
	.comm	_ZIP_ER_INVAL,4,2               ## @ZIP_ER_INVAL
	.comm	_ZIP_ER_MEMORY,4,2              ## @ZIP_ER_MEMORY
	.comm	_ZIP_CODEC_ENCODE,4,2           ## @ZIP_CODEC_ENCODE
	.comm	_ZIP_AFL_TORRENT,4,2            ## @ZIP_AFL_TORRENT
	.comm	_TORRENT_MEM_LEVEL,4,2          ## @TORRENT_MEM_LEVEL
	.comm	_MAX_MEM_LEVEL,4,2              ## @MAX_MEM_LEVEL
	.comm	_deflate_compress,4,2           ## @deflate_compress
	.comm	_deflate_decompress,4,2         ## @deflate_decompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zip_source_deflate             ; -- Begin function zip_source_deflate
	.p2align	2
_zip_source_deflate:                    ; @zip_source_deflate
	.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	x19, x0
	cbz	x1, LBB0_8
; %bb.1:
	mov	x21, x3
	mov	x20, x1
Lloh0:
	adrp	x8, _ZIP_CM_DEFLATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZIP_CM_DEFLATE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x2
	bl	_ZIP_CM_IS_DEFAULT
	cbz	w0, LBB0_8
LBB0_3:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	ldr	x8, [x0, #16]
	stp	xzr, xzr, [x8]
	str	xzr, [x0, #8]
Lloh3:
	adrp	x23, _ZIP_CODEC_ENCODE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ZIP_CODEC_ENCODE@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _ZIP_AFL_TORRENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZIP_AFL_TORRENT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_zip_get_archive_flag
Lloh8:
	adrp	x8, _MAX_MEM_LEVEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_MEM_LEVEL@GOTPAGEOFF]
Lloh10:
	adrp	x9, _TORRENT_MEM_LEVEL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TORRENT_MEM_LEVEL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_6:
Lloh12:
	adrp	x8, _deflate_compress@GOTPAGE
Lloh13:
	ldr	x8, [x8, _deflate_compress@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh14:
	adrp	x10, _deflate_decompress@GOTPAGE
Lloh15:
	ldr	x10, [x10, _deflate_decompress@GOTPAGEOFF]
	tst	w9, w21
	csel	x8, x10, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_zip_source_layered
	cbnz	x0, LBB0_12
; %bb.7:
	mov	x0, x22
	bl	_deflate_free
	b	LBB0_11
LBB0_8:
Lloh16:
	adrp	x8, _ZIP_ER_INVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZIP_ER_INVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh18:
	adrp	x8, _ZIP_ER_MEMORY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZIP_ER_MEMORY@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	__zip_error_set
LBB0_11:
	mov	x0, #0
LBB0_12:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_CM_DEFLATE,8,3             ; @ZIP_CM_DEFLATE
	.comm	_ZIP_ER_INVAL,4,2               ; @ZIP_ER_INVAL
	.comm	_ZIP_ER_MEMORY,4,2              ; @ZIP_ER_MEMORY
	.comm	_ZIP_CODEC_ENCODE,4,2           ; @ZIP_CODEC_ENCODE
	.comm	_ZIP_AFL_TORRENT,4,2            ; @ZIP_AFL_TORRENT
	.comm	_TORRENT_MEM_LEVEL,4,2          ; @TORRENT_MEM_LEVEL
	.comm	_MAX_MEM_LEVEL,4,2              ; @MAX_MEM_LEVEL
	.comm	_deflate_compress,4,2           ; @deflate_compress
	.comm	_deflate_decompress,4,2         ; @deflate_decompress
.subsections_via_symbols
