	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_cp437_to_utf8             ## -- Begin function _zip_cp437_to_utf8
	.p2align	4, 0x90
__zip_cp437_to_utf8:                    ## @_zip_cp437_to_utf8
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	xorl	%ebx, %ebx
	movq	__cp437_to_unicode@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%r13,%rbx,8), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	__zip_unicode_to_utf8_len
	addq	%rax, %r12
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %rdx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_8
## %bb.5:
	movl	$1, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	__cp437_to_unicode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-8(%rcx,%r13,8), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	(%rdx,%r14,8), %rsi
	movq	%rdx, %rbx
	movq	%r12, %rdx
	subq	%r14, %rdx
	callq	__zip_unicode_to_utf8
	movq	%rbx, %rdx
	cmpq	%r15, %r13
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	%rax, %r14
	incq	%r13
	cmpq	%r14, %r12
	ja	LBB0_6
LBB0_8:
	movq	$0, -8(%rdx,%r12,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.9:
	decq	%r12
	movq	%r12, (%rbx)
	jmp	LBB0_14
LBB0_10:
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.11:
	movq	$0, (%rdx)
	jmp	LBB0_13
LBB0_12:
	movq	_ZIP_ER_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	__zip_error_set
LBB0_13:
	xorl	%edx, %edx
LBB0_14:
	movq	%rdx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__cp437_to_unicode,8,3          ## @_cp437_to_unicode
	.comm	_ZIP_ER_MEMORY,4,2              ## @ZIP_ER_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_cp437_to_utf8             ; -- Begin function _zip_cp437_to_utf8
	.p2align	2
__zip_cp437_to_utf8:                    ; @_zip_cp437_to_utf8
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	cbz	x1, LBB0_10
; %bb.1:
	mov	x24, x3
	mov	x20, x1
	mov	x21, x0
	mov	x23, #0
	mov	w22, #1
Lloh0:
	adrp	x25, __cp437_to_unicode@GOTPAGE
Lloh1:
	ldr	x25, [x25, __cp437_to_unicode@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x21, x23, lsl #3]
	ldr	w0, [x8, x9, lsl #2]
	bl	__zip_unicode_to_utf8_len
	add	x22, x0, x22
	add	x23, x23, #1
	cmp	x20, x23
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x22
	bl	_malloc
	mov	x23, x0
	cbz	x0, LBB0_12
; %bb.4:
	cbz	x22, LBB0_8
; %bb.5:
	mov	x24, #0
	mov	x26, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x21, x26, lsl #3]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, x23, x24, lsl #3
	sub	x2, x22, x24
	bl	__zip_unicode_to_utf8
	add	x26, x26, #1
	cmp	x26, x20
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x0, x24
	cmp	x22, x24
	b.hi	LBB0_6
LBB0_8:
	sub	x8, x22, #1
	str	xzr, [x23, x8, lsl #3]
	cbz	x19, LBB0_13
; %bb.9:
	str	x8, [x19]
	b	LBB0_13
LBB0_10:
	mov	x23, #0
	cbz	x19, LBB0_13
; %bb.11:
	str	xzr, [x19]
	b	LBB0_13
LBB0_12:
Lloh2:
	adrp	x8, _ZIP_ER_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZIP_ER_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x24
	mov	w2, #0
	bl	__zip_error_set
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__cp437_to_unicode,8,3          ; @_cp437_to_unicode
	.comm	_ZIP_ER_MEMORY,4,2              ; @ZIP_ER_MEMORY
.subsections_via_symbols
