	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnSize
_OnSize:                                ## @OnSize
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_preview_isactive
	testq	%rax, %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_IDC_EDITOR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IDC_PREVIEW@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GetDlgItem
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_IDC_STATUSBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GetDlgItem
	movq	%rax, %rbx
	movq	_IDC_REBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GetDlgItem
	movq	%rax, %r15
	movq	_IDC_RULER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	movq	_WM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	%rbx, %rdi
	callq	_IsWindowVisible
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_GetClientRect
	movl	-52(%rbp), %r13d
	subl	-56(%rbp), %r13d
LBB0_6:
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	movq	_RB_GETBARHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	%eax, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_LOWORD
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_MoveWindow
	jmp	LBB0_9
LBB0_7:
	xorl	%r14d, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_9:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_GetClientRect
	movl	-48(%rbp), %ecx
	subl	%r14d, %r13d
	addl	-56(%rbp), %r13d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%r13d, %r8d
	callq	_MoveWindow
LBB0_11:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_redraw_ruler
	movq	_WM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_DefWindowProcW
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_PREVIEW,4,2                ## @IDC_PREVIEW
	.comm	_IDC_EDITOR,4,2                 ## @IDC_EDITOR
	.comm	_IDC_STATUSBAR,4,2              ## @IDC_STATUSBAR
	.comm	_IDC_REBAR,4,2                  ## @IDC_REBAR
	.comm	_IDC_RULER,4,2                  ## @IDC_RULER
	.comm	_WM_SIZE,4,2                    ## @WM_SIZE
	.comm	_RB_GETBARHEIGHT,4,2            ## @RB_GETBARHEIGHT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_OnSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnSize
_OnSize:                                ; @OnSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_preview_isactive
Lloh0:
	adrp	x8, _IDC_EDITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_EDITOR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IDC_PREVIEW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IDC_PREVIEW@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_GetDlgItem
	mov	x22, x0
Lloh4:
	adrp	x8, _IDC_STATUSBAR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IDC_STATUSBAR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_GetDlgItem
	mov	x25, x0
Lloh7:
	adrp	x8, _IDC_REBAR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDC_REBAR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_GetDlgItem
	mov	x24, x0
Lloh10:
	adrp	x8, _IDC_RULER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IDC_RULER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x23, x0
Lloh13:
	adrp	x26, _WM_SIZE@GOTPAGE
Lloh14:
	ldr	x26, [x26, _WM_SIZE@GOTPAGEOFF]
	cbz	x25, LBB0_3
; %bb.1:
	ldr	w1, [x26]
	mov	x0, x25
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	x0, x25
	bl	_IsWindowVisible
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, sp
	mov	x0, x25
	bl	_GetClientRect
	ldp	w8, w9, [sp]
	sub	w27, w9, w8
	b	LBB0_4
LBB0_3:
	mov	w27, #0
LBB0_4:
Lloh15:
	adrp	x28, _TRUE@GOTPAGE
Lloh16:
	ldr	x28, [x28, _TRUE@GOTPAGEOFF]
	cbz	x24, LBB0_8
; %bb.5:
Lloh17:
	adrp	x8, _RB_GETBARHEIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RB_GETBARHEIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x24
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	x25, x0
	mov	x0, x19
	bl	_LOWORD
	mov	x3, x0
	ldr	w5, [x28]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #0
	mov	x4, x25
	bl	_MoveWindow
	cbz	x22, LBB0_7
LBB0_6:
	mov	x1, sp
	mov	x0, x21
	bl	_GetClientRect
	ldr	w3, [sp, #8]
	ldr	w8, [sp]
	sub	w9, w27, w25
	add	w4, w9, w8
	ldr	w5, [x28]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x25
	bl	_MoveWindow
LBB0_7:
	mov	x0, x23
	bl	_redraw_ruler
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_DefWindowProcW
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	w25, #0
	cbnz	x22, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_PREVIEW,4,2                ; @IDC_PREVIEW
	.comm	_IDC_EDITOR,4,2                 ; @IDC_EDITOR
	.comm	_IDC_STATUSBAR,4,2              ; @IDC_STATUSBAR
	.comm	_IDC_REBAR,4,2                  ; @IDC_REBAR
	.comm	_IDC_RULER,4,2                  ; @IDC_RULER
	.comm	_WM_SIZE,4,2                    ; @WM_SIZE
	.comm	_RB_GETBARHEIGHT,4,2            ; @RB_GETBARHEIGHT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_OnSize
.subsections_via_symbols
