	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_SetHorizontalExtent
_LISTBOX_SetHorizontalExtent:           ## @LISTBOX_SetHorizontalExtent
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_LBS_MULTICOLUMN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	%rsi, 8(%rdi)
	je	LBB0_8
## %bb.2:
	movl	32(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	callq	_TRACE
	movq	%r14, 8(%rbx)
	movl	(%rbx), %eax
	movq	_WS_HSCROLL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	movl	$32, -48(%rbp)
	xorl	%ecx, %ecx
	movq	%r14, %rdx
	subq	$1, %rdx
	cmovaeq	%rdx, %rcx
	movq	$0, -24(%rbp)
	movq	%rcx, -40(%rbp)
	movq	_SIF_RANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -32(%rbp)
	movq	_LBS_DISABLENOSCROLL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_SIF_DISABLENOSCROLL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -32(%rbp)
LBB0_5:
	movl	32(%rbx), %edi
	movq	_SB_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	callq	_SetScrollInfo
LBB0_6:
	subq	24(%rbx), %r14
	cmpq	%r14, 16(%rbx)
	jle	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_LISTBOX_SetHorizontalPos
LBB0_8:
	movq	_LB_OKAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_MULTICOLUMN,4,2            ## @LBS_MULTICOLUMN
	.comm	_LB_OKAY,4,2                    ## @LB_OKAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p]: new horz extent = %d\n"

	.comm	_WS_HSCROLL,4,2                 ## @WS_HSCROLL
	.comm	_SIF_RANGE,4,2                  ## @SIF_RANGE
	.comm	_LBS_DISABLENOSCROLL,4,2        ## @LBS_DISABLENOSCROLL
	.comm	_SIF_DISABLENOSCROLL,4,2        ## @SIF_DISABLENOSCROLL
	.comm	_SB_HORZ,4,2                    ## @SB_HORZ
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_LISTBOX_SetHorizontalExtent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_SetHorizontalExtent
_LISTBOX_SetHorizontalExtent:           ; @LISTBOX_SetHorizontalExtent
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LBS_MULTICOLUMN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_MULTICOLUMN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	x8, x1
	b.eq	LBB0_8
; %bb.2:
	ldr	w1, [x19, #32]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_TRACE
	str	x20, [x19, #8]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _WS_HSCROLL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WS_HSCROLL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	w9, #32
	str	w9, [sp]
	str	xzr, [sp, #24]
	sub	x9, x20, #1
	cmp	x20, #0
	csel	x9, xzr, x9, eq
	str	x9, [sp, #8]
Lloh8:
	adrp	x9, _SIF_RANGE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIF_RANGE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [sp, #16]
Lloh11:
	adrp	x10, _LBS_DISABLENOSCROLL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _LBS_DISABLENOSCROLL@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _SIF_DISABLENOSCROLL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIF_DISABLENOSCROLL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [sp, #16]
LBB0_5:
	ldr	w0, [x19, #32]
Lloh17:
	adrp	x8, _SB_HORZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SB_HORZ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x2, sp
	bl	_SetScrollInfo
LBB0_6:
	ldp	x8, x9, [x19, #16]
	sub	x1, x20, x9
	cmp	x8, x1
	b.le	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_LISTBOX_SetHorizontalPos
LBB0_8:
Lloh23:
	adrp	x8, _LB_OKAY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LB_OKAY@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_MULTICOLUMN,4,2            ; @LBS_MULTICOLUMN
	.comm	_LB_OKAY,4,2                    ; @LB_OKAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p]: new horz extent = %d\n"

	.comm	_WS_HSCROLL,4,2                 ; @WS_HSCROLL
	.comm	_SIF_RANGE,4,2                  ; @SIF_RANGE
	.comm	_LBS_DISABLENOSCROLL,4,2        ; @LBS_DISABLENOSCROLL
	.comm	_SIF_DISABLENOSCROLL,4,2        ; @SIF_DISABLENOSCROLL
	.comm	_SB_HORZ,4,2                    ; @SB_HORZ
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_LISTBOX_SetHorizontalExtent
.subsections_via_symbols
