	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_string_new                ## -- Begin function _zip_string_new
	.p2align	4, 0x90
__zip_string_new:                       ## @_zip_string_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	%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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	_ZIP_FL_ENCODING_ALL@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	jae	LBB0_10
## %bb.3:
	movl	%esi, %ebx
	movq	%rdi, %r13
	movslq	%edx, %rax
	leaq	l_switch.table._zip_string_new(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r12d
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	leal	1(%rbx), %edi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movb	$0, (%rax,%rcx)
	movl	%ebx, 8(%r15)
	movq	_ZIP_ENCODING_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	cmpl	%eax, %r12d
	je	LBB0_12
## %bb.8:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	__zip_guess_encoding
	movq	_ZIP_ENCODING_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	callq	__zip_string_free
LBB0_10:
	movq	_ZIP_ER_INVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_4:
	movq	_ZIP_ER_MEMORY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	__zip_error_set
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_free
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_FL_ENCODING_ALL,4,2        ## @ZIP_FL_ENCODING_ALL
	.comm	_ZIP_ENCODING_UNKNOWN,4,2       ## @ZIP_ENCODING_UNKNOWN
	.comm	_ZIP_ENCODING_UTF8_KNOWN,4,2    ## @ZIP_ENCODING_UTF8_KNOWN
	.comm	_ZIP_ENCODING_CP437,4,2         ## @ZIP_ENCODING_CP437
	.comm	_ZIP_ER_INVAL,4,2               ## @ZIP_ER_INVAL
	.comm	_ZIP_ER_MEMORY,4,2              ## @ZIP_ER_MEMORY
	.comm	_ZIP_ENCODING_ERROR,8,3         ## @ZIP_ENCODING_ERROR
	.section	__DATA,__const
	.p2align	3                               ## @switch.table._zip_string_new
l_switch.table._zip_string_new:
	.quad	_ZIP_ENCODING_UTF8_KNOWN
	.quad	_ZIP_ENCODING_UNKNOWN
	.quad	_ZIP_ENCODING_CP437

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_string_new                ; -- Begin function _zip_string_new
	.p2align	2
__zip_string_new:                       ; @_zip_string_new
	.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	w1, LBB0_8
; %bb.1:
	mov	x19, x3
Lloh0:
	adrp	x8, _ZIP_FL_ENCODING_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZIP_FL_ENCODING_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w2
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_7
; %bb.2:
	mov	x21, x1
	mov	x23, x0
Lloh3:
	adrp	x9, l_switch.table._zip_string_new@PAGE
Lloh4:
	add	x9, x9, l_switch.table._zip_string_new@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w22, [x8]
	mov	w0, #32
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.3:
	add	w0, w21, #1
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_11
; %bb.4:
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x20]
	strb	wzr, [x8, w21, sxtw]
Lloh5:
	adrp	x8, _ZIP_ENCODING_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZIP_ENCODING_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w21, w8, [x20, #8]
	stp	xzr, xzr, [x20, #16]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	bl	__zip_guess_encoding
Lloh8:
	adrp	x8, _ZIP_ENCODING_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZIP_ENCODING_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x20
	bl	__zip_string_free
LBB0_7:
Lloh11:
	adrp	x8, _ZIP_ER_INVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZIP_ER_INVAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	__zip_error_set
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	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_10:
Lloh14:
	adrp	x8, _ZIP_ER_MEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZIP_ER_MEMORY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	__zip_error_set
	b	LBB0_9
LBB0_11:
	mov	x0, x20
	bl	_free
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_FL_ENCODING_ALL,4,2        ; @ZIP_FL_ENCODING_ALL
	.comm	_ZIP_ENCODING_UNKNOWN,4,2       ; @ZIP_ENCODING_UNKNOWN
	.comm	_ZIP_ENCODING_UTF8_KNOWN,4,2    ; @ZIP_ENCODING_UTF8_KNOWN
	.comm	_ZIP_ENCODING_CP437,4,2         ; @ZIP_ENCODING_CP437
	.comm	_ZIP_ER_INVAL,4,2               ; @ZIP_ER_INVAL
	.comm	_ZIP_ER_MEMORY,4,2              ; @ZIP_ER_MEMORY
	.comm	_ZIP_ENCODING_ERROR,8,3         ; @ZIP_ENCODING_ERROR
	.section	__DATA,__const
	.p2align	3                               ; @switch.table._zip_string_new
l_switch.table._zip_string_new:
	.quad	_ZIP_ENCODING_UTF8_KNOWN
	.quad	_ZIP_ENCODING_UNKNOWN
	.quad	_ZIP_ENCODING_CP437

.subsections_via_symbols
