	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_string_get                ## -- Begin function _zip_string_get
	.p2align	4, 0x90
__zip_string_get:                       ## @_zip_string_get
	.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, %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	_ZIP_FL_ENC_RAW@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_14
## %bb.4:
	movq	%rcx, %r15
	movq	(%r12), %rsi
	movq	_ZIP_ENCODING_UNKNOWN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	__zip_guess_encoding
LBB0_6:
	movq	_ZIP_FL_ENC_STRICT@GOTPCREL(%rip), %rcx
	movq	(%r12), %rax
	testl	%ebx, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_ZIP_ENCODING_ASCII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_ZIP_ENCODING_UTF8_KNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_9
LBB0_8:
	movq	_ZIP_ENCODING_CP437@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_14:
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	movq	24(%r12), %rax
	movq	%rax, (%r14)
LBB0_16:
	movq	16(%r12), %rax
	jmp	LBB0_17
LBB0_1:
	leaq	__zip_string_get.empty(%rip), %rax
	testq	%r14, %r14
	je	LBB0_17
## %bb.2:
	movq	$0, (%r14)
	jmp	LBB0_17
LBB0_9:
	movq	8(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	16(%r12), %rdi
	movq	24(%r12), %rsi
	leaq	32(%r12), %rdx
	movq	%r15, %rcx
	callq	__zip_cp437_to_utf8
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	testq	%r14, %r14
	je	LBB0_17
## %bb.13:
	movq	32(%r12), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_17
LBB0_11:
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
__zip_string_get.empty:                 ## @_zip_string_get.empty
	.space	1

	.comm	_ZIP_FL_ENC_RAW,4,2             ## @ZIP_FL_ENC_RAW
	.comm	_ZIP_ENCODING_UNKNOWN,8,3       ## @ZIP_ENCODING_UNKNOWN
	.comm	_ZIP_FL_ENC_STRICT,4,2          ## @ZIP_FL_ENC_STRICT
	.comm	_ZIP_ENCODING_ASCII,8,3         ## @ZIP_ENCODING_ASCII
	.comm	_ZIP_ENCODING_UTF8_KNOWN,8,3    ## @ZIP_ENCODING_UTF8_KNOWN
	.comm	_ZIP_ENCODING_CP437,8,3         ## @ZIP_ENCODING_CP437
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_string_get                ; -- Begin function _zip_string_get
	.p2align	2
__zip_string_get:                       ; @_zip_string_get
	.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	x19, x1
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _ZIP_FL_ENC_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZIP_FL_ENC_RAW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_9
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x8, [x20, #24]
	str	x8, [x19]
LBB0_4:
	ldr	x0, [x20, #16]
	b	LBB0_8
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	str	xzr, [x19]
LBB0_7:
Lloh3:
	adrp	x0, __zip_string_get.empty@PAGE
Lloh4:
	add	x0, x0, __zip_string_get.empty@PAGEOFF
LBB0_8:
	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
LBB0_9:
	mov	x21, x3
	ldr	x1, [x20]
Lloh5:
	adrp	x8, _ZIP_ENCODING_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZIP_ENCODING_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	__zip_guess_encoding
LBB0_11:
Lloh8:
	adrp	x8, _ZIP_FL_ENC_STRICT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZIP_FL_ENC_STRICT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	ldr	x8, [x20]
	tst	w9, w22
	b.eq	LBB0_13
; %bb.12:
Lloh11:
	adrp	x9, _ZIP_ENCODING_ASCII@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ZIP_ENCODING_ASCII@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _ZIP_ENCODING_UTF8_KNOWN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ZIP_ENCODING_UTF8_KNOWN@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh17:
	adrp	x9, _ZIP_ENCODING_CP437@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ZIP_ENCODING_CP437@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, eq
	b.ne	LBB0_2
	b	LBB0_14
LBB0_13:
Lloh20:
	adrp	x9, _ZIP_ENCODING_CP437@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ZIP_ENCODING_CP437@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_14:
	ldr	x0, [x20, #8]
	cbnz	x0, LBB0_16
; %bb.15:
	ldp	x0, x1, [x20, #16]
	add	x2, x20, #32
	mov	x3, x21
	bl	__zip_cp437_to_utf8
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
LBB0_16:
	cbz	x19, LBB0_8
; %bb.17:
	ldr	x8, [x20, #32]
	str	x8, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
__zip_string_get.empty:                 ; @_zip_string_get.empty
	.space	1

	.comm	_ZIP_FL_ENC_RAW,4,2             ; @ZIP_FL_ENC_RAW
	.comm	_ZIP_ENCODING_UNKNOWN,8,3       ; @ZIP_ENCODING_UNKNOWN
	.comm	_ZIP_FL_ENC_STRICT,4,2          ; @ZIP_FL_ENC_STRICT
	.comm	_ZIP_ENCODING_ASCII,8,3         ; @ZIP_ENCODING_ASCII
	.comm	_ZIP_ENCODING_UTF8_KNOWN,8,3    ; @ZIP_ENCODING_UTF8_KNOWN
	.comm	_ZIP_ENCODING_CP437,8,3         ; @ZIP_ENCODING_CP437
.subsections_via_symbols
