	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseCMAP_format4
_ParseCMAP_format4:                     ## @ParseCMAP_format4
	.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	%rsi, %r15
	movq	%rdi, %r14
	movslq	8(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	80(%r13), %edi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_HPDF_Stream_Seek
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_35
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	80(%r13), %edi
	movq	%r13, %rsi
	callq	_GetUINT16
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	80(%r13), %edi
	leaq	4(%r13), %rsi
	callq	_GetUINT16
	movq	%rax, %r15
	addq	%r12, %r15
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	movl	80(%r13), %edi
	leaq	8(%r13), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r15, %rbx
	cmpq	(%r12), %rbx
	jne	LBB0_36
## %bb.2:
	cmpl	$4, (%r13)
	jne	LBB0_37
## %bb.3:
	movl	80(%r13), %edi
	leaq	12(%r13), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_GetUINT16
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	80(%r13), %edi
	leaq	16(%r13), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	80(%r13), %edi
	leaq	20(%r13), %rsi
	callq	_GetUINT16
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	80(%r13), %edi
	leaq	24(%r13), %rsi
	callq	_GetUINT16
	addq	%r15, %rax
	cmpq	(%r12), %rax
	jne	LBB0_36
## %bb.4:
	movl	4(%r14), %edi
	movl	12(%r13), %esi
	addl	%esi, %esi
	callq	_HPDF_GetMem
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_36
## %bb.5:
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, (%rax)
	jl	LBB0_9
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	80(%r13), %edi
	movq	%r12, %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_35
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r12
	incl	%r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %r15d
	jl	LBB0_7
LBB0_9:
	movl	80(%r13), %edi
	leaq	28(%r13), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_35
## %bb.10:
	movl	4(%r14), %edi
	movl	12(%r13), %esi
	addl	%esi, %esi
	callq	_HPDF_GetMem
	movq	%rax, 64(%r13)
	testq	%rax, %rax
	je	LBB0_36
## %bb.11:
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	cmpl	$2, %esi
	jl	LBB0_15
## %bb.12:
	xorl	%r15d, %r15d
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	80(%r13), %edi
	movq	%r12, %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_35
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$4, %r12
	incl	%r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	cmpl	%eax, %r15d
	jl	LBB0_13
LBB0_15:
	movl	4(%r14), %edi
	addl	%esi, %esi
	callq	_HPDF_GetMem
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_36
## %bb.16:
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	cmpl	$2, %esi
	jl	LBB0_20
## %bb.17:
	xorl	%r15d, %r15d
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	80(%r13), %edi
	movl	%r12d, %esi
	callq	_GetINT16
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_35
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incl	%r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	addl	$4, %r12d
	cmpl	%eax, %r15d
	jl	LBB0_18
LBB0_20:
	movl	4(%r14), %edi
	addl	%esi, %esi
	callq	_HPDF_GetMem
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	je	LBB0_36
## %bb.21:
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, (%rax)
	jl	LBB0_25
## %bb.22:
	xorl	%r15d, %r15d
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	80(%r13), %edi
	movq	%r12, %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_35
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	addq	$4, %r12
	incl	%r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %r15d
	jl	LBB0_23
LBB0_25:
	movl	80(%r13), %edi
	callq	_HPDF_Stream_Tell
	subq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	js	LBB0_36
## %bb.26:
	movslq	4(%r13), %rcx
	subq	%rax, %rcx
	movq	%rcx, %rsi
	shrq	$63, %rsi
	addq	%rcx, %rsi
	shrq	%rsi
	movl	%esi, 32(%r13)
	testl	%esi, %esi
	jle	LBB0_33
## %bb.27:
	movl	4(%r14), %edi
	shll	$2, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_HPDF_GetMem
	movq	%rax, 72(%r13)
	testq	%rax, %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	je	LBB0_36
## %bb.28:
	cmpl	$0, 32(%r13)
	jle	LBB0_34
## %bb.29:
	movq	%rax, %r15
	xorl	%r14d, %r14d
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	80(%r13), %edi
	movq	%r15, %rsi
	callq	_GetUINT16
	cmpq	(%r12), %rax
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	addq	$4, %r15
	incl	%r14d
	cmpl	32(%r13), %r14d
	jl	LBB0_30
	jmp	LBB0_34
LBB0_36:
	movl	(%r14), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
LBB0_37:
	movl	(%r14), %edi
	movq	_HPDF_TTF_INVALID_FOMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_33:
	movq	$0, 72(%r13)
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
LBB0_34:
	movq	(%r12), %rbx
LBB0_35:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	%rax, %rbx
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" ParseCMAP_format4\n"

	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ## @HPDF_TTF_INVALID_FOMAT
	.no_dead_strip	_ParseCMAP_format4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseCMAP_format4
_ParseCMAP_format4:                     ; @ParseCMAP_format4
	.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	x21, x1
	mov	x20, x0
	ldrsw	x19, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w0, [x19, #80]
Lloh2:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_HPDF_Stream_Seek
	mov	x23, x0
Lloh5:
	adrp	x25, _HPDF_OK@GOTPAGE
Lloh6:
	ldr	x25, [x25, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.1:
	ldr	w0, [x19, #80]
	mov	x1, x19
	bl	_GetUINT16
	add	x22, x0, x23
	ldr	w0, [x19, #80]
	add	x1, x19, #4
	bl	_GetUINT16
	add	x22, x22, x0
	ldr	w0, [x19, #80]
	add	x1, x19, #8
	bl	_GetUINT16
	ldr	x8, [x25]
	add	x23, x22, x0
	cmp	x23, x8
	b.ne	LBB0_32
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #4
	b.ne	LBB0_33
; %bb.3:
	ldr	w0, [x19, #80]
	add	x22, x19, #12
	mov	x1, x22
	bl	_GetUINT16
	add	x23, x0, x23
	ldr	w0, [x19, #80]
	add	x1, x19, #16
	bl	_GetUINT16
	add	x23, x23, x0
	ldr	w0, [x19, #80]
	add	x1, x19, #20
	bl	_GetUINT16
	add	x23, x23, x0
	ldr	w0, [x19, #80]
	add	x1, x19, #24
	bl	_GetUINT16
	ldr	x8, [x25]
	add	x9, x23, x0
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.4:
	ldr	w0, [x20, #4]
	ldr	w8, [x19, #12]
	lsl	w1, w8, #1
	bl	_HPDF_GetMem
	str	x0, [x19, #56]
	cbz	x0, LBB0_32
; %bb.5:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.6:
	mov	x24, x0
	mov	w26, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #80]
	mov	x1, x24
	bl	_GetUINT16
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #4
	add	w26, w26, #1
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w26, w8, asr #1
	b.lt	LBB0_7
LBB0_9:
	ldr	w0, [x19, #80]
	add	x1, x19, #28
	bl	_GetUINT16
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.10:
	ldr	w0, [x20, #4]
	ldr	w8, [x19, #12]
	lsl	w1, w8, #1
	bl	_HPDF_GetMem
	str	x0, [x19, #64]
	cbz	x0, LBB0_32
; %bb.11:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.12:
	mov	x24, x0
	mov	w26, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #80]
	mov	x1, x24
	bl	_GetUINT16
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #4
	add	w26, w26, #1
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w9, w8, lt
	cmp	w26, w9, asr #1
	b.lt	LBB0_13
LBB0_15:
	ldr	w0, [x20, #4]
	lsl	w1, w8, #1
	bl	_HPDF_GetMem
	str	x0, [x19, #48]
	cbz	x0, LBB0_32
; %bb.16:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_20
; %bb.17:
	mov	x24, x0
	mov	w26, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #80]
	mov	x1, x24
	bl	_GetINT16
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w26, w26, #1
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w24, w24, #4
	cmp	w26, w9, asr #1
	b.lt	LBB0_18
LBB0_20:
	ldr	w0, [x20, #4]
	lsl	w1, w8, #1
	bl	_HPDF_GetMem
	str	x0, [x19, #40]
	cbz	x0, LBB0_32
; %bb.21:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_25
; %bb.22:
	mov	x24, x0
	mov	w26, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #80]
	mov	x1, x24
	bl	_GetUINT16
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x24, x24, #4
	add	w26, w26, #1
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w26, w8, asr #1
	b.lt	LBB0_23
LBB0_25:
	ldr	w0, [x19, #80]
	bl	_HPDF_Stream_Tell
	subs	x8, x0, x21
	b.mi	LBB0_32
; %bb.26:
	ldrsw	x9, [x19, #4]
	sub	x8, x9, x8
	cmp	x8, #0
	cinc	x8, x8, lt
	lsr	x8, x8, #1
	str	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.27:
	ldr	w0, [x20, #4]
	lsl	w1, w8, #2
	bl	_HPDF_GetMem
	str	x0, [x19, #72]
	cbz	x0, LBB0_32
; %bb.28:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.29:
	mov	x21, x0
	mov	w20, #0
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #80]
	mov	x1, x21
	bl	_GetUINT16
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x21, x21, #4
	add	w20, w20, #1
	ldr	w8, [x19, #32]
	cmp	w20, w8
	b.lt	LBB0_30
	b	LBB0_37
LBB0_32:
	ldr	w0, [x20]
	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
	b	_HPDF_Error_GetCode
LBB0_33:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	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
	b	_HPDF_SetError
LBB0_34:
	mov	x23, x0
LBB0_35:
	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
LBB0_36:
	str	xzr, [x19, #72]
LBB0_37:
	ldr	x23, [x25]
	b	LBB0_35
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" ParseCMAP_format4\n"

	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ; @HPDF_TTF_INVALID_FOMAT
	.no_dead_strip	_ParseCMAP_format4
.subsections_via_symbols
