	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _chm_parse_UTF8
__chm_parse_UTF8:                       ## @_chm_parse_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_CP_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movq	_CHM_MAX_PATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%esi, %esi
	movl	%r14d, %ecx
	movq	%rbx, %r8
	callq	_MultiByteToWideChar
	movb	$0, (%rbx,%rax)
	movslq	%r14d, %rcx
	shlq	$2, %rcx
	addq	%rcx, (%r15)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_CHM_MAX_PATHLEN,4,2            ## @CHM_MAX_PATHLEN
	.no_dead_strip	__chm_parse_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _chm_parse_UTF8
__chm_parse_UTF8:                       ; @_chm_parse_UTF8
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CP_UTF8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_UTF8@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x2, [x21]
Lloh3:
	adrp	x8, _CHM_MAX_PATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHM_MAX_PATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	w1, #0
	mov	x3, x20
	mov	x4, x19
	bl	_MultiByteToWideChar
	strb	wzr, [x19, x0]
	ldr	x8, [x21]
	add	x8, x8, w20, sxtw #2
	str	x8, [x21]
	cmp	x0, #0
	cset	w0, ne
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_CHM_MAX_PATHLEN,4,2            ; @CHM_MAX_PATHLEN
	.no_dead_strip	__chm_parse_UTF8
.subsections_via_symbols
