	.file	"extr_dsm.c_test_imagelayout.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error [rc %d|cc %d] doing MSG_GET for DG_IMAGE/DAT_IMAGELAYOUT\n"
	.align 8
.LC1:
	.string	"ImageLayout [Left %x.%x|Top %x.%x|Right %x.%x|Bottom %x.%x|Document %d|Page %d|Frame %d]\n"
	.align 8
.LC2:
	.string	"Error [rc %d|cc %d] doing MSG_SET for DG_IMAGE/DAT_IMAGELAYOUT\n"
	.align 8
.LC3:
	.string	"ImageLayout after set [Left %x.%x|Top %x.%x|Right %x.%x|Bottom %x.%x|Document %d|Page %d|Frame %d]\n"
	.text
	.p2align 4
	.type	test_imagelayout, @function
test_imagelayout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR DAT_IMAGELAYOUT[rip]
	mov	edx, DWORD PTR DG_IMAGE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	r8d, DWORD PTR MSG_GET[rip]
	lea	r13, 16[rsp]
	lea	r14, 8[rsp]
	mov	r9, r13
	call	pDSM_Entry@PLT
	mov	rdi, rbp
	mov	rdx, r14
	mov	rsi, r12
	mov	rbx, rax
	call	get_condition_code@PLT
	xor	edi, edi
	cmp	QWORD PTR TWRC_SUCCESS[rip], rbx
	mov	rcx, QWORD PTR 8[rsp]
	jne	.L2
	xor	edi, edi
	cmp	QWORD PTR TWCC_SUCCESS[rip], rcx
	sete	dil
.L2:
	mov	rdx, rbx
	lea	rsi, .LC0[rip]
	call	ok@PLT
	cmp	QWORD PTR TWRC_SUCCESS[rip], rbx
	je	.L14
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[rsp]
	lea	rdi, .LC1[rip]
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR 28[rsp]
	push	rax
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 40[rsp]
	push	rax
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR 56[rsp]
	push	rax
	.cfi_def_cfa_offset 160
	mov	eax, DWORD PTR 60[rsp]
	push	rax
	.cfi_def_cfa_offset 168
	mov	eax, DWORD PTR 80[rsp]
	push	rax
	.cfi_def_cfa_offset 176
	mov	r9d, DWORD PTR 84[rsp]
	mov	r8d, DWORD PTR 96[rsp]
	mov	ecx, DWORD PTR 92[rsp]
	mov	edx, DWORD PTR 104[rsp]
	mov	esi, DWORD PTR 100[rsp]
	call	trace@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	xor	esi, esi
	mov	edx, 44
	mov	rdi, r13
	call	memset@PLT
	mov	r9, r13
	mov	rsi, r12
	mov	rdi, rbp
	mov	ecx, DWORD PTR DAT_IMAGELAYOUT[rip]
	mov	r8d, DWORD PTR MSG_SET[rip]
	mov	DWORD PTR 52[rsp], 1
	mov	edx, DWORD PTR DG_IMAGE[rip]
	mov	DWORD PTR 36[rsp], 2
	mov	DWORD PTR 44[rsp], 1
	mov	DWORD PTR 28[rsp], 2
	call	pDSM_Entry@PLT
	mov	rdi, rbp
	mov	rdx, r14
	mov	rsi, r12
	mov	rbx, rax
	call	get_condition_code@PLT
	xor	edi, edi
	cmp	QWORD PTR TWRC_SUCCESS[rip], rbx
	mov	rcx, QWORD PTR 8[rsp]
	jne	.L4
	xor	edi, edi
	cmp	QWORD PTR TWCC_SUCCESS[rip], rcx
	sete	dil
.L4:
	mov	rdx, rbx
	lea	rsi, .LC2[rip]
	call	ok@PLT
	cmp	QWORD PTR TWRC_SUCCESS[rip], rbx
	jne	.L1
	mov	ecx, DWORD PTR DAT_IMAGELAYOUT[rip]
	mov	r9, r13
	mov	rsi, r12
	mov	rdi, rbp
	mov	r8d, DWORD PTR MSG_GET[rip]
	mov	edx, DWORD PTR DG_IMAGE[rip]
	call	pDSM_Entry@PLT
	mov	rdi, rbp
	mov	rdx, r14
	mov	rsi, r12
	mov	rbx, rax
	call	get_condition_code@PLT
	xor	edi, edi
	cmp	QWORD PTR TWRC_SUCCESS[rip], rbx
	mov	rcx, QWORD PTR 8[rsp]
	jne	.L5
	xor	edi, edi
	cmp	QWORD PTR TWCC_SUCCESS[rip], rcx
	sete	dil
.L5:
	mov	rdx, rbx
	lea	rsi, .LC0[rip]
	call	ok@PLT
	cmp	QWORD PTR TWRC_SUCCESS[rip], rbx
	jne	.L1
	mov	eax, DWORD PTR 16[rsp]
	lea	rdi, .LC3[rip]
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR 28[rsp]
	push	rax
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 40[rsp]
	push	rax
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR 56[rsp]
	push	rax
	.cfi_def_cfa_offset 160
	mov	eax, DWORD PTR 60[rsp]
	push	rax
	.cfi_def_cfa_offset 168
	mov	eax, DWORD PTR 80[rsp]
	push	rax
	.cfi_def_cfa_offset 176
	mov	r9d, DWORD PTR 84[rsp]
	mov	r8d, DWORD PTR 96[rsp]
	mov	ecx, DWORD PTR 92[rsp]
	mov	edx, DWORD PTR 104[rsp]
	mov	esi, DWORD PTR 100[rsp]
	call	trace@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_imagelayout, .-test_imagelayout
	.comm	TWRC_SUCCESS,8,8
	.comm	TWCC_SUCCESS,8,8
	.comm	MSG_SET,4,4
	.comm	MSG_GET,4,4
	.comm	DG_IMAGE,4,4
	.comm	DAT_IMAGELAYOUT,4,4
	.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_dsm.c_test_imagelayout.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error [rc %d|cc %d] doing MSG_GET for DG_IMAGE/DAT_"
	.ascii	"IMAGELAYOUT\012\000"
	.align	2
.LC1:
	.ascii	"ImageLayout [Left %x.%x|Top %x.%x|Right %x.%x|Botto"
	.ascii	"m %x.%x|Document %d|Page %d|Frame %d]\012\000"
	.align	2
.LC2:
	.ascii	"Error [rc %d|cc %d] doing MSG_SET for DG_IMAGE/DAT_"
	.ascii	"IMAGELAYOUT\012\000"
	.align	2
.LC3:
	.ascii	"ImageLayout after set [Left %x.%x|Top %x.%x|Right %"
	.ascii	"x.%x|Bottom %x.%x|Document %d|Page %d|Frame %d]\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_imagelayout, %function
test_imagelayout:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L21
	sub	sp, sp, #92
	ldr	r3, [r10]
	add	ip, sp, #40
	ldr	r9, .L21+4
	ldr	r8, .L21+8
	str	ip, [sp, #4]
	ldr	ip, .L21+12
	str	r3, [sp]
	ldr	r2, [r8]
	ldr	r3, [r9]
	ldr	ip, [ip]
	str	ip, [sp, #84]
	mov	ip,#0
	mov	r5, r0
	mov	r6, r1
	bl	pDSM_Entry
	mov	r4, r0
	ldr	r7, .L21+16
	mov	r1, r6
	mov	r0, r5
	add	r2, sp, #36
	bl	get_condition_code
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L2
	ldr	r3, [sp, #36]
.L3:
	mov	r0, #0
.L4:
	mov	r2, r4
	ldr	r1, .L21+20
	bl	ok
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L19
.L1:
	ldr	r3, .L21+12
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L21+24
	ldr	r3, [sp, #36]
	ldr	r2, [r2]
	cmp	r3, r2
	moveq	r0, #1
	bne	.L3
	b	.L4
.L19:
	add	r2, sp, #40
	ldm	r2, {r2, r3, lr}
	ldr	ip, [sp, #56]
	ldr	r0, [sp, #52]
	ldr	r1, [sp, #64]
	str	r2, [sp, #28]
	str	r3, [sp, #24]
	ldr	r2, [sp, #60]
	ldr	r3, [sp, #72]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	ldr	r1, [sp, #76]
	ldr	r2, [sp, #80]
	str	r3, [sp]
	ldr	r0, .L21+28
	ldr	r3, [sp, #68]
	bl	trace
	mov	r2, #44
	mov	r1, #0
	add	r0, sp, #40
	bl	memset
	mov	fp, #1
	mov	ip, #2
	ldr	r3, .L21+32
	add	r2, sp, #40
	str	r2, [sp, #4]
	ldr	r2, [r3]
	mov	r1, r6
	ldr	r3, [r9]
	str	r2, [sp]
	mov	r0, r5
	ldr	r2, [r8]
	str	ip, [sp, #60]
	str	ip, [sp, #52]
	str	fp, [sp, #76]
	str	fp, [sp, #68]
	bl	pDSM_Entry
	mov	r4, r0
	mov	r1, r6
	mov	r0, r5
	add	r2, sp, #36
	bl	get_condition_code
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L6
	ldr	r3, [sp, #36]
.L7:
	mov	r0, #0
.L8:
	mov	r2, r4
	ldr	r1, .L21+36
	bl	ok
	ldr	r3, [r7]
	cmp	r3, r4
	bne	.L1
	ldr	r3, [r10]
	add	r2, sp, #40
	mov	r1, r6
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [r8]
	ldr	r3, [r9]
	mov	r0, r5
	bl	pDSM_Entry
	mov	r4, r0
	mov	r1, r6
	mov	r0, r5
	add	r2, sp, #36
	bl	get_condition_code
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L9
	ldr	r3, [sp, #36]
.L10:
	mov	r0, #0
.L11:
	mov	r2, r4
	ldr	r1, .L21+20
	bl	ok
	ldr	r3, [r7]
	cmp	r3, r4
	bne	.L1
	add	r2, sp, #40
	ldm	r2, {r2, r3, lr}
	ldr	r0, [sp, #52]
	ldr	r1, [sp, #64]
	ldr	ip, [sp, #56]
	str	r2, [sp, #28]
	str	r3, [sp, #24]
	ldr	r2, [sp, #60]
	ldr	r3, [sp, #72]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [sp, #80]
	ldr	r3, [sp, #68]
	ldr	r1, [sp, #76]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	ldr	r0, .L21+40
	bl	trace
	b	.L1
.L6:
	ldr	r2, .L21+24
	ldr	r3, [sp, #36]
	ldr	r2, [r2]
	cmp	r3, r2
	moveq	r0, fp
	bne	.L7
	b	.L8
.L9:
	ldr	r2, .L21+24
	ldr	r3, [sp, #36]
	ldr	r2, [r2]
	cmp	r3, r2
	moveq	r0, #1
	bne	.L10
	b	.L11
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	MSG_GET
	.word	DAT_IMAGELAYOUT
	.word	DG_IMAGE
	.word	.LC4
	.word	TWRC_SUCCESS
	.word	.LC0
	.word	TWCC_SUCCESS
	.word	.LC1
	.word	MSG_SET
	.word	.LC2
	.word	.LC3
	.size	test_imagelayout, .-test_imagelayout
	.comm	TWRC_SUCCESS,4,4
	.comm	TWCC_SUCCESS,4,4
	.comm	MSG_SET,4,4
	.comm	MSG_GET,4,4
	.comm	DG_IMAGE,4,4
	.comm	DAT_IMAGELAYOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
