	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_GetGlyphid      ## -- Begin function HPDF_TTFontDef_GetGlyphid
	.p2align	4, 0x90
_HPDF_TTFontDef_GetGlyphid:             ## @HPDF_TTFontDef_GetGlyphid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movslq	4(%rdi), %r15
	movq	(%r15), %r12
	movl	8(%r15), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	cmpq	$0, 16(%r15)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 8(%r15)
	je	LBB0_5
## %bb.3:
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	cltq
	incl	%ebx
	cmpl	$3, %ebx
	jae	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_1:
	movzbl	%r14b, %eax
	movq	24(%r15), %rcx
	movl	(%rcx,%rax,4), %r14d
	jmp	LBB0_17
LBB0_5:
	movl	(%r13), %edi
	movq	_HPDF_TTF_INVALID_CMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_17
LBB0_6:
	cmpq	$2, %rax
	movl	$1, %ecx
	cmovaeq	%rax, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%r12,%rbx,4)
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_7
## %bb.9:
	movq	%rcx, %rbx
LBB0_10:
	movq	32(%r15), %rcx
	movl	(%rcx,%rbx,4), %ecx
	cmpl	%r14d, %ecx
	jle	LBB0_12
## %bb.11:
	movslq	%r14d, %rdi
	jmp	LBB0_15
LBB0_12:
	movq	40(%r15), %rdx
	movl	(%rdx,%rbx,4), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.14:
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	subl	%ecx, %r14d
	addl	%esi, %r14d
	movslq	%r14d, %rdx
	movq	%rbx, %rcx
	subq	%rax, %rcx
	addq	%rdx, %rcx
	movq	56(%r15), %rdi
	cmpq	%rdi, %rcx
	jbe	LBB0_16
LBB0_15:
	callq	_HPDF_PTRACE
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_13:
	movq	48(%r15), %rax
	movslq	(%rax,%rbx,4), %rax
	movslq	%r14d, %rdi
	addq	%rax, %rdi
	callq	_HPDF_PTRACE
	movq	48(%r15), %rax
	addl	(%rax,%rbx,4), %r14d
	jmp	LBB0_17
LBB0_16:
	movq	24(%r15), %rax
	movq	48(%r15), %rdx
	movslq	(%rax,%rcx,4), %rax
	movslq	(%rdx,%rbx,4), %r14
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_HPDF_PTRACE
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFontDef_GetGlyphid\n"

	.comm	_HPDF_TTF_INVALID_CMAP,4,2      ## @HPDF_TTF_INVALID_CMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_GetGlyphid      ; -- Begin function HPDF_TTFontDef_GetGlyphid
	.p2align	2
_HPDF_TTFontDef_GetGlyphid:             ; @HPDF_TTFontDef_GetGlyphid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldrsw	x21, [x0, #4]
	ldr	x22, [x21]
	ldr	w23, [x21, #8]
	cmp	w23, #0
	cinc	w24, w23, lt
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_5
; %bb.2:
	sbfx	x9, x24, #1, #31
	add	w8, w23, #1
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.3:
	mov	x8, #0
	b	LBB0_10
LBB0_4:
	and	w8, w19, #0xff
	ldr	x9, [x21, #24]
	ldr	w19, [x9, w8, uxtw #2]
	b	LBB0_17
LBB0_5:
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _HPDF_TTF_INVALID_CMAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_TTF_INVALID_CMAP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	mov	w19, #0
	b	LBB0_17
LBB0_6:
	mov	x8, #0
	cmp	x9, #1
	csinc	x10, x9, xzr, hi
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x22, x8, lsl #2]
	cmp	w11, w19
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	x10, x8
	b.ne	LBB0_7
; %bb.9:
	mov	x8, x10
LBB0_10:
	ldr	x10, [x21, #32]
	ldr	w10, [x10, x8, lsl #2]
	cmp	w10, w19
	b.le	LBB0_12
; %bb.11:
	sxtw	x0, w19
	b	LBB0_14
LBB0_12:
	ldr	x11, [x21, #40]
	ldr	w11, [x11, x8, lsl #2]
	cbz	w11, LBB0_15
; %bb.13:
	cmp	w11, #0
	cinc	w11, w11, lt
	sub	w10, w19, w10
	add	w10, w10, w11, asr #1
	sub	x9, x8, x9
	add	x9, x9, w10, sxtw
	ldr	x0, [x21, #56]
	cmp	x9, x0
	b.ls	LBB0_16
LBB0_14:
	bl	_HPDF_PTRACE
	mov	w19, #0
	b	LBB0_17
LBB0_15:
	ldr	x9, [x21, #48]
	lsl	x20, x8, #2
	ldrsw	x8, [x9, x20]
	add	x0, x8, w19, sxtw
	bl	_HPDF_PTRACE
	ldr	x8, [x21, #48]
	ldr	w8, [x8, x20]
	add	w19, w8, w19
	b	LBB0_17
LBB0_16:
	ldr	x10, [x21, #24]
	ldrsw	x9, [x10, x9, lsl #2]
	ldr	x10, [x21, #48]
	ldrsw	x8, [x10, x8, lsl #2]
	add	x19, x8, x9
	mov	x0, x19
	bl	_HPDF_PTRACE
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFontDef_GetGlyphid\n"

	.comm	_HPDF_TTF_INVALID_CMAP,4,2      ; @HPDF_TTF_INVALID_CMAP
.subsections_via_symbols
