	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTVIEW_UpdateHScroll
_LISTVIEW_UpdateHScroll:                ## @LISTVIEW_UpdateHScroll
	.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
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rdi
	movl	$20, %esi
	callq	_ZeroMemory
	movl	$20, -64(%rbp)
	movl	36(%rbx), %eax
	subl	40(%rbx), %eax
	movl	%eax, -60(%rbp)
	movq	(%rbx), %rax
	movq	_LV_VIEW_LIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_LISTVIEW_GetCountPerColumn
	movl	%eax, %ecx
	movl	8(%rbx), %eax
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	movl	12(%rbx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.2:
	movl	%ecx, -60(%rbp)
	movl	%ecx, %eax
LBB0_3:
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.4:
	cltd
	idivl	%ecx
	movl	%eax, -60(%rbp)
	jmp	LBB0_10
LBB0_5:
	movq	_LV_VIEW_DETAILS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	12(%rbx), %eax
	jmp	LBB0_9
LBB0_7:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_LISTVIEW_GetViewRect
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	-72(%rbp), %eax
	subl	-68(%rbp), %eax
LBB0_9:
	movl	%eax, -56(%rbp)
LBB0_10:
	movq	%rbx, %rdi
	callq	_LISTVIEW_IsHeaderEnabled
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	32(%rbx), %edi
	callq	_DPA_GetPtrCount
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	24(%rbx), %r14
	movq	_HDM_ORDERTOINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	32(%rbx), %edi
	callq	_DPA_GetPtrCount
	leaq	-1(%rax), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_SendMessageW
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_LISTVIEW_GetHeaderRect
	movl	-72(%rbp), %esi
	movl	%esi, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
LBB0_13:
	movq	_SIF_RANGE@GOTPCREL(%rip), %rax
	movq	_SIF_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	-56(%rbp), %edi
	decl	%edi
	xorl	%esi, %esi
	callq	_max
	movl	%eax, -56(%rbp)
	movl	16(%rbx), %edi
	movq	_SB_HORZ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_GetScrollPos
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	movl	(%r13), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdx
	callq	_SetScrollInfo
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_debugscrollinfo
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	cmpq	$0, 24(%rbx)
	je	LBB0_15
## %bb.14:
	movq	_SIF_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	16(%rbx), %edi
	movl	(%r13), %esi
	leaq	-64(%rbp), %rdx
	callq	_GetScrollInfo
	movl	-48(%rbp), %esi
	movq	%rbx, %rdi
	callq	_LISTVIEW_UpdateHeaderSize
LBB0_15:
	subl	%r15d, %r14d
	movq	%rbx, %rdi
	callq	_LISTVIEW_UpdateSize
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LV_VIEW_LIST,8,3               ## @LV_VIEW_LIST
	.comm	_LV_VIEW_DETAILS,8,3            ## @LV_VIEW_DETAILS
	.comm	_HDM_ORDERTOINDEX,4,2           ## @HDM_ORDERTOINDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"horzInfo.nMax=%d\n"

	.comm	_SIF_RANGE,4,2                  ## @SIF_RANGE
	.comm	_SIF_PAGE,4,2                   ## @SIF_PAGE
	.comm	_SB_HORZ,4,2                    ## @SB_HORZ
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"horzInfo=%s\n"

	.comm	_SIF_POS,4,2                    ## @SIF_POS
	.no_dead_strip	_LISTVIEW_UpdateHScroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTVIEW_UpdateHScroll
_LISTVIEW_UpdateHScroll:                ; @LISTVIEW_UpdateHScroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	mov	w20, #20
	add	x0, sp, #8
	mov	w1, #20
	bl	_ZeroMemory
	ldp	w8, w9, [x19, #36]
	sub	w8, w8, w9
	stp	w20, w8, [sp, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _LV_VIEW_LIST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LV_VIEW_LIST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_LISTVIEW_GetCountPerColumn
	ldp	w9, w8, [x19, #8]
	add	w9, w0, w9
	sub	w9, w9, #1
	sdiv	w9, w9, w0
	str	w9, [sp, #16]
	ldr	w9, [sp, #12]
	cmp	w9, w8
	b.ge	LBB0_3
; %bb.2:
	str	w8, [sp, #12]
	mov	x9, x8
LBB0_3:
	cbz	w8, LBB0_10
; %bb.4:
	sdiv	w8, w9, w8
	str	w8, [sp, #12]
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x9, _LV_VIEW_DETAILS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LV_VIEW_DETAILS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x19, #12]
	b	LBB0_9
LBB0_7:
	mov	x1, sp
	mov	x0, x19
	bl	_LISTVIEW_GetViewRect
	cbz	x0, LBB0_10
; %bb.8:
	ldp	w8, w9, [sp]
	sub	w8, w8, w9
LBB0_9:
	str	w8, [sp, #16]
LBB0_10:
	mov	x0, x19
	bl	_LISTVIEW_IsHeaderEnabled
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w0, [x19, #32]
	bl	_DPA_GetPtrCount
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x20, [x19, #24]
Lloh6:
	adrp	x8, _HDM_ORDERTOINDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDM_ORDERTOINDEX@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	w0, [x19, #32]
	bl	_DPA_GetPtrCount
	sub	x2, x0, #1
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_SendMessageW
	mov	x1, x0
	mov	x2, sp
	mov	x0, x19
	bl	_LISTVIEW_GetHeaderRect
	ldr	w1, [sp]
	str	w1, [sp, #16]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
LBB0_13:
Lloh11:
	adrp	x8, _SIF_RANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIF_RANGE@GOTPAGEOFF]
Lloh13:
	adrp	x9, _SIF_PAGE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SIF_PAGE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #20]
	ldr	w8, [sp, #16]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_max
	str	w0, [sp, #16]
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x22, _SB_HORZ@GOTPAGE
Lloh18:
	ldr	x22, [x22, _SB_HORZ@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_GetScrollPos
	mov	x20, x0
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	add	x2, sp, #8
	bl	_SetScrollInfo
	mov	x21, x0
	add	x0, sp, #8
	bl	_debugscrollinfo
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.14:
Lloh24:
	adrp	x8, _SIF_POS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIF_POS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	add	x2, sp, #8
	bl	_GetScrollInfo
	ldr	w1, [sp, #24]
	mov	x0, x19
	bl	_LISTVIEW_UpdateHeaderSize
LBB0_15:
	sub	w20, w20, w21
	mov	x0, x19
	bl	_LISTVIEW_UpdateSize
	mov	x0, 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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_LV_VIEW_LIST,8,3               ; @LV_VIEW_LIST
	.comm	_LV_VIEW_DETAILS,8,3            ; @LV_VIEW_DETAILS
	.comm	_HDM_ORDERTOINDEX,4,2           ; @HDM_ORDERTOINDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"horzInfo.nMax=%d\n"

	.comm	_SIF_RANGE,4,2                  ; @SIF_RANGE
	.comm	_SIF_PAGE,4,2                   ; @SIF_PAGE
	.comm	_SB_HORZ,4,2                    ; @SB_HORZ
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"horzInfo=%s\n"

	.comm	_SIF_POS,4,2                    ; @SIF_POS
	.no_dead_strip	_LISTVIEW_UpdateHScroll
.subsections_via_symbols
