	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_cdir_new                  ## -- Begin function _zip_cdir_new
	.p2align	4, 0x90
__zip_cdir_new:                         ## @_zip_cdir_new
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movslq	%r14d, %rax
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shrq	$2, %rcx
	cmpq	%rax, %rcx
	jb	LBB0_6
## %bb.5:
	leal	(,%r14,4), %edi
	callq	_malloc
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.8:
	movq	%rax, %rdi
	callq	__zip_entry_init
	cmpl	$1, %r14d
	je	LBB0_11
## %bb.9:
	movl	%r14d, %r15d
	decq	%r15
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	callq	__zip_entry_init
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	_ZIP_ER_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	__zip_error_set
	jmp	LBB0_12
LBB0_6:
	movq	_ZIP_ER_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	__zip_error_set
	movq	%r12, %rdi
	callq	_free
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_3:
	movq	$0, 32(%r12)
LBB0_11:
	movl	%r14d, 4(%r12)
	movl	%r14d, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	$0, 24(%r12)
LBB0_12:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_ER_MEMORY,4,2              ## @ZIP_ER_MEMORY
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_cdir_new                  ; -- Begin function _zip_cdir_new
	.p2align	2
__zip_cdir_new:                         ; @_zip_cdir_new
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	mov	w0, #40
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	cbz	w20, LBB0_10
; %bb.2:
	sxtw	x8, w20
Lloh0:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsr #2
	b.hi	LBB0_9
; %bb.3:
	lsl	w0, w20, #2
	bl	_malloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.4:
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.5:
	bl	__zip_entry_init
	cmp	w20, #1
	b.eq	LBB0_11
; %bb.6:
	mov	w8, w20
	sub	x21, x8, #1
	mov	w22, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x22
	bl	__zip_entry_init
	add	x22, x22, #4
	subs	x21, x21, #1
	b.ne	LBB0_7
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _ZIP_ER_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZIP_ER_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	__zip_error_set
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x8, _ZIP_ER_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZIP_ER_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	__zip_error_set
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_12
LBB0_10:
	str	xzr, [x19, #32]
LBB0_11:
	stp	w20, w20, [x19]
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_ER_MEMORY,4,2              ; @ZIP_ER_MEMORY
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
.subsections_via_symbols
