	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_GetCharBBox     ## -- Begin function HPDF_TTFontDef_GetCharBBox
	.p2align	4, 0x90
_HPDF_TTFontDef_GetCharBBox:            ## @HPDF_TTFontDef_GetCharBBox
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r13
	movslq	(%rsi), %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_HPDF_TTFontDef_GetGlyphid
	movq	%rax, %r12
	leaq	-80(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_HPDF_ToBox
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	cmpq	$1, (%r15)
	adcl	$1, %ebx
	movl	16(%r15), %edi
	movq	32(%r15), %rax
	movq	24(%r15), %rcx
	movslq	(%rcx,%r12,4), %rcx
	imulq	%rcx, %rbx
	leaq	(%rax,%rbx), %rsi
	addq	$2, %rsi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_Stream_Seek
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.5:
	movl	16(%r15), %edi
	leaq	-48(%rbp), %rsi
	movq	%rsi, %r14
	callq	_GetINT16
	imull	$1000, -48(%rbp), %ecx          ## imm = 0x3E8
	movq	%rax, %r12
	movl	%ecx, %eax
	cltd
	idivl	8(%r15)
	addq	%rbx, %r12
	cltq
	movq	%rax, -56(%rbp)
	movl	16(%r15), %edi
	movq	%r14, %rbx
	movq	%r14, %rsi
	callq	_GetINT16
	imull	$1000, -48(%rbp), %ecx          ## imm = 0x3E8
	movq	%r13, %r14
	movq	%rax, %r13
	movl	%ecx, %eax
	cltd
	idivl	8(%r15)
	addq	%r12, %r13
	cltq
	movq	%rax, -64(%rbp)
	movl	16(%r15), %edi
	movq	%rbx, %rsi
	movq	%rbx, %r12
	callq	_GetINT16
	imull	$1000, -48(%rbp), %ecx          ## imm = 0x3E8
	movq	%rax, %rbx
	movl	%ecx, %eax
	cltd
	idivl	8(%r15)
	addq	%r13, %rbx
	movq	%r14, %r13
	cltq
	movq	%rax, -72(%rbp)
	movl	16(%r15), %edi
	movq	%r12, %rsi
	callq	_GetINT16
	movq	%rax, %rcx
	imull	$1000, -48(%rbp), %eax          ## imm = 0x3E8
	addq	%rbx, %rcx
	cltd
	idivl	8(%r15)
	movslq	%eax, %rdi
	movq	%rdi, -80(%rbp)
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_2
## %bb.6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_HPDF_ToBox
	jmp	LBB0_7
LBB0_1:
	movq	%r14, %rdi
LBB0_2:
	callq	_HPDF_PTRACE
	movups	-80(%rbp), %xmm0
	movups	-64(%rbp), %xmm1
	movups	%xmm0, (%r13)
	movups	%xmm1, 16(%r13)
	jmp	LBB0_7
LBB0_4:
	movups	-80(%rbp), %xmm0
	movups	-64(%rbp), %xmm1
	movups	%xmm1, 16(%r13)
	movups	%xmm0, (%r13)
LBB0_7:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_GetCharBBox     ; -- Begin function HPDF_TTFontDef_GetCharBBox
	.p2align	2
_HPDF_TTFontDef_GetCharBBox:            ; @HPDF_TTFontDef_GetCharBBox
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x8
	ldrsw	x22, [x0]
	bl	_HPDF_TTFontDef_GetGlyphid
	mov	x21, x0
	add	x8, sp, #16
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_HPDF_ToBox
	cbz	x21, LBB0_4
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, eq
	ldp	x10, x9, [x22, #24]
	ldrsw	x10, [x10, x21, lsl #2]
	ldr	w0, [x22, #16]
	madd	x8, x10, x8, x9
	add	x1, x8, #2
Lloh0:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_HPDF_Stream_Seek
Lloh3:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	w0, [x22, #16]
	add	x1, sp, #8
	bl	_GetINT16
	add	x20, x0, x20
	ldr	w8, [sp, #8]
	mov	w23, #1000
	mul	w8, w8, w23
	ldr	w9, [x22, #8]
	sdiv	w8, w8, w9
	sxtw	x8, w8
	str	x8, [sp, #40]
	ldr	w0, [x22, #16]
	add	x1, sp, #8
	bl	_GetINT16
	add	x20, x20, x0
	ldr	w8, [sp, #8]
	mul	w8, w8, w23
	ldr	w9, [x22, #8]
	sdiv	w8, w8, w9
	sxtw	x8, w8
	str	x8, [sp, #32]
	ldr	w0, [x22, #16]
	add	x1, sp, #8
	bl	_GetINT16
	add	x20, x20, x0
	ldr	w8, [sp, #8]
	mul	w8, w8, w23
	ldr	w9, [x22, #8]
	sdiv	w8, w8, w9
	sxtw	x8, w8
	str	x8, [sp, #24]
	ldr	w0, [x22, #16]
	add	x1, sp, #8
	bl	_GetINT16
	mov	x8, x0
	ldr	w9, [sp, #8]
	mul	w9, w9, w23
	ldr	w10, [x22, #8]
	sdiv	w9, w9, w10
	sxtw	x0, w9
	str	x0, [sp, #16]
	ldr	x9, [x21]
	add	x8, x20, x8
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	mov	x8, x19
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_HPDF_ToBox
	b	LBB0_7
LBB0_4:
	mov	x0, x20
LBB0_5:
	bl	_HPDF_PTRACE
LBB0_6:
	ldp	q0, q1, [sp, #16]
	stp	q0, q1, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
.subsections_via_symbols
