	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_zip_file                ## -- Begin function create_zip_file
	.p2align	4, 0x90
_create_zip_file:                       ## @create_zip_file
	.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	%rsi, %r15
	movq	%rdi, %r12
	movl	$1000, %ebx                     ## imm = 0x3E8
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rax), %ecx
	movq	%rbx, %rdx
	addq	%rbx, %rdx
	testl	%eax, %eax
	movslq	%ecx, %rbx
	cmovsq	%rdx, %rbx
	movq	%r14, %rdi
	callq	_free
	movq	_DEBUG_LVL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_lprintf
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_snprintf
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jbe	LBB0_6
## %bb.7:
	movq	_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_lprintf
	movq	%r14, %rdi
	callq	_system
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movl	%eax, %edi
	callq	_WEXITSTATUS
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_10
LBB0_1:
	movl	$1000, %ebx                     ## imm = 0x3E8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_10:
	movl	$1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create_zip_file: can not allocate %i bytes\n"

L_.str.1:                               ## @.str.1
	.asciz	"zip \"%s\" \"%s\""

	.comm	_DEBUG_LVL2,4,2                 ## @DEBUG_LVL2
L_.str.2:                               ## @.str.2
	.asciz	" extending buffer to %i bytes\n"

	.comm	_DEBUG,4,2                      ## @DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

L_.str.4:                               ## @.str.4
	.asciz	"create_zip_file: can not execute %s bytes\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_zip_file                ; -- Begin function create_zip_file
	.p2align	2
_create_zip_file:                       ; @create_zip_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x21, x0
	mov	w22, #1000
	mov	w0, #1000
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w22, #1000
Lloh0:
	adrp	x23, l_.str.1@PAGE
Lloh1:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh2:
	adrp	x25, _DEBUG_LVL2@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DEBUG_LVL2@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w0, #1
	sxtw	x8, w8
	lsl	x9, x22, #1
	cmp	w0, #0
	csel	x22, x8, x9, ge
	mov	x0, x19
	bl	_free
	ldr	w0, [x25]
	str	x22, [sp]
	mov	x1, x24
	bl	_lprintf
	mov	x0, x22
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	bl	_snprintf
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w0
	cmp	x22, x8
	b.ls	LBB0_2
; %bb.5:
Lloh6:
	adrp	x8, _DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_lprintf
	mov	x0, x19
	bl	_system
	tbnz	w0, #31, LBB0_7
; %bb.6:
	bl	_WEXITSTATUS
	cbz	x0, LBB0_10
LBB0_7:
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_printf
	mov	w0, #1
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create_zip_file: can not allocate %i bytes\n"

l_.str.1:                               ; @.str.1
	.asciz	"zip \"%s\" \"%s\""

	.comm	_DEBUG_LVL2,4,2                 ; @DEBUG_LVL2
l_.str.2:                               ; @.str.2
	.asciz	" extending buffer to %i bytes\n"

	.comm	_DEBUG,4,2                      ; @DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

l_.str.4:                               ; @.str.4
	.asciz	"create_zip_file: can not execute %s bytes\n"

.subsections_via_symbols
