	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_WM_SIZE
_handle_WM_SIZE:                        ## @handle_WM_SIZE
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	_SIZE_MINIMIZED@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_1
## %bb.12:
	movq	%r14, %rdx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DefWindowProc                  ## TAILCALL
LBB0_1:
	movl	%ebx, %edi
	callq	_LOWORD
	movq	_g_wnd_cwidth@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movl	%ebx, %edi
	callq	_HIWORD
	movq	_g_wnd_cheight@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movq	_g_wnd_clip@GOTPCREL(%rip), %rcx
	movups	%xmm0, (%rcx)
	movq	(%r15), %rdx
	movq	%rdx, 24(%rcx)
	movq	%rax, 16(%rcx)
	movq	_g_width@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rsi, %rcx
	movq	_g_height@GOTPCREL(%rip), %rdi
	subq	%rdx, %rcx
	jg	LBB0_3
## %bb.2:
	cmpq	(%rdi), %rax
	jge	LBB0_4
LBB0_3:
	movq	_g_Wnd@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SB_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_SetScrollRange
	movl	(%r13), %edi
	movq	_SB_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_height@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	subq	(%rbx), %rcx
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_SetScrollRange
	movq	_g_height@GOTPCREL(%rip), %rdi
	movq	(%r15), %rdx
	movq	(%r12), %rsi
LBB0_4:
	movq	_g_xscroll@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_g_yscroll@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	xorl	%r12d, %r12d
	movl	$0, %eax
	subq	%rdx, %rsi
	jle	LBB0_6
## %bb.5:
	movq	%rdi, %rbx
	movl	%r13d, %edi
	callq	_UI_MIN
	movq	_g_xscroll@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	_g_yscroll@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	%eax, (%rcx)
	movq	(%rdi), %rsi
	movq	_g_wnd_cheight@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rsi
	jle	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	callq	_UI_MIN
	movl	%eax, %r12d
	movq	_g_xscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movl	%r12d, (%rbx)
	subl	%eax, %r13d
	subl	%r12d, %r15d
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_mi_scroll
	movq	_SIZE_RESTORED@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_SIZE_MAXIMIZED@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
	callq	_mi_check_modifier
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MINIMIZED,8,3             ## @SIZE_MINIMIZED
	.comm	_g_wnd_cwidth,8,3               ## @g_wnd_cwidth
	.comm	_g_wnd_cheight,8,3              ## @g_wnd_cheight
	.comm	_g_wnd_clip,32,3                ## @g_wnd_clip
	.comm	_g_width,8,3                    ## @g_width
	.comm	_g_height,8,3                   ## @g_height
	.comm	_g_Wnd,4,2                      ## @g_Wnd
	.comm	_SB_HORZ,4,2                    ## @SB_HORZ
	.comm	_SB_VERT,4,2                    ## @SB_VERT
	.comm	_g_xscroll,4,2                  ## @g_xscroll
	.comm	_g_yscroll,4,2                  ## @g_yscroll
	.comm	_SIZE_RESTORED,8,3              ## @SIZE_RESTORED
	.comm	_SIZE_MAXIMIZED,8,3             ## @SIZE_MAXIMIZED
	.no_dead_strip	_handle_WM_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_WM_SIZE
_handle_WM_SIZE:                        ; @handle_WM_SIZE
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x19, x2
Lloh0:
	adrp	x8, _SIZE_MINIMIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_MINIMIZED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	x2, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DefWindowProc
LBB0_2:
	mov	x0, x20
	bl	_LOWORD
Lloh3:
	adrp	x23, _g_wnd_cwidth@GOTPAGE
Lloh4:
	ldr	x23, [x23, _g_wnd_cwidth@GOTPAGEOFF]
	str	x0, [x23]
	mov	x0, x20
	bl	_HIWORD
Lloh5:
	adrp	x21, _g_wnd_cheight@GOTPAGE
Lloh6:
	ldr	x21, [x21, _g_wnd_cheight@GOTPAGEOFF]
	str	x0, [x21]
Lloh7:
	adrp	x9, _g_wnd_clip@GOTPAGE
Lloh8:
	ldr	x9, [x9, _g_wnd_clip@GOTPAGEOFF]
	stp	xzr, xzr, [x9]
	ldr	x8, [x23]
	stp	x0, x8, [x9, #16]
Lloh9:
	adrp	x20, _g_width@GOTPAGE
Lloh10:
	ldr	x20, [x20, _g_width@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh11:
	adrp	x22, _g_height@GOTPAGE
Lloh12:
	ldr	x22, [x22, _g_height@GOTPAGEOFF]
	ldr	x10, [x22]
	subs	x3, x9, x8
	ccmp	x0, x10, #8, le
	b.ge	LBB0_4
; %bb.3:
Lloh13:
	adrp	x24, _g_Wnd@GOTPAGE
Lloh14:
	ldr	x24, [x24, _g_Wnd@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh15:
	adrp	x8, _SB_HORZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SB_HORZ@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w4, #1
	bl	_SetScrollRange
	ldr	w0, [x24]
Lloh18:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	x9, [x21]
	sub	x3, x8, x9
	mov	w2, #0
	mov	w4, #1
	bl	_SetScrollRange
	ldr	x8, [x23]
	ldr	x9, [x20]
LBB0_4:
Lloh21:
	adrp	x25, _g_xscroll@GOTPAGE
Lloh22:
	ldr	x25, [x25, _g_xscroll@GOTPAGEOFF]
	ldr	w20, [x25]
Lloh23:
	adrp	x24, _g_yscroll@GOTPAGE
Lloh24:
	ldr	x24, [x24, _g_yscroll@GOTPAGEOFF]
	ldr	w23, [x24]
	subs	x1, x9, x8
	b.le	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_UI_MIN
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	str	w0, [x25]
	ldr	x8, [x21]
	ldr	x9, [x22]
	subs	x1, x9, x8
	b.le	LBB0_9
; %bb.8:
	ldr	w0, [x24]
	bl	_UI_MIN
	mov	x8, x0
	ldr	w0, [x25]
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	str	w8, [x24]
	sub	w0, w20, w0
	sub	w1, w23, w8
	bl	_mi_scroll
Lloh25:
	adrp	x8, _SIZE_RESTORED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIZE_RESTORED@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_12
; %bb.11:
Lloh28:
	adrp	x8, _SIZE_MAXIMIZED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SIZE_MAXIMIZED@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_13
LBB0_12:
	bl	_mi_check_modifier
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MINIMIZED,8,3             ; @SIZE_MINIMIZED
	.comm	_g_wnd_cwidth,8,3               ; @g_wnd_cwidth
	.comm	_g_wnd_cheight,8,3              ; @g_wnd_cheight
	.comm	_g_wnd_clip,32,3                ; @g_wnd_clip
	.comm	_g_width,8,3                    ; @g_width
	.comm	_g_height,8,3                   ; @g_height
	.comm	_g_Wnd,4,2                      ; @g_Wnd
	.comm	_SB_HORZ,4,2                    ; @SB_HORZ
	.comm	_SB_VERT,4,2                    ; @SB_VERT
	.comm	_g_xscroll,4,2                  ; @g_xscroll
	.comm	_g_yscroll,4,2                  ; @g_yscroll
	.comm	_SIZE_RESTORED,8,3              ; @SIZE_RESTORED
	.comm	_SIZE_MAXIMIZED,8,3             ; @SIZE_MAXIMIZED
	.no_dead_strip	_handle_WM_SIZE
.subsections_via_symbols
