	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function LoadUnicodeName
LCPI0_0:
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	2                               ## 0x2
	.byte	4                               ## 0x4
	.byte	6                               ## 0x6
	.byte	8                               ## 0x8
	.byte	10                              ## 0xa
	.byte	12                              ## 0xc
	.byte	14                              ## 0xe
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_LoadUnicodeName:                       ## @LoadUnicodeName
	.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
	movq	%rcx, %r13
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movq	_HPDF_LIMIT_MAX_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(%rbx,%rbx), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	incl	%ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HPDF_MemSet
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_HPDF_Stream_Seek
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_17
## %bb.1:
	leaq	-56(%rbp), %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_HPDF_Stream_Read
	cmpl	(%r12), %eax
	jne	LBB0_17
## %bb.2:
	movq	-56(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.3:
	decq	%rcx
	movq	%rcx, %rax
	shrq	%rax
	cmpq	$16, %rcx
	jae	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_5:
	leaq	1(%rax), %rdx
	cmpq	$32, %rcx
	jae	LBB0_10
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_10:
	movl	%edx, %ecx
	andl	$15, %ecx
	testq	%rcx, %rcx
	movl	$16, %esi
	cmovneq	%rcx, %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255,255,255,255,255]
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	1(%r14,%rdi,2), %xmm1
	movdqu	17(%r14,%rdi,2), %xmm2
	pand	%xmm0, %xmm2
	pand	%xmm0, %xmm1
	packuswb	%xmm2, %xmm1
	movdqu	%xmm1, (%r13,%rdi)
	addq	$16, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_11
## %bb.12:
	cmpl	$9, %esi
	jae	LBB0_7
## %bb.13:
	leaq	(%rcx,%rcx), %rsi
	jmp	LBB0_14
LBB0_7:
	movl	%edx, %esi
	andl	$7, %esi
	testq	%rsi, %rsi
	movl	$8, %edi
	cmovneq	%rsi, %rdi
	subq	%rdi, %rdx
	leaq	(%rdx,%rdx), %rsi
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = <0,2,4,6,8,10,12,14,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	1(%r14,%rcx,2), %xmm1
	pshufb	%xmm0, %xmm1
	movq	%xmm1, (%r13,%rcx)
	addq	$8, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_8
## %bb.9:
	movq	%rdx, %rcx
LBB0_14:
	subq	%rcx, %rax
	incq	%rax
	addq	%rcx, %r13
	leaq	(%rsi,%r14), %rcx
	incq	%rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rdx,2), %ebx
	movb	%bl, (%r13,%rdx)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_15
## %bb.16:
	movl	(%r12), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ## @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
	.no_dead_strip	_LoadUnicodeName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadUnicodeName
_LoadUnicodeName:                       ; @LoadUnicodeName
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGEOFF]
	stur	x2, [x29, #-48]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	bfi	w9, w8, #1, #31
	add	x10, x9, #15
	and	x12, x10, #0x1fffffff0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
	add	w2, w8, #1
	mov	x0, x3
	mov	w1, #0
	bl	_HPDF_MemSet
Lloh8:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_HPDF_Stream_Seek
Lloh11:
	adrp	x22, _HPDF_OK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _HPDF_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.1:
	sub	x2, x29, #48
	mov	x0, x21
	mov	x1, x20
	bl	_HPDF_Stream_Read
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.2:
	ldur	x8, [x29, #-48]
	cbz	x8, LBB0_16
; %bb.3:
	sub	x9, x8, #1
	lsr	x8, x9, #1
	cmp	x9, #16
	b.hs	LBB0_5
; %bb.4:
	mov	x9, #0
	mov	x10, #0
	b	LBB0_13
LBB0_5:
	add	x10, x8, #1
	cmp	x9, #128
	b.hs	LBB0_7
; %bb.6:
	mov	x9, #0
	b	LBB0_11
LBB0_7:
	ands	x9, x10, #0x3f
	mov	w11, #64
	csel	x11, x11, x9, eq
	sub	x9, x10, x11
	add	x12, x19, #32
	add	x13, x20, #65
	mov	x14, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x13, #64
	ld2.16b	{ v0, v1 }, [x15]
	sub	x15, x13, #32
	ld2.16b	{ v2, v3 }, [x15]
	mov	x15, x13
	ld2.16b	{ v4, v5 }, [x15], #32
	ld2.16b	{ v6, v7 }, [x15]
	stp	q0, q2, [x12, #-32]
	stp	q4, q6, [x12], #64
	sub	x14, x14, #64
	add	x13, x13, #128
	cmp	x11, x14
	b.ne	LBB0_8
; %bb.9:
	cmp	x11, #9
	b.hs	LBB0_11
; %bb.10:
	lsl	x10, x9, #1
	b	LBB0_13
LBB0_11:
	mov	x13, x9
	ands	x9, x10, #0x7
	mov	w11, #8
	csel	x14, x11, x9, eq
	add	x11, x19, x13
	add	x12, x20, x13, lsl #1
	sub	x9, x10, x14
	lsl	x10, x9, #1
	add	x12, x12, #1
	mvn	x15, x8
	add	x13, x14, x13
	add	x13, x15, x13
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ld2.8b	{ v0, v1 }, [x12], #16
	str	d0, [x11], #8
	adds	x13, x13, #8
	b.ne	LBB0_12
LBB0_13:
	sub	x8, x8, x9
	add	x8, x8, #1
	add	x9, x19, x9
	add	x10, x10, x20
	add	x10, x10, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #2
	strb	w11, [x9], #1
	subs	x8, x8, #1
	b.ne	LBB0_14
; %bb.15:
	ldr	w0, [x22]
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #32
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ; @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
	.no_dead_strip	_LoadUnicodeName
.subsections_via_symbols
