	.file	"extr_font.c_get_font_fsselection.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to create a font\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"expected %u, got %u, error %d\n"
	.text
	.p2align 4
	.type	get_font_fsselection, @function
get_font_fsselection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	GetDC@PLT
	mov	rdi, r12
	mov	ebp, eax
	call	CreateFontIndirectA@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	rax, rax
	mov	r13, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	rsi, r13
	mov	edi, ebp
	call	SelectObject@PLT
	xor	edx, edx
	xor	esi, esi
	mov	edi, ebp
	mov	r15, rax
	call	GetOutlineTextMetricsA@PLT
	mov	r12d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, r12d
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	edi, ebp
	mov	esi, 8
	mov	DWORD PTR [rax], 8
	mov	rdx, rax
	mov	r12, rax
	call	GetOutlineTextMetricsA@PLT
	mov	r14d, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	edx, DWORD PTR [r12]
	xor	edi, edi
	mov	ecx, r14d
	mov	r8d, eax
	lea	rsi, .LC1[rip]
	cmp	edx, r14d
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	mov	r14d, DWORD PTR 4[r12]
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	rsi, r15
	mov	edi, ebp
	call	SelectObject@PLT
	mov	rdi, r13
	call	DeleteObject@PLT
	mov	esi, ebp
	xor	edi, edi
	call	ReleaseDC@PLT
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	.cfi_endproc
.LFE0:
	.size	get_font_fsselection, .-get_font_fsselection
	.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_get_font_fsselection.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to create a font\012\000"
	.align	2
.LC1:
	.ascii	"expected %u, got %u, error %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_font_fsselection, %function
get_font_fsselection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	sub	sp, sp, #12
	mov	r0, #0
	bl	GetDC
	mov	r4, r0
	mov	r0, r5
	bl	CreateFontIndirectA
	mov	r6, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L4
	bl	ok
	mov	r1, r6
	mov	r0, r4
	bl	SelectObject
	mov	r2, #0
	mov	r8, r0
	mov	r1, r2
	mov	r0, r4
	bl	GetOutlineTextMetricsA
	mov	r5, r0
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapAlloc
	mov	r1, #8
	mov	r5, r0
	mov	r2, r0
	str	r1, [r0]
	mov	r0, r4
	bl	GetOutlineTextMetricsA
	ldr	r9, [r5]
	mov	r7, r0
	bl	GetLastError
	str	r0, [sp]
	sub	r0, r9, r7
	clz	r0, r0
	mov	r3, r7
	mov	r2, r9
	ldr	r1, .L4+4
	lsr	r0, r0, #5
	bl	ok
	ldr	r7, [r5, #4]
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapFree
	mov	r1, r8
	mov	r0, r4
	bl	SelectObject
	mov	r0, r6
	bl	DeleteObject
	mov	r1, r4
	mov	r0, #0
	bl	ReleaseDC
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	get_font_fsselection, .-get_font_fsselection
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
