	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ArrangeCtrlPositions
_ArrangeCtrlPositions:                  ## @ArrangeCtrlPositions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	_pshHelp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_GetDlgItem
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdi
	callq	_GetWindowRect
	movq	_IDCANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_GetDlgItem
	leaq	-96(%rbp), %rsi
	movq	%rax, %rdi
	callq	_GetWindowRect
	movl	-72(%rbp), %ebx
	subl	-96(%rbp), %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_GetClientRect
	subl	%ebx, -72(%rbp)
	movq	_stc32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	movq	%rax, %r12
	testq	%rax, %rax
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_5
## %bb.4:
	leaq	-128(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_GetWindowRect
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	$2, %ecx
	callq	_MapWindowPoints
	movl	-72(%rbp), %r9d
	movl	-68(%rbp), %r8d
	movq	_SWP_NOMOVE@GOTPCREL(%rip), %rax
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SetWindowPos
	jmp	LBB0_6
LBB0_5:
	leaq	-128(%rbp), %rdi
	callq	_SetRectEmpty
LBB0_6:
	movq	_GW_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetWindow
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %rbx
	leaq	-96(%rbp), %r13
	movq	_GW_HWNDNEXT@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rdx
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SWP_NOSIZE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_SetWindowPos
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_GetWindow
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rbx
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_GetWindowRect
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	$2, %ecx
	callq	_MapWindowPoints
	testq	%r12, %r12
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rax
	movslq	-124(%rbp), %rcx
	subq	%rcx, %rax
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	-68(%rbp), %rcx
	addq	%rcx, %rax
	movq	%rax, -88(%rbp)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-80(%rbp), %rcx
	movslq	-128(%rbp), %rax
	cmpq	%rax, %rcx
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	-72(%rbp), %rdx
	addq	%rdx, %rcx
	movq	-112(%rbp), %rdx
	subq	%rax, %rdx
	addq	%rdx, %rcx
	movq	%rcx, -80(%rbp)
	jmp	LBB0_14
LBB0_16:
	movq	_GW_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_GetWindow
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	%rax, %rbx
	leaq	-96(%rbp), %r13
	movq	_GW_HWNDNEXT@GOTPCREL(%rip), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_GetWindow
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %rbx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_GetWindowRect
	xorl	%edi, %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %edx
	movl	$2, %ecx
	callq	_MapWindowPoints
	movdqu	-120(%rbp), %xmm0
	movdqu	-88(%rbp), %xmm1
	paddq	%xmm0, %xmm1
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SWP_NOSIZE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movdqu	%xmm1, -88(%rbp)
	movq	%xmm1, %rdx
	pextrq	$1, %xmm1, %rcx
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_SetWindowPos
	jmp	LBB0_20
LBB0_21:
	leaq	-72(%rbp), %rbx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_GetClientRect
	leaq	-96(%rbp), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_GetClientRect
	movq	%rbx, %rdi
	callq	_wine_dbgstr_rect
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_wine_dbgstr_rect
	movl	%eax, %ebx
	leaq	-128(%rbp), %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_TRACE
	testq	%r12, %r12
	je	LBB0_25
## %bb.22:
	movslq	-124(%rbp), %rax
	subq	-120(%rbp), %rax
	movslq	-68(%rbp), %rcx
	cmpq	%rcx, %rax
	movl	-96(%rbp), %ebx
	movl	-92(%rbp), %r15d
	cmovgel	%ecx, %eax
	subl	%eax, %r15d
	movslq	-72(%rbp), %rax
	movslq	-128(%rbp), %rcx
	subq	-112(%rbp), %rcx
	cmpq	%rax, %rcx
	jge	LBB0_24
## %bb.23:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%ecx, %eax
	subl	%eax, %ebx
	jmp	LBB0_26
LBB0_25:
	movl	-96(%rbp), %ebx
	subl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_24:
	subl	%eax, %ebx
LBB0_26:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_GetWindowRect
	addl	-68(%rbp), %r15d
	subl	-64(%rbp), %r15d
	addl	-72(%rbp), %ebx
	subl	-56(%rbp), %ebx
	movq	_SWP_NOMOVE@GOTPCREL(%rip), %rax
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_SetWindowPos
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pshHelp,4,2                    ## @pshHelp
	.comm	_IDCANCEL,4,2                   ## @IDCANCEL
	.comm	_stc32,4,2                      ## @stc32
	.comm	_SWP_NOMOVE,4,2                 ## @SWP_NOMOVE
	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.comm	_GW_CHILD,4,2                   ## @GW_CHILD
	.comm	_SWP_NOSIZE,4,2                 ## @SWP_NOSIZE
	.comm	_GW_HWNDNEXT,4,2                ## @GW_HWNDNEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parent %s child %s stc32 %s\n"

	.no_dead_strip	_ArrangeCtrlPositions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ArrangeCtrlPositions
_ArrangeCtrlPositions:                  ; @ArrangeCtrlPositions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	cbz	x2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _pshHelp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pshHelp@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	add	x1, sp, #56
	bl	_GetWindowRect
Lloh3:
	adrp	x8, _IDCANCEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDCANCEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	add	x1, sp, #32
	bl	_GetWindowRect
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #32]
	sub	w25, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	add	x1, sp, #56
	mov	x0, x19
	bl	_GetClientRect
	ldr	w8, [sp, #56]
	sub	w8, w8, w25
	str	w8, [sp, #56]
Lloh6:
	adrp	x8, _stc32@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stc32@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GetDlgItem
	mov	x21, x0
Lloh9:
	adrp	x23, _SWP_NOZORDER@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SWP_NOZORDER@GOTPAGEOFF]
Lloh11:
	adrp	x24, _SWP_NOMOVE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _SWP_NOMOVE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	add	x1, sp, #8
	mov	x0, x21
	bl	_GetWindowRect
	add	x2, sp, #8
	mov	w0, #0
	mov	x1, x20
	mov	w3, #2
	bl	_MapWindowPoints
	ldp	w5, w4, [sp, #56]
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w6, w9, w8
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_SetWindowPos
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	bl	_SetRectEmpty
LBB0_6:
Lloh13:
	adrp	x28, _GW_CHILD@GOTPAGE
Lloh14:
	ldr	x28, [x28, _GW_CHILD@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x20
	bl	_GetWindow
Lloh15:
	adrp	x26, _GW_HWNDNEXT@GOTPAGE
Lloh16:
	ldr	x26, [x26, _GW_HWNDNEXT@GOTPAGEOFF]
Lloh17:
	adrp	x27, _SWP_NOSIZE@GOTPAGE
Lloh18:
	ldr	x27, [x27, _SWP_NOSIZE@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.7:
	mov	x22, x0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x2, [sp, #40]
	ldr	w8, [x27]
	ldr	w9, [x23]
	orr	w6, w9, w8
	mov	x0, x22
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_SetWindowPos
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_GetWindow
	mov	x22, x0
	cbz	x0, LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, x21
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #32
	mov	x0, x22
	bl	_GetWindowRect
	add	x2, sp, #32
	mov	w0, #0
	mov	x1, x20
	mov	w3, #2
	bl	_MapWindowPoints
	cbz	x21, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #40]
	ldrsw	x9, [sp, #12]
	subs	x8, x8, x9
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x9, [sp, #60]
	add	x8, x8, x9
	str	x8, [sp, #40]
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x3, [sp, #48]
	ldrsw	x8, [sp, #8]
	cmp	x3, x8
	b.lt	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x9, [sp, #56]
	add	x9, x3, x9
	ldr	x10, [sp, #24]
	sub	x8, x10, x8
	add	x3, x8, x9
	str	x3, [sp, #48]
	b	LBB0_8
LBB0_16:
	ldr	w1, [x28]
	mov	x0, x19
	bl	_GetWindow
	cbz	x0, LBB0_21
; %bb.17:
	mov	x22, x0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_GetWindow
	mov	x22, x0
	cbz	x0, LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, x20
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x1, sp, #32
	mov	x0, x22
	bl	_GetWindowRect
	add	x2, sp, #32
	mov	w0, #0
	mov	x1, x19
	mov	w3, #2
	bl	_MapWindowPoints
	ldur	q0, [sp, #16]
	ldur	q1, [sp, #40]
	add.2d	v0, v1, v0
	stur	q0, [sp, #40]
	ldr	w8, [x27]
	ldr	w9, [x23]
	orr	w6, w9, w8
	mov.d	x3, v0[1]
	fmov	x2, d0
	mov	x0, x22
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_SetWindowPos
	b	LBB0_18
LBB0_21:
	add	x1, sp, #56
	mov	x0, x19
	bl	_GetClientRect
	add	x1, sp, #32
	mov	x0, x20
	bl	_GetClientRect
	add	x0, sp, #56
	bl	_wine_dbgstr_rect
	mov	x20, x0
	add	x0, sp, #32
	bl	_wine_dbgstr_rect
	mov	x22, x0
	add	x0, sp, #8
	bl	_wine_dbgstr_rect
	mov	x3, x0
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_TRACE
	cbz	x21, LBB0_23
; %bb.22:
	ldpsw	x9, x8, [sp, #56]
	ldpsw	x11, x10, [sp, #8]
	ldp	x12, x13, [sp, #16]
	sub	x10, x10, x12
	cmp	x10, x8
	csel	w8, w10, w8, lt
	ldp	w12, w10, [sp, #32]
	sub	w20, w10, w8
	sub	w8, w12, w9
	sub	x10, x11, x13
	add	w11, w25, w10
	sub	w11, w12, w11
	cmp	x10, x9
	csel	w21, w8, w11, ge
	b	LBB0_24
LBB0_23:
	mov	w20, #0
	ldr	w8, [sp, #32]
	sub	w21, w8, w25
LBB0_24:
	add	x1, sp, #56
	mov	x0, x19
	bl	_GetWindowRect
	ldp	w9, w8, [sp, #56]
	ldr	w10, [sp, #64]
	ldr	w11, [sp, #72]
	add	w8, w8, w20
	sub	w4, w8, w10
	add	w8, w9, w21
	sub	w5, w8, w11
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w6, w9, w8
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_SetWindowPos
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_pshHelp,4,2                    ; @pshHelp
	.comm	_IDCANCEL,4,2                   ; @IDCANCEL
	.comm	_stc32,4,2                      ; @stc32
	.comm	_SWP_NOMOVE,4,2                 ; @SWP_NOMOVE
	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.comm	_GW_CHILD,4,2                   ; @GW_CHILD
	.comm	_SWP_NOSIZE,4,2                 ; @SWP_NOSIZE
	.comm	_GW_HWNDNEXT,4,2                ; @GW_HWNDNEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parent %s child %s stc32 %s\n"

	.no_dead_strip	_ArrangeCtrlPositions
.subsections_via_symbols
