	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_UpdateSize
_LISTBOX_UpdateSize:                    ## @LISTBOX_UpdateSize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	leaq	-32(%rbp), %rsi
	callq	_GetClientRect
	movl	-32(%rbp), %edx
	subl	-28(%rbp), %edx
	movl	%edx, (%rbx)
	movl	-24(%rbp), %ecx
	subl	-20(%rbp), %ecx
	movl	%ecx, 4(%rbx)
	movl	8(%rbx), %eax
	movq	_LBS_NOINTEGRALHEIGHT@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_7
## %bb.1:
	movq	_LBS_OWNERDRAWVARIABLE@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_7
## %bb.2:
	movl	16(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_GetWindowRect
	movl	4(%rbx), %ecx
	movl	12(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.3:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%esi, %ecx
	jle	LBB0_6
## %bb.4:
	movl	%edx, %r14d
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	movl	16(%rbx), %esi
	movl	%ecx, %eax
	subl	%r14d, %eax
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_TRACE
	movl	16(%rbx), %edi
	movl	-48(%rbp), %r8d
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	movq	_SWP_NOACTIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	-36(%rbp), %eax
	addl	%r14d, %eax
	movl	-40(%rbp), %r9d
	subl	-44(%rbp), %r8d
	subl	%eax, %r9d
	movq	_SWP_NOMOVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SetWindowPos
	jmp	LBB0_9
LBB0_6:
	movl	(%rbx), %edx
LBB0_7:
	movl	16(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_LISTBOX_UpdatePage
	movq	%rbx, %rdi
	callq	_LISTBOX_UpdateScroll
	movl	20(%rbx), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_LISTBOX_GetItemRect
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:
	movl	16(%rbx), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	callq	_InvalidateRect
LBB0_9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_NOINTEGRALHEIGHT,4,2       ## @LBS_NOINTEGRALHEIGHT
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ## @LBS_OWNERDRAWVARIABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p]: changing height %d -> %d\n"

	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.comm	_SWP_NOACTIVATE,4,2             ## @SWP_NOACTIVATE
	.comm	_SWP_NOMOVE,4,2                 ## @SWP_NOMOVE
L_.str.1:                               ## @.str.1
	.asciz	"[%p]: new size = %d,%d\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_LISTBOX_UpdateSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_UpdateSize
_LISTBOX_UpdateSize:                    ; @LISTBOX_UpdateSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w0, [x0, #16]
	add	x1, sp, #16
	bl	_GetClientRect
	ldp	w8, w9, [sp, #16]
	sub	w2, w8, w9
	ldp	w8, w9, [sp, #24]
	sub	w3, w8, w9
	stp	w2, w3, [x19]
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _LBS_NOINTEGRALHEIGHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_NOINTEGRALHEIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x9, _LBS_OWNERDRAWVARIABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LBS_OWNERDRAWVARIABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x19, #16]
	mov	x1, sp
	bl	_GetWindowRect
	ldr	w8, [x19, #12]
	ldr	w3, [x19, #4]
	cbz	w8, LBB0_6
; %bb.3:
	cmp	w3, w8
	b.le	LBB0_6
; %bb.4:
	sdiv	w9, w3, w8
	msub	w20, w9, w8, w3
	cbz	w20, LBB0_6
; %bb.5:
	ldr	w1, [x19, #16]
	sub	w8, w3, w20
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x3
	mov	x3, x8
	bl	_TRACE
	ldr	w0, [x19, #16]
	ldp	w8, w9, [sp]
	sub	w4, w8, w9
	ldp	w8, w9, [sp, #8]
	add	w9, w20, w9
	sub	w5, w8, w9
Lloh8:
	adrp	x8, _SWP_NOZORDER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SWP_NOZORDER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SWP_NOACTIVATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SWP_NOACTIVATE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _SWP_NOMOVE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SWP_NOMOVE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w6, w8, w9
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_SetWindowPos
	b	LBB0_9
LBB0_6:
	ldr	w2, [x19]
LBB0_7:
	ldr	w1, [x19, #16]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	bl	_LISTBOX_UpdatePage
	mov	x0, x19
	bl	_LISTBOX_UpdateScroll
	ldr	w1, [x19, #20]
	add	x2, sp, #16
	mov	x0, x19
	bl	_LISTBOX_GetItemRect
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	add	x1, sp, #16
	bl	_InvalidateRect
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_NOINTEGRALHEIGHT,4,2       ; @LBS_NOINTEGRALHEIGHT
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ; @LBS_OWNERDRAWVARIABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p]: changing height %d -> %d\n"

	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.comm	_SWP_NOACTIVATE,4,2             ; @SWP_NOACTIVATE
	.comm	_SWP_NOMOVE,4,2                 ; @SWP_NOMOVE
l_.str.1:                               ; @.str.1
	.asciz	"[%p]: new size = %d,%d\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_LISTBOX_UpdateSize
.subsections_via_symbols
