	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_WM_SIZING
_handle_WM_SIZING:                      ## @handle_WM_SIZING
	.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	(%rcx), %ebx
	movl	8(%rcx), %r13d
	subl	4(%rcx), %ebx
	movq	_g_xoff@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_g_yoff@GOTPCREL(%rip), %rax
	movl	12(%rcx), %ecx
	addl	%r12d, %ecx
	addl	(%rax), %ecx
	subl	%ecx, %r13d
	movq	_g_height@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_g_width@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_g_Wnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtr
	movq	_WS_HSCROLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%r15d, %r13d
	jl	LBB0_2
## %bb.1:
	addl	%r12d, %r12d
	subl	%r12d, %ebx
	cmpl	%r14d, %ebx
	jl	LBB0_2
## %bb.4:
	testl	%eax, %edx
	je	LBB0_6
## %bb.5:
	movq	_WS_VSCROLL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movq	_g_Wnd@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_SetWindowLongPtr
	movq	_g_xscroll@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_6
LBB0_2:
	testl	%eax, %edx
	jne	LBB0_6
## %bb.3:
	movq	_WS_VSCROLL@GOTPCREL(%rip), %rcx
	orl	%eax, %edx
	orl	(%rcx), %edx
	movq	_g_Wnd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SetWindowLongPtr
	movq	_g_xscroll@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_g_yscroll@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	(%rbx), %edi
	movq	_SB_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_SetScrollPos
	movl	(%rbx), %edi
	movq	_SB_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movl	$1, %ecx
	callq	_SetScrollPos
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_xoff,4,2                     ## @g_xoff
	.comm	_g_yoff,4,2                     ## @g_yoff
	.comm	_g_height,4,2                   ## @g_height
	.comm	_g_width,4,2                    ## @g_width
	.comm	_g_Wnd,4,2                      ## @g_Wnd
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_WS_HSCROLL,4,2                 ## @WS_HSCROLL
	.comm	_WS_VSCROLL,4,2                 ## @WS_VSCROLL
	.comm	_g_xscroll,8,3                  ## @g_xscroll
	.comm	_g_yscroll,8,3                  ## @g_yscroll
	.comm	_SB_HORZ,4,2                    ## @SB_HORZ
	.comm	_SB_VERT,4,2                    ## @SB_VERT
	.no_dead_strip	_handle_WM_SIZING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_WM_SIZING
_handle_WM_SIZING:                      ; @handle_WM_SIZING
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	w8, w9, [x3]
	sub	w8, w8, w9
Lloh0:
	adrp	x9, _g_xoff@GOTPAGE
Lloh1:
	ldr	x9, [x9, _g_xoff@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w21, w8, w9, lsl #1
	ldp	w8, w10, [x3, #8]
Lloh3:
	adrp	x11, _g_yoff@GOTPAGE
Lloh4:
	ldr	x11, [x11, _g_yoff@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	add	w9, w9, w10
	add	w9, w9, w11
	sub	w22, w8, w9
Lloh6:
	adrp	x8, _g_height@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_height@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _g_width@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_width@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x19, _g_Wnd@GOTPAGE
Lloh13:
	ldr	x19, [x19, _g_Wnd@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh14:
	adrp	x20, _GWL_STYLE@GOTPAGE
Lloh15:
	ldr	x20, [x20, _GWL_STYLE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_GetWindowLongPtr
Lloh16:
	adrp	x8, _WS_HSCROLL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WS_HSCROLL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w9, w8, w0
	cmp	w22, w23
	ccmp	w21, w24, #8, ge
	b.ge	LBB0_3
; %bb.1:
	cbnz	w9, LBB0_5
; %bb.2:
Lloh19:
	adrp	x9, _WS_VSCROLL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WS_VSCROLL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_SetWindowLongPtr
Lloh22:
	adrp	x8, _g_xscroll@GOTPAGE
Lloh23:
	ldr	x8, [x8, _g_xscroll@GOTPAGEOFF]
Lloh24:
	adrp	x20, _g_yscroll@GOTPAGE
Lloh25:
	ldr	x20, [x20, _g_yscroll@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
	str	xzr, [x20]
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _SB_HORZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SB_HORZ@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #1
	bl	_SetScrollPos
	ldr	w0, [x19]
Lloh30:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	w3, #1
	bl	_SetScrollPos
	b	LBB0_5
LBB0_3:
	cbz	w9, LBB0_5
; %bb.4:
Lloh33:
	adrp	x9, _WS_VSCROLL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _WS_VSCROLL@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_SetWindowLongPtr
Lloh36:
	adrp	x8, _g_xscroll@GOTPAGE
Lloh37:
	ldr	x8, [x8, _g_xscroll@GOTPAGEOFF]
Lloh38:
	str	xzr, [x8]
Lloh39:
	adrp	x8, _g_yscroll@GOTPAGE
Lloh40:
	ldr	x8, [x8, _g_yscroll@GOTPAGEOFF]
Lloh41:
	str	xzr, [x8]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_g_xoff,4,2                     ; @g_xoff
	.comm	_g_yoff,4,2                     ; @g_yoff
	.comm	_g_height,4,2                   ; @g_height
	.comm	_g_width,4,2                    ; @g_width
	.comm	_g_Wnd,4,2                      ; @g_Wnd
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_WS_HSCROLL,4,2                 ; @WS_HSCROLL
	.comm	_WS_VSCROLL,4,2                 ; @WS_VSCROLL
	.comm	_g_xscroll,8,3                  ; @g_xscroll
	.comm	_g_yscroll,8,3                  ; @g_yscroll
	.comm	_SB_HORZ,4,2                    ; @SB_HORZ
	.comm	_SB_VERT,4,2                    ; @SB_VERT
	.no_dead_strip	_handle_WM_SIZING
.subsections_via_symbols
