	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_GetCharWidth    ## -- Begin function HPDF_TTFontDef_GetCharWidth
	.p2align	4, 0x90
_HPDF_TTFontDef_GetCharWidth:           ## @HPDF_TTFontDef_GetCharWidth
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	4(%rdi), %r15
	callq	_HPDF_TTFontDef_GetGlyphid
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	(%r15), %rdi
	cmpq	%rdi, %rbx
	jae	LBB0_1
## %bb.2:
	movq	24(%r15), %rax
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %r12
	cmpl	$0, (%rax,%rbx,4)
	jne	LBB0_5
## %bb.3:
	movl	$1, (%rax,%rbx,4)
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CheckCompositGryph
LBB0_5:
	imull	$1000, %r12d, %eax              ## imm = 0x3E8
	cltd
	idivl	8(%r15)
	jmp	LBB0_6
LBB0_1:
	callq	_HPDF_PTRACE
	movl	(%r14), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFontDef_GetCharWidth\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_GetCharWidth    ; -- Begin function HPDF_TTFontDef_GetCharWidth
	.p2align	2
_HPDF_TTFontDef_GetCharWidth:           ; @HPDF_TTFontDef_GetCharWidth
	.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, x0
	ldrsw	x21, [x0, #4]
	bl	_HPDF_TTFontDef_GetGlyphid
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x0, [x21]
	cmp	x20, x0
	b.hs	LBB0_5
; %bb.1:
	ldp	x8, x9, [x21, #24]
	ldr	x22, [x9, x20, lsl #3]
	ldr	w9, [x8, x20, lsl #2]
	cbnz	w9, LBB0_4
; %bb.2:
	mov	w9, #1
	str	w9, [x8, x20, lsl #2]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_CheckCompositGryph
LBB0_4:
	mov	w8, #1000
	mul	w8, w22, w8
	ldr	w9, [x21, #8]
	sdiv	w0, w8, w9
	b	LBB0_6
LBB0_5:
	bl	_HPDF_PTRACE
	ldr	w0, [x19]
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFontDef_GetCharWidth\n"

.subsections_via_symbols
