	.file	"extr_pdf-font.c_select_truetype_cmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	select_truetype_cmap, @function
select_truetype_cmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR [rdi]
	test	esi, esi
	je	.L2
	test	eax, eax
	jle	.L15
	mov	rdx, QWORD PTR 8[rdi]
	lea	esi, -1[rax]
	mov	rcx, rdx
	lea	rsi, 8[rdx+rsi*8]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	add	rcx, 8
	cmp	rsi, rcx
	je	.L9
.L8:
	mov	r8, QWORD PTR [rcx]
	cmp	DWORD PTR [r8], 3
	jne	.L6
	mov	edi, DWORD PTR 4[r8]
	test	edi, edi
	jne	.L6
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r8
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	eax, eax
	jle	.L15
	mov	rdx, QWORD PTR 8[rdi]
.L9:
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	add	rbx, 1
	cmp	eax, ebx
	jle	.L11
.L29:
	mov	rdx, QWORD PTR 8[rbp]
.L12:
	mov	rdi, QWORD PTR [rdx+rbx*8]
	lea	r12, 0[0+rbx*8]
	cmp	DWORD PTR [rdi], 3
	jne	.L10
	cmp	DWORD PTR 4[rdi], 1
	jne	.L10
	call	FT_Get_CMap_Format@PLT
	cmp	eax, -1
	jne	.L26
	mov	eax, DWORD PTR 0[rbp]
	add	rbx, 1
	cmp	eax, ebx
	jg	.L29
	.p2align 4,,10
	.p2align 3
.L11:
	test	eax, eax
	jle	.L15
	xor	ebx, ebx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	add	rbx, 1
	cmp	eax, ebx
	jle	.L30
.L14:
	mov	rdx, QWORD PTR 8[rbp]
	lea	r12, 0[0+rbx*8]
	mov	rdi, QWORD PTR [rdx+rbx*8]
	cmp	DWORD PTR [rdi], 1
	jne	.L13
	mov	edx, DWORD PTR 4[rdi]
	test	edx, edx
	jne	.L13
	call	FT_Get_CMap_Format@PLT
	cmp	eax, -1
	jne	.L26
	mov	eax, DWORD PTR 0[rbp]
	add	rbx, 1
	cmp	eax, ebx
	jg	.L14
	.p2align 4,,10
	.p2align 3
.L30:
	test	eax, eax
	jle	.L15
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rax]
	call	FT_Get_CMap_Format@PLT
	cmp	eax, -1
	je	.L15
	mov	rax, QWORD PTR 8[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	mov	r8, QWORD PTR [rax]
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xor	r8d, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rax, r8
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	r8, QWORD PTR [rax+r12]
	pop	r12
	.cfi_def_cfa_offset 8
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	select_truetype_cmap, .-select_truetype_cmap
	.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_pdf-font.c_select_truetype_cmap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	select_truetype_cmap, %function
select_truetype_cmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	mov	r5, r0
	beq	.L2
	cmp	r3, #0
	ble	.L15
	ldr	r2, [r0, #4]
	mov	r1, #0
	sub	ip, r2, #4
	b	.L8
.L6:
	cmp	r1, r3
	beq	.L9
.L8:
	ldr	r0, [ip, #4]!
	add	r1, r1, #1
	ldr	lr, [r0]
	cmp	lr, #3
	bne	.L6
	ldr	lr, [r0, #4]
	cmp	lr, #0
	popeq	{r4, r5, r6, pc}
	cmp	r1, r3
	bne	.L8
.L9:
	mov	r4, #0
	b	.L12
.L10:
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L11
.L32:
	ldr	r2, [r5, #4]
.L12:
	ldr	r0, [r2, r4, lsl #2]
	lsl	r6, r4, #2
	ldr	r2, [r0]
	cmp	r2, #3
	bne	.L10
	ldr	r2, [r0, #4]
	cmp	r2, #1
	bne	.L10
	bl	FT_Get_CMap_Format
	cmn	r0, #1
	bne	.L29
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L32
.L11:
	cmp	r3, #0
	ble	.L15
	mov	r4, #0
	b	.L14
.L13:
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L33
.L14:
	ldr	r2, [r5, #4]
	lsl	r6, r4, #2
	ldr	r0, [r2, r4, lsl #2]
	ldr	r2, [r0]
	cmp	r2, #1
	bne	.L13
	ldr	r2, [r0, #4]
	cmp	r2, #0
	bne	.L13
	bl	FT_Get_CMap_Format
	cmn	r0, #1
	bne	.L29
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L14
.L33:
	cmp	r3, #0
	ble	.L15
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	bl	FT_Get_CMap_Format
	cmn	r0, #1
	beq	.L15
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r3, #0
	ldrgt	r2, [r0, #4]
	bgt	.L9
.L15:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L29:
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r6]
	pop	{r4, r5, r6, pc}
	.size	select_truetype_cmap, .-select_truetype_cmap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
