	.file	"extr_filedlg.c_ArrangeCtrlPositions.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"parent %s child %s stc32 %s\n"
	.text
	.p2align 4
	.type	ArrangeCtrlPositions, @function
ArrangeCtrlPositions:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	jne	.L29
	lea	rax, 80[rsp]
	mov	DWORD PTR 12[rsp], 0
	lea	rbp, 48[rsp]
	mov	QWORD PTR [rsp], rax
.L2:
	lea	r14, 16[rsp]
	mov	rdi, r13
	mov	rsi, r14
	call	GetClientRect@PLT
	mov	esi, DWORD PTR stc32[rip]
	mov	rdi, r12
	mov	eax, DWORD PTR 12[rsp]
	sub	DWORD PTR 16[rsp], eax
	call	GetDlgItem@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L3
	mov	r15, QWORD PTR [rsp]
	mov	rdi, rax
	mov	rsi, r15
	call	GetWindowRect@PLT
	mov	ecx, 2
	mov	edx, r15d
	mov	rsi, r12
	xor	edi, edi
	call	MapWindowPoints@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	xor	ecx, ecx
	xor	edx, edx
	mov	eax, DWORD PTR SWP_NOMOVE[rip]
	or	eax, DWORD PTR SWP_NOZORDER[rip]
	xor	esi, esi
	mov	rdi, rbx
	push	rax
	.cfi_def_cfa_offset 192
	mov	r9d, DWORD PTR 32[rsp]
	mov	r8d, DWORD PTR 36[rsp]
	call	SetWindowPos@PLT
	pop	r9
	.cfi_def_cfa_offset 184
	pop	r10
	.cfi_def_cfa_offset 176
.L4:
	mov	esi, DWORD PTR GW_CHILD[rip]
	mov	rdi, r12
	call	GetWindow@PLT
	mov	r15, rax
	test	rax, rax
	je	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	rbx, r15
	je	.L8
	mov	rsi, rbp
	mov	rdi, r15
	call	GetWindowRect@PLT
	mov	edx, ebp
	mov	ecx, 2
	mov	rsi, r12
	xor	edi, edi
	call	MapWindowPoints@PLT
	mov	rdx, QWORD PTR 56[rsp]
	test	rbx, rbx
	je	.L10
	movsx	rax, DWORD PTR 84[rsp]
	cmp	rdx, rax
	jle	.L10
	movsx	rcx, DWORD PTR 20[rsp]
	add	rdx, rcx
	sub	rdx, rax
	mov	QWORD PTR 56[rsp], rdx
.L10:
	mov	rcx, QWORD PTR 64[rsp]
	movsx	rax, DWORD PTR 80[rsp]
	cmp	rcx, rax
	jl	.L11
	movsx	rsi, DWORD PTR 16[rsp]
	sub	rax, QWORD PTR 96[rsp]
	add	rcx, rsi
	sub	rcx, rax
	mov	QWORD PTR 64[rsp], rcx
.L11:
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	mov	eax, DWORD PTR SWP_NOSIZE[rip]
	xor	r8d, r8d
	mov	rdi, r15
	or	eax, DWORD PTR SWP_NOZORDER[rip]
	xor	r9d, r9d
	xor	esi, esi
	push	rax
	.cfi_def_cfa_offset 192
	call	SetWindowPos@PLT
	pop	rdi
	.cfi_def_cfa_offset 184
	pop	r8
	.cfi_def_cfa_offset 176
.L8:
	mov	esi, DWORD PTR GW_HWNDNEXT[rip]
	mov	rdi, r15
	call	GetWindow@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L5
.L12:
	mov	esi, DWORD PTR GW_CHILD[rip]
	mov	rdi, r13
	call	GetWindow@PLT
	mov	r15, rax
	test	rax, rax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	r12, r15
	je	.L15
	mov	rsi, rbp
	mov	rdi, r15
	call	GetWindowRect@PLT
	mov	ecx, 2
	mov	edx, ebp
	mov	rsi, r13
	xor	edi, edi
	call	MapWindowPoints@PLT
	mov	rdx, QWORD PTR 88[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	xor	esi, esi
	add	rdx, QWORD PTR 64[rsp]
	mov	rcx, QWORD PTR 104[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	add	rcx, QWORD PTR 72[rsp]
	mov	eax, DWORD PTR SWP_NOSIZE[rip]
	mov	QWORD PTR 64[rsp], rdx
	mov	rdi, r15
	or	eax, DWORD PTR SWP_NOZORDER[rip]
	mov	QWORD PTR 72[rsp], rcx
	push	rax
	.cfi_def_cfa_offset 192
	call	SetWindowPos@PLT
	pop	rcx
	.cfi_def_cfa_offset 184
	pop	rsi
	.cfi_def_cfa_offset 176
.L15:
	mov	esi, DWORD PTR GW_HWNDNEXT[rip]
	mov	rdi, r15
	call	GetWindow@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L6
.L7:
	mov	rsi, r14
	mov	rdi, r13
	call	GetClientRect@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	GetClientRect@PLT
	mov	rdi, QWORD PTR [rsp]
	call	wine_dbgstr_rect@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	wine_dbgstr_rect@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	wine_dbgstr_rect@PLT
	mov	ecx, r15d
	mov	edx, r12d
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	TRACE@PLT
	test	rbx, rbx
	je	.L30
	movsx	rdx, DWORD PTR 84[rsp]
	mov	rax, QWORD PTR 88[rsp]
	mov	ebx, DWORD PTR 52[rsp]
	movsx	rdi, DWORD PTR 20[rsp]
	mov	rsi, rdx
	sub	rdx, rax
	movsx	r8, DWORD PTR 16[rsp]
	add	eax, ebx
	sub	ebx, edi
	sub	eax, esi
	cmp	rdi, rdx
	mov	rsi, QWORD PTR 96[rsp]
	mov	edi, DWORD PTR 48[rsp]
	cmovg	ebx, eax
	movsx	rax, DWORD PTR 80[rsp]
	mov	ebp, edi
	mov	rcx, rax
	sub	rax, rsi
	sub	ebp, r8d
	cmp	r8, rax
	jg	.L31
.L19:
	mov	rsi, r14
	mov	rdi, r13
	call	GetWindowRect@PLT
	mov	r9d, DWORD PTR 16[rsp]
	add	ebx, DWORD PTR 20[rsp]
	xor	edx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	mov	eax, DWORD PTR SWP_NOMOVE[rip]
	xor	ecx, ecx
	xor	esi, esi
	or	eax, DWORD PTR SWP_NOZORDER[rip]
	add	r9d, ebp
	mov	r8d, ebx
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 192
	sub	r9d, DWORD PTR 48[rsp]
	sub	r8d, DWORD PTR 40[rsp]
	call	SetWindowPos@PLT
	pop	rax
	.cfi_def_cfa_offset 184
	pop	rdx
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L30:
	.cfi_restore_state
	mov	ebp, DWORD PTR 48[rsp]
	xor	ebx, ebx
	sub	ebp, DWORD PTR 12[rsp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR [rsp]
	call	SetRectEmpty@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	lea	ebp, [rdi+rsi]
	sub	ebp, ecx
	sub	ebp, DWORD PTR 12[rsp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, DWORD PTR pshHelp[rip]
	mov	rdi, r13
	lea	rbp, 48[rsp]
	call	GetDlgItem@PLT
	mov	rsi, rbp
	mov	rdi, rax
	call	GetWindowRect@PLT
	mov	esi, DWORD PTR IDCANCEL[rip]
	mov	rdi, r13
	call	GetDlgItem@PLT
	mov	rdi, rax
	lea	rax, 80[rsp]
	mov	rsi, rax
	mov	QWORD PTR [rsp], rax
	call	GetWindowRect@PLT
	mov	eax, DWORD PTR 48[rsp]
	sub	eax, DWORD PTR 80[rsp]
	mov	DWORD PTR 12[rsp], eax
	jmp	.L2
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ArrangeCtrlPositions, .-ArrangeCtrlPositions
	.comm	stc32,4,4
	.comm	pshHelp,4,4
	.comm	SWP_NOZORDER,4,4
	.comm	SWP_NOSIZE,4,4
	.comm	SWP_NOMOVE,4,4
	.comm	IDCANCEL,4,4
	.comm	GW_HWNDNEXT,4,4
	.comm	GW_CHILD,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_filedlg.c_ArrangeCtrlPositions.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"parent %s child %s stc32 %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ArrangeCtrlPositions, %function
ArrangeCtrlPositions:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r3, r2, #0
	sub	sp, sp, #100
	str	r3, [sp, #24]
	ldr	r3, .L33
	mov	r6, r0
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #92]
	mov	r3,#0
	bne	.L27
	add	r3, sp, #76
	add	r5, sp, #60
	str	r3, [sp, #28]
.L2:
	add	r1, sp, #44
	mov	r0, r8
	bl	GetClientRect
	ldr	r3, [sp, #44]
	ldr	r1, [sp, #24]
	ldr	r2, .L33+4
	sub	r3, r3, r1
	mov	r0, r6
	ldr	r1, [r2]
	str	r3, [sp, #44]
	bl	GetDlgItem
	subs	r4, r0, #0
	str	r4, [sp, #20]
	beq	.L3
	ldr	r7, [sp, #28]
	ldr	r9, .L33+8
	mov	r1, r7
	bl	GetWindowRect
	mov	r3, #2
	mov	r2, r7
	mov	r1, r6
	mov	r0, #0
	bl	MapWindowPoints
	mov	r3, #0
	ldr	r2, .L33+12
	ldr	r1, [r9]
	str	r2, [sp, #32]
	ldr	r2, [r2]
	ldr	r0, [sp, #48]
	ldr	ip, [sp, #44]
	orr	r2, r2, r1
	stm	sp, {r0, ip}
	str	r2, [sp, #8]
	mov	r1, r3
	mov	r2, r3
	mov	r0, r4
	bl	SetWindowPos
.L4:
	ldr	r3, .L33+16
	mov	r0, r6
	ldr	r1, [r3]
	bl	GetWindow
	subs	r4, r0, #0
	beq	.L12
	mov	r10, #0
	str	r8, [sp, #36]
	ldr	r7, .L33+20
	ldr	fp, .L33+24
	ldr	r8, [sp, #20]
.L5:
	cmp	r8, r4
	beq	.L8
	mov	r1, r5
	mov	r0, r4
	bl	GetWindowRect
	mov	r2, r5
	mov	r3, #2
	mov	r1, r6
	mov	r0, #0
	bl	MapWindowPoints
	cmp	r8, #0
	ldr	r2, [sp, #68]
	beq	.L10
	ldr	r3, [sp, #80]
	cmp	r2, r3
	ldrgt	r1, [sp, #48]
	addgt	r2, r2, r1
	subgt	r2, r2, r3
	strgt	r2, [sp, #68]
.L10:
	ldr	r3, [sp, #72]
	ldr	r1, [sp, #76]
	cmp	r3, r1
	blt	.L11
	ldr	r0, [sp, #44]
	ldr	ip, [sp, #88]
	add	r3, r3, r0
	sub	r1, r1, ip
	sub	r3, r3, r1
	str	r3, [sp, #72]
.L11:
	ldr	r0, [r9]
	ldr	r1, [fp]
	str	r10, [sp, #4]
	orr	r1, r1, r0
	str	r1, [sp, #8]
	mov	r0, r4
	mov	r1, #0
	str	r10, [sp]
	bl	SetWindowPos
.L8:
	mov	r0, r4
	ldr	r1, [r7]
	bl	GetWindow
	subs	r4, r0, #0
	bne	.L5
	ldr	r8, [sp, #36]
.L12:
	ldr	r3, .L33+16
	mov	r0, r8
	ldr	r1, [r3]
	bl	GetWindow
	subs	r4, r0, #0
	beq	.L7
	mov	r10, #0
	ldr	r7, .L33+20
	ldr	fp, .L33+24
.L6:
	cmp	r6, r4
	beq	.L15
	mov	r1, r5
	mov	r0, r4
	bl	GetWindowRect
	mov	r3, #2
	mov	r2, r5
	mov	r1, r8
	mov	r0, #0
	bl	MapWindowPoints
	ldr	r0, [sp, #68]
	ldr	r2, [sp, #84]
	ldr	r1, [fp]
	add	r2, r0, r2
	ldr	r0, [r9]
	ldr	ip, [sp, #72]
	ldr	r3, [sp, #88]
	orr	r1, r1, r0
	add	r3, ip, r3
	str	r1, [sp, #8]
	mov	r0, r4
	mov	r1, #0
	str	r10, [sp, #4]
	str	r10, [sp]
	str	r2, [sp, #68]
	str	r3, [sp, #72]
	bl	SetWindowPos
.L15:
	mov	r0, r4
	ldr	r1, [r7]
	bl	GetWindow
	subs	r4, r0, #0
	bne	.L6
.L7:
	add	r1, sp, #44
	mov	r0, r8
	bl	GetClientRect
	mov	r1, r5
	mov	r0, r6
	bl	GetClientRect
	add	r0, sp, #44
	bl	wine_dbgstr_rect
	mov	r4, r0
	mov	r0, r5
	bl	wine_dbgstr_rect
	mov	r5, r0
	ldr	r0, [sp, #28]
	bl	wine_dbgstr_rect
	mov	r2, r5
	mov	r3, r0
	mov	r1, r4
	ldr	r0, .L33+28
	bl	TRACE
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L31
	ldr	r2, [sp, #84]
	ldr	r0, [sp, #80]
	ldr	r3, [sp, #48]
	sub	r0, r0, r2
	ldr	r2, [sp, #64]
	cmp	r3, r0
	subgt	r3, r2, r0
	suble	r3, r2, r3
	str	r3, [sp, #20]
	ldr	r2, [sp, #88]
	ldr	r3, [sp, #76]
	ldr	r4, [sp, #44]
	sub	r3, r3, r2
	ldr	r1, [sp, #60]
	cmp	r4, r3
	subgt	r1, r1, r3
	ldrgt	r3, [sp, #24]
	suble	r4, r1, r4
	subgt	r4, r1, r3
.L19:
	add	r1, sp, #44
	mov	r0, r8
	bl	GetWindowRect
	mov	r3, #0
	ldr	r2, [sp, #56]
	ldr	r1, [sp, #44]
	ldr	ip, [sp, #52]
	ldr	r0, [sp, #32]
	sub	r1, r1, r2
	ldr	r2, [sp, #48]
	ldr	r0, [r0]
	ldr	lr, [r9]
	sub	r2, r2, ip
	ldr	ip, [sp, #20]
	orr	r0, r0, lr
	add	r2, r2, ip
	add	r1, r1, r4
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, r3
	mov	r2, r3
	mov	r0, r8
	bl	SetWindowPos
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #92]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	add	sp, sp, #100
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r0, [sp, #28]
	bl	SetRectEmpty
	ldr	r3, .L33+12
	ldr	r9, .L33+8
	str	r3, [sp, #32]
	b	.L4
.L31:
	ldr	r1, [sp, #60]
	ldr	r3, [sp, #24]
	sub	r4, r1, r3
	b	.L19
.L27:
	ldr	r3, .L33+32
	mov	r0, r1
	add	r5, sp, #60
	ldr	r1, [r3]
	bl	GetDlgItem
	mov	r1, r5
	bl	GetWindowRect
	ldr	r3, .L33+36
	mov	r0, r8
	ldr	r1, [r3]
	add	r3, sp, #76
	mov	r4, r3
	str	r3, [sp, #28]
	bl	GetDlgItem
	mov	r1, r4
	bl	GetWindowRect
	ldr	r3, [sp, #60]
	ldr	r2, [sp, #76]
	sub	r3, r3, r2
	str	r3, [sp, #24]
	b	.L2
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC1
	.word	stc32
	.word	SWP_NOZORDER
	.word	SWP_NOMOVE
	.word	GW_CHILD
	.word	GW_HWNDNEXT
	.word	SWP_NOSIZE
	.word	.LC0
	.word	pshHelp
	.word	IDCANCEL
	.size	ArrangeCtrlPositions, .-ArrangeCtrlPositions
	.comm	stc32,4,4
	.comm	pshHelp,4,4
	.comm	SWP_NOZORDER,4,4
	.comm	SWP_NOSIZE,4,4
	.comm	SWP_NOMOVE,4,4
	.comm	IDCANCEL,4,4
	.comm	GW_HWNDNEXT,4,4
	.comm	GW_CHILD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
