	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_ttf_name_id
_load_ttf_name_id:                      ## @load_ttf_name_id
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_GetSystemDefaultLangID
	cmpl	$12, %ebx
	jb	LBB0_9
## %bb.1:
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	8(%r14), %edi
	callq	_GET_BE_WORD
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_GET_BE_WORD
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.2:
	movl	(%r14), %edi
	callq	_GET_BE_WORD
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.4:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	$12, %r12d
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %r12
	movl	4(%r14,%r12,4), %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r12
	decl	%r15d
	jne	LBB0_5
	jmp	LBB0_8
LBB0_10:
	movl	(%r14,%r12,4), %edi
	callq	_GET_BE_DWORD
                                        ## kill: def $eax killed $eax def $rax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %eax
	jge	LBB0_8
## %bb.11:
	leal	8(%rax), %ecx
	cmpl	%r15d, %ecx
	jg	LBB0_8
## %bb.14:
	movslq	%eax, %r12
	movl	4(%r14,%r12,4), %edi
	movq	%rax, %r13
	callq	_GET_BE_WORD
	movl	%eax, %ebx
	movl	(%r14,%r12,4), %edi
	callq	_GET_BE_WORD
	movl	%r15d, %ecx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	subl	%r13d, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.15:
	leaq	(%r14,%r12,4), %r12
	movl	(%r12), %edi
	callq	_GET_BE_WORD
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.16:
	movl	%ebx, %ecx
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	subl	%edx, %r15d
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	addl	$28, %eax
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	$20, %eax
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r13d, %ecx
	je	LBB0_25
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addl	$-20, %eax
	cltq
	leaq	(%r14,%rax,4), %r15
	movl	8(%r15), %edi
	callq	_GET_BE_WORD
	cmpl	%ebx, %eax
	jne	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r12d, %ebx
	movl	12(%r15), %edi
	callq	_GET_BE_WORD
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %eax
	jge	LBB0_8
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	16(%r15), %edi
	callq	_GET_BE_WORD
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	12(%r15), %edi
	callq	_GET_BE_WORD
	subl	%eax, %r12d
	cmpl	%r12d, -76(%rbp)                ## 4-byte Folded Reload
	jg	LBB0_8
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r15, %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_match_name_table_language
	movl	%ebx, %r12d
	cmpl	%ebx, %eax
	cmovgl	%eax, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovgl	%r13d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_25:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.26:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%rax,%rax,4), %r13
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%r13,4), %r15
	addq	$8, %r15
	movslq	-68(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r14,%rax,4), %rbx
	movl	20(%r12,%r13,4), %edi
	callq	_GET_BE_WORD
	cltq
	leaq	(%rbx,%rax,4), %rsi
	movq	%r15, %rdi
	callq	_copy_name_table_string
	movq	%rax, %rbx
	movl	16(%r12,%r13,4), %edi
	callq	_GET_BE_WORD
	movl	%eax, %r15d
	movl	12(%r12,%r13,4), %edi
	callq	_GET_BE_WORD
	movl	%eax, %r14d
	movl	8(%r12,%r13,4), %edi
	movq	%rbx, %r13
	callq	_GET_BE_WORD
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_TRACE
	jmp	LBB0_9
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movq	%r13, %rax
	addq	$56, %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	"name"

L_.str.1:                               ## @.str.1
	.asciz	"name %u found platform %u lang %04x %s\n"

	.no_dead_strip	_load_ttf_name_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_ttf_name_id
_load_ttf_name_id:                      ; @load_ttf_name_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_GetSystemDefaultLangID
	cmp	w21, #12
	b.lo	LBB0_20
; %bb.1:
	mov	x22, x0
	ldr	w0, [x19, #8]
	bl	_GET_BE_WORD
	mov	x24, x0
	ldr	w0, [x19, #4]
	bl	_GET_BE_WORD
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.2:
	ldr	w0, [x19]
	bl	_GET_BE_WORD
	mov	x23, #0
	cbnz	w0, LBB0_21
; %bb.3:
	cmp	w24, #1
	b.lt	LBB0_21
; %bb.4:
	mov	w25, #12
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x25, #32
	add	x26, x19, x8, asr #30
	ldr	w0, [x26, #4]
	mov	x1, x23
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w25
	add	x25, x8, #8
	subs	w24, w24, #1
	b.ne	LBB0_5
	b	LBB0_20
LBB0_7:
	ldr	w0, [x26]
	bl	_GET_BE_DWORD
	cmp	w0, w21
	b.ge	LBB0_20
; %bb.8:
	mov	x24, x0
	add	w8, w0, #8
	cmp	w8, w21
	b.gt	LBB0_20
; %bb.9:
	add	x25, x19, w24, sxtw #2
	ldr	w0, [x25, #4]
	bl	_GET_BE_WORD
	mov	x23, x0
	ldr	w0, [x25]
	bl	_GET_BE_WORD
	sub	w8, w21, w24
	cmp	w0, w8
	b.ge	LBB0_20
; %bb.10:
	ldr	w0, [x25]
	bl	_GET_BE_WORD
	cmp	w23, #1
	b.lt	LBB0_20
; %bb.11:
	str	x25, [sp, #16]                  ; 8-byte Folded Spill
	mov	w28, #0
	mov	w27, #0
	add	w8, w0, w24
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	sub	w8, w21, w8
	add	w26, w24, #28
	mov	w25, #-1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w27, w27, #1
	add	w26, w26, #20
	cmp	w23, w27
	b.eq	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w26, w21
	b.gt	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w26, #20
	add	x24, x19, w8, sxtw #2
	ldr	w0, [x24, #8]
	bl	_GET_BE_WORD
	cmp	w0, w20
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x24, #12]
	bl	_GET_BE_WORD
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w0, w8
	b.ge	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x24, #16]
	bl	_GET_BE_WORD
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	ldr	w0, [x24, #12]
	bl	_GET_BE_WORD
	ldp	w9, w8, [sp, #24]               ; 8-byte Folded Reload
	sub	w8, w8, w0
	cmp	w9, w8
	b.gt	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_match_name_table_language
	cmp	w0, w28
	csel	w28, w0, w28, gt
	csel	w25, w27, w25, gt
	b	LBB0_12
LBB0_18:
	cbz	w28, LBB0_20
; %bb.19:
	mov	w8, #20
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	smaddl	x21, w25, w8, x9
	add	x20, x21, #8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	x19, x19, w8, sxtw #2
	ldr	w0, [x21, #20]
	bl	_GET_BE_WORD
	add	x1, x19, w0, sxtw #2
	mov	x0, x20
	bl	_copy_name_table_string
	mov	x23, x0
	ldr	w0, [x21, #16]
	bl	_GET_BE_WORD
	mov	x19, x0
	ldr	w0, [x21, #12]
	bl	_GET_BE_WORD
	mov	x20, x0
	ldr	w0, [x21, #8]
	bl	_GET_BE_WORD
	mov	x21, x0
	mov	x0, x23
	bl	_debugstr_w
	mov	x4, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_TRACE
	b	LBB0_21
LBB0_20:
	mov	x23, #0
LBB0_21:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

l_.str.1:                               ; @.str.1
	.asciz	"name %u found platform %u lang %04x %s\n"

	.no_dead_strip	_load_ttf_name_id
.subsections_via_symbols
