	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WINHELP_LayoutMainWindow       ## -- Begin function WINHELP_LayoutMainWindow
	.p2align	4, 0x90
_WINHELP_LayoutMainWindow:              ## @WINHELP_LayoutMainWindow
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_CTL_ID_BUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_CTL_ID_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	-56(%rbp), %rsi
	callq	_GetClientRect
	movq	_HWND_TOP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-56(%rbp), %r9
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rcx
	movq	-40(%rbp), %r8
	subq	%rdx, %r8
	subq	%rcx, %r9
	movl	$0, (%rsp)
	movl	%r15d, %edi
	callq	_SetWindowPos
	leaq	-88(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetWindowRect
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	-88(%rbp), %rcx
	addq	-32(%rbp), %rcx
	subq	-64(%rbp), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movl	(%rbx), %esi
	movq	-56(%rbp), %r9
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %r8
	subq	%rdx, %r8
	subq	%rcx, %r9
	movl	$0, (%rsp)
	movl	%r14d, %edi
	callq	_SetWindowPos
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_ID_BUTTON,4,2              ## @CTL_ID_BUTTON
	.comm	_CTL_ID_TEXT,4,2                ## @CTL_ID_TEXT
	.comm	_HWND_TOP,4,2                   ## @HWND_TOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WINHELP_LayoutMainWindow       ; -- Begin function WINHELP_LayoutMainWindow
	.p2align	2
_WINHELP_LayoutMainWindow:              ; @WINHELP_LayoutMainWindow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CTL_ID_BUTTON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_ID_BUTTON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x21, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _CTL_ID_TEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_ID_TEXT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x19, x0
	ldr	w0, [x20]
	add	x1, sp, #32
	bl	_GetClientRect
Lloh6:
	adrp	x20, _HWND_TOP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _HWND_TOP@GOTPAGEOFF]
	ldr	w1, [x20]
	ldp	x8, x3, [sp, #48]
	ldp	x9, x2, [sp, #32]
	sub	x4, x8, x2
	sub	x5, x9, x3
	mov	x0, x21
	mov	w6, #0
	bl	_SetWindowPos
	mov	x1, sp
	mov	x0, x21
	bl	_GetWindowRect
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #56]
	ldr	x9, [sp]
	ldr	x10, [sp, #24]
	add	x8, x9, x8
	sub	x3, x8, x10
	b	LBB0_3
LBB0_2:
	mov	x3, #0
LBB0_3:
	ldr	w1, [x20]
	ldp	x2, x8, [sp, #40]
	ldr	x9, [sp, #32]
	sub	x4, x8, x2
	sub	x5, x9, x3
	mov	x0, x19
	mov	w6, #0
	bl	_SetWindowPos
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_ID_BUTTON,4,2              ; @CTL_ID_BUTTON
	.comm	_CTL_ID_TEXT,4,2                ; @CTL_ID_TEXT
	.comm	_HWND_TOP,4,2                   ; @HWND_TOP
.subsections_via_symbols
