	.file	"extr_font.c_load_ttf_name_id.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"name"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"name %u found platform %u lang %04x %s\n"
	.text
	.p2align 4
	.type	load_ttf_name_id, @function
load_ttf_name_id:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 12[rsp], edx
	call	GetSystemDefaultLangID@PLT
	mov	DWORD PTR 20[rsp], eax
	cmp	r12d, 11
	jbe	.L2
	mov	edi, DWORD PTR 8[rbx]
	call	GET_BE_WORD@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ebp, eax
	call	GET_BE_WORD@PLT
	cmp	eax, 1
	jne	.L2
	mov	edi, DWORD PTR [rbx]
	call	GET_BE_WORD@PLT
	mov	DWORD PTR 24[rsp], eax
	test	eax, eax
	jne	.L2
	test	ebp, ebp
	jle	.L2
	xor	r14d, r14d
	lea	r13, .LC0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	r14d, 1
	cmp	ebp, r14d
	je	.L2
.L5:
	lea	eax, 12[0+r14*8]
	mov	edx, 4
	mov	rsi, r13
	cdqe
	lea	r15, [rbx+rax*4]
	mov	edi, DWORD PTR 4[r15]
	call	memcmp@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR [r15]
	call	GET_BE_DWORD@PLT
	mov	ebp, eax
	cmp	r12d, eax
	jle	.L2
	lea	r13d, 8[rax]
	cmp	r12d, r13d
	jl	.L2
	cdqe
	lea	r14, [rbx+rax*4]
	mov	edi, DWORD PTR 4[r14]
	mov	QWORD PTR 40[rsp], r14
	call	GET_BE_WORD@PLT
	mov	edi, DWORD PTR [r14]
	mov	DWORD PTR 16[rsp], eax
	mov	r15d, eax
	call	GET_BE_WORD@PLT
	mov	r8d, eax
	mov	eax, r12d
	sub	eax, ebp
	cmp	r8d, eax
	jge	.L2
	mov	edi, DWORD PTR [r14]
	call	GET_BE_WORD@PLT
	add	eax, ebp
	mov	DWORD PTR 36[rsp], eax
	test	r15d, r15d
	jle	.L2
	movsx	r13, r13d
	add	ebp, 28
	lea	r15, [rbx+r13*4]
	cmp	ebp, r12d
	jg	.L2
	mov	eax, r12d
	sub	eax, DWORD PTR 36[rsp]
	mov	DWORD PTR 32[rsp], -1
	xor	r13d, r13d
	mov	DWORD PTR 28[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	add	r13d, 1
	cmp	DWORD PTR 16[rsp], r13d
	je	.L18
	movsx	rax, ebp
	add	ebp, 20
	lea	r15, [rbx+rax*4]
	cmp	ebp, r12d
	jg	.L2
.L8:
	mov	edi, DWORD PTR 8[r15]
	call	GET_BE_WORD@PLT
	cmp	eax, DWORD PTR 12[rsp]
	jne	.L9
	mov	edi, DWORD PTR 12[r15]
	call	GET_BE_WORD@PLT
	cmp	eax, DWORD PTR 28[rsp]
	jge	.L2
	mov	edi, DWORD PTR 16[r15]
	call	GET_BE_WORD@PLT
	mov	edi, DWORD PTR 12[r15]
	mov	r14d, eax
	call	GET_BE_WORD@PLT
	mov	ecx, DWORD PTR 28[rsp]
	sub	ecx, eax
	cmp	r14d, ecx
	jg	.L2
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, r15
	call	match_name_table_language@PLT
	cmp	eax, DWORD PTR 24[rsp]
	jle	.L9
	mov	DWORD PTR 32[rsp], r13d
	mov	DWORD PTR 24[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r12d, r12d
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR 24[rsp]
	test	eax, eax
	je	.L2
	movsx	rax, DWORD PTR 32[rsp]
	mov	rdx, QWORD PTR 40[rsp]
	lea	rax, [rax+rax*4]
	lea	rbp, 8[rdx+rax*4]
	mov	edi, DWORD PTR 12[rbp]
	call	GET_BE_WORD@PLT
	mov	rdi, rbp
	movsx	rdx, eax
	movsx	rax, DWORD PTR 36[rsp]
	add	rax, rdx
	lea	rsi, [rbx+rax*4]
	call	copy_name_table_string@PLT
	mov	rdi, rax
	mov	r12, rax
	call	debugstr_w@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	ebx, eax
	call	GET_BE_WORD@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r14d, eax
	call	GET_BE_WORD@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	r13d, eax
	call	GET_BE_WORD@PLT
	mov	r8d, ebx
	mov	ecx, r14d
	mov	edx, r13d
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	TRACE@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	load_ttf_name_id, .-load_ttf_name_id
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_font.c_load_ttf_name_id.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"name\000"
	.align	2
.LC1:
	.ascii	"name %u found platform %u lang %04x %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_ttf_name_id, %function
load_ttf_name_id:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r1
	sub	sp, sp, #44
	mov	r8, r0
	mov	r10, r2
	bl	GetSystemDefaultLangID
	cmp	r7, #11
	str	r0, [sp, #12]
	bls	.L2
	ldr	r0, [r8, #8]
	bl	GET_BE_WORD
	mov	r9, r0
	ldr	r0, [r8, #4]
	bl	GET_BE_WORD
	cmp	r0, #1
	bne	.L2
	ldr	r0, [r8]
	bl	GET_BE_WORD
	subs	r5, r0, #0
	bne	.L2
	cmp	r9, #0
	ble	.L2
	ldr	fp, .L19
	add	r6, r8, #48
	b	.L5
.L3:
	cmp	r9, r5
	add	r6, r6, #32
	beq	.L2
.L5:
	mov	r2, #4
	mov	r1, fp
	ldr	r0, [r6, #4]
	bl	memcmp
	cmp	r0, #0
	add	r5, r5, #1
	bne	.L3
	mov	r4, r0
	ldr	r0, [r6]
	bl	GET_BE_DWORD
	cmp	r7, r0
	mov	r6, r0
	ble	.L2
	add	r3, r0, #8
	cmp	r7, r3
	blt	.L2
	add	r3, r8, r0, lsl #2
	ldr	r0, [r3, #4]
	str	r3, [sp, #28]
	bl	GET_BE_WORD
	mov	r3, r0
	ldr	r0, [r8, r6, lsl #2]
	mov	r9, r3
	str	r3, [sp, #24]
	bl	GET_BE_WORD
	sub	r3, r7, r6
	cmp	r0, r3
	lsl	r5, r6, #2
	bge	.L2
	ldr	r0, [r8, r6, lsl #2]
	bl	GET_BE_WORD
	cmp	r9, #0
	add	r3, r6, r0
	str	r3, [sp, #32]
	ble	.L2
	add	r6, r6, #28
	add	r5, r5, #32
	cmp	r7, r6
	add	r5, r8, r5
	blt	.L2
	ldr	r3, [sp, #28]
	str	r8, [sp, #36]
	sub	r3, r3, r5
	add	fp, r3, #112
	mvn	r3, #0
	str	r3, [sp, #20]
	ldr	r3, [sp, #32]
	mov	r9, r4
	sub	r3, r7, r3
	ldr	r8, [sp, #24]
	str	r3, [sp, #16]
	b	.L8
.L9:
	add	r9, r9, #1
	cmp	r8, r9
	beq	.L18
	cmp	r7, r6
	add	r5, r5, fp
	blt	.L2
.L8:
	ldr	r0, [r5, #8]
	bl	GET_BE_WORD
	cmp	r0, r10
	add	r6, r6, #20
	bne	.L9
	ldr	r0, [r5, #12]
	bl	GET_BE_WORD
	ldr	r3, [sp, #16]
	cmp	r0, r3
	bge	.L2
	ldr	r0, [r5, #16]
	bl	GET_BE_WORD
	mov	r2, r0
	ldr	r0, [r5, #12]
	str	r2, [sp, #24]
	bl	GET_BE_WORD
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #24]
	sub	r3, r3, r0
	cmp	r2, r3
	bgt	.L2
	mov	r0, r5
	ldr	r1, [sp, #12]
	bl	match_name_table_language
	cmp	r0, r4
	ldr	r3, [sp, #20]
	movgt	r3, r9
	movgt	r4, r0
	str	r3, [sp, #20]
	b	.L9
.L2:
	mov	r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	cmp	r4, #0
	ldr	r8, [sp, #36]
	beq	.L2
	ldr	r3, [sp, #20]
	ldr	r7, [sp, #28]
	add	r5, r3, r3, lsl #2
	lsl	r5, r5, #2
	add	r5, r5, #8
	add	r6, r7, r5
	ldr	r0, [r6, #12]
	bl	GET_BE_WORD
	ldr	r3, [sp, #32]
	add	r1, r0, r3
	add	r1, r8, r1, lsl #2
	mov	r0, r6
	bl	copy_name_table_string
	mov	r4, r0
	ldr	r0, [r6, #8]
	bl	GET_BE_WORD
	mov	r1, r0
	ldr	r0, [r6, #4]
	mov	r6, r1
	bl	GET_BE_WORD
	mov	r2, r0
	ldr	r0, [r7, r5]
	mov	r5, r2
	bl	GET_BE_WORD
	mov	r7, r0
	mov	r0, r4
	bl	debugstr_w
	mov	r3, r7
	str	r0, [sp]
	mov	r2, r5
	mov	r1, r6
	ldr	r0, .L19+4
	bl	TRACE
	b	.L1
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC1
	.size	load_ttf_name_id, .-load_ttf_name_id
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
