	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function dlg_draw_scrollbar
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dlg_draw_scrollbar
	.p2align	4, 0x90
_dlg_draw_scrollbar:                    ## @dlg_draw_scrollbar
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -148(%rbp)                ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dlg_get_attrs
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	callq	_getyx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_draw_helpline
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	movq	%r14, %rbx
	jne	LBB0_3
## %bb.1:
	cmpq	%r15, %rbx
	jl	LBB0_3
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_16
LBB0_3:
	testq	%r15, %r15
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	imulq	$100, %rbx, %rax
	movq	%rax, %rcx
	orq	%r15, %rcx
	shrq	$32, %rcx
	je	LBB0_6
## %bb.7:
	cqto
	idivq	%r15
	jmp	LBB0_8
LBB0_4:
	movl	$100, %r14d
	jmp	LBB0_9
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	cmpl	$100, %eax
	movl	$100, %ecx
	cmovll	%eax, %ecx
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	cmovgl	%ecx, %r14d
LBB0_9:
	movq	_position_indicator_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_attrset
	leaq	L_.str(%rip), %rsi
	leaq	-128(%rbp), %r13
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_sprintf
	movl	16(%rbp), %eax
	leal	-7(%rax), %edx
	movq	%r12, %rdi
	movl	32(%rbp), %esi
	callq	_wmove
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_waddstr
	movq	%r13, %rdi
	callq	_dlg_count_columns
	cmpl	$3, %eax
	jg	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	movq	_border_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_attrset
	movq	_ACS_HLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dlg_boxchar
	movl	$4, %edx
	subl	%r14d, %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_whline
LBB0_11:
	movq	_dialog_state@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	je	LBB0_16
## %bb.12:
	xorl	%edi, %edi
	callq	_MAX
	testq	%r15, %r15
	jle	LBB0_16
## %bb.13:
	movq	%rax, %rdx
	movl	24(%rbp), %eax
	movl	%eax, %r14d
	notl	%r14d
	addl	32(%rbp), %r14d
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.14:
	leal	1(%r15), %eax
	movl	%ebx, %ecx
	subl	%edx, %ecx
	incl	%ecx
	imull	%r14d, %ecx
	cvtsi2sd	%ecx, %xmm0
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	cmpl	$2, %eax
	movl	$1, %r13d
	cmovgel	%eax, %r13d
	cmpl	%r14d, %r13d
	jae	LBB0_16
## %bb.15:
	movl	%r14d, %eax
	imull	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm1, -144(%rbp)               ## 8-byte Spill
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r15, %xmm1
	divsd	%xmm1, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %eax
	leal	1(%rax), %esi
	movq	%r12, %rdi
	movl	16(%rbp), %eax
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	movl	%eax, %edx
	callq	_wmove
	movq	%r12, %rdi
	movl	-132(%rbp), %esi                ## 4-byte Reload
	callq	_dlg_attrset
	movq	_ACS_VLINE@GOTPCREL(%rip), %rax
	movq	_A_REVERSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_wvline
	movq	-160(%rbp), %rax                ## 8-byte Reload
	imull	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	-144(%rbp), %xmm0               ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %eax
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	leal	-1(%rdi), %ecx
	testl	%eax, %eax
	cmovlel	%eax, %ecx
	cmpl	%edi, %eax
	cmovll	%eax, %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	%r13d, %eax
	setg	%al
	cmpl	$2, %r13d
	setae	%dl
	andb	%al, %dl
	movzbl	%dl, %r13d
	addl	%ecx, %r13d
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
	callq	_MIN
	movl	%eax, %r14d
	movl	24(%rbp), %eax
	leal	(%rax,%r13), %esi
	incl	%esi
	movq	%r12, %rdi
	movl	16(%rbp), %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wmove
	movq	_position_indicator_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_attrset
	movq	_A_REVERSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_attron
	movq	_ACS_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	%r13d, %r14d
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_wvline
LBB0_16:
	xorl	%edx, %edx
	cmpq	%r15, %rbx
	setl	%dl
	xorl	%esi, %esi
	cmpq	$0, -176(%rbp)                  ## 8-byte Folded Reload
	setne	%sil
	movslq	-148(%rbp), %rcx                ## 4-byte Folded Reload
	movq	_ARROWS_COL@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	%r12, %rdi
	movl	24(%rbp), %r8d
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	32(%rbp), %r9d
	movl	48(%rbp), %eax
	pushq	%rax
	movl	40(%rbp), %eax
	pushq	%rax
	callq	_dlg_draw_arrows2
	addq	$16, %rsp
	movq	%r12, %rdi
	movl	-132(%rbp), %esi                ## 4-byte Reload
	callq	_dlg_attrset
	movq	%r12, %rdi
	callq	_wmove
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_dialog_state,8,3               ## @dialog_state
	.comm	_position_indicator_attr,4,2    ## @position_indicator_attr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d%%"

	.comm	_border_attr,4,2                ## @border_attr
	.comm	_ACS_HLINE,4,2                  ## @ACS_HLINE
	.comm	_ACS_VLINE,4,2                  ## @ACS_VLINE
	.comm	_A_REVERSE,4,2                  ## @A_REVERSE
	.comm	_ACS_BLOCK,4,2                  ## @ACS_BLOCK
	.comm	_ARROWS_COL,8,3                 ## @ARROWS_COL
	.comm	_WACS_BLOCK,4,2                 ## @WACS_BLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_draw_scrollbar             ; -- Begin function dlg_draw_scrollbar
	.p2align	2
_dlg_draw_scrollbar:                    ; @dlg_draw_scrollbar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	d9, d8, [sp, #128]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x7
	mov	x25, x6
	str	w5, [sp, #32]                   ; 4-byte Folded Spill
	mov	x26, x4
	mov	x28, x3
	mov	x21, x2
	mov	x27, x1
	mov	x19, x0
	ldp	w8, w22, [x29, #20]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w24, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	bl	_dlg_get_attrs
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_getyx
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlg_draw_helpline
Lloh6:
	adrp	x23, _dialog_state@GOTPAGE
Lloh7:
	ldr	x23, [x23, _dialog_state@GOTPAGEOFF]
	cbnz	x27, LBB0_3
; %bb.1:
	cmp	x28, x26
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_12
LBB0_3:
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
	mov	w22, #100
	cbz	x26, LBB0_5
; %bb.4:
	mul	x8, x28, x22
	sdiv	x8, x8, x26
	cmp	w8, #100
	csel	w8, w8, w22, lt
	cmp	w8, #0
	csel	w22, w8, wzr, gt
LBB0_5:
Lloh8:
	adrp	x8, _position_indicator_attr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _position_indicator_attr@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlg_attrset
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	x2, x22
	bl	_sprintf
	sub	w2, w25, #7
	mov	x0, x19
	mov	x1, x24
	bl	_wmove
	add	x1, sp, #40
	mov	x0, x19
	bl	_waddstr
	add	x0, sp, #40
	bl	_dlg_count_columns
	cmp	w0, #3
	b.gt	LBB0_7
; %bb.6:
	mov	x22, x0
Lloh13:
	adrp	x8, _border_attr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _border_attr@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlg_attrset
Lloh16:
	adrp	x8, _ACS_HLINE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACS_HLINE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_dlg_boxchar
	mov	x1, x0
	mov	w8, #4
	sub	w2, w8, w22
	mov	x0, x19
	bl	_whline
LBB0_7:
	ldr	x8, [x23]
	ldr	w22, [sp, #24]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_12
; %bb.8:
	mov	w0, #0
	mov	x1, x21
	bl	_MAX
	cmp	x26, #1
	b.lt	LBB0_12
; %bb.9:
	mvn	w8, w20
	add	w21, w8, w24
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.10:
	add	w8, w26, #1
	sub	w9, w28, w0
	madd	w9, w21, w9, w21
	scvtf	d0, w9
	scvtf	d8, w8
	fdiv	d0, d0, d8
	fcvtzs	w8, d0
	cmp	w8, #1
	csinc	w23, w8, wzr, gt
	cmp	w23, w21
	b.hs	LBB0_12
; %bb.11:
	mul	w8, w21, w28
	scvtf	d0, w8
	scvtf	d1, x26
	fdiv	d0, d0, d1
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fcvtzs	w22, d0
	add	w1, w20, #1
	str	w1, [sp, #20]                   ; 4-byte Folded Spill
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x19
	mov	x2, x25
	bl	_wmove
	mov	x0, x19
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	bl	_dlg_attrset
Lloh19:
	adrp	x8, _ACS_VLINE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ACS_VLINE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _A_REVERSE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _A_REVERSE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, x21
	bl	_wvline
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	mul	w8, w21, w8
	scvtf	d0, w8
	fdiv	d0, d0, d8
	fcvtzs	w8, d0
	sub	w9, w22, #1
	cmp	w8, #0
	ccmp	w8, w22, #8, gt
	csel	w8, w9, w8, ge
	sub	w9, w22, w8
	cmp	w23, #1
	ccmp	w9, w23, #4, hi
	cinc	w23, w8, gt
	mov	x0, x22
	ldr	w22, [sp, #24]                  ; 4-byte Folded Reload
	mov	x1, x21
	bl	_MIN
	mov	x21, x0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w1, w23, w8
	mov	x0, x19
	mov	x2, x25
	bl	_wmove
Lloh25:
	adrp	x8, _position_indicator_attr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _position_indicator_attr@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlg_attrset
Lloh28:
	adrp	x8, _A_REVERSE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _A_REVERSE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlg_attron
Lloh31:
	adrp	x8, _ACS_BLOCK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ACS_BLOCK@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	sub	w2, w21, w23
	mov	x0, x19
	bl	_wvline
LBB0_12:
	cmp	x28, x26
	cset	w2, lt
	cmp	x27, #0
	cset	w1, ne
Lloh34:
	adrp	x8, _ARROWS_COL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ARROWS_COL@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldp	w6, w9, [sp, #28]               ; 8-byte Folded Reload
	add	x3, x8, w9, sxtw
	mov	x0, x19
	mov	x4, x20
	mov	x5, x24
	mov	x7, x22
	bl	_dlg_draw_arrows2
	mov	x0, x19
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	bl	_dlg_attrset
	mov	x0, x19
	bl	_wmove
	ldur	x8, [x29, #-104]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_dialog_state,8,3               ; @dialog_state
	.comm	_position_indicator_attr,4,2    ; @position_indicator_attr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d%%"

	.comm	_border_attr,4,2                ; @border_attr
	.comm	_ACS_HLINE,4,2                  ; @ACS_HLINE
	.comm	_ACS_VLINE,4,2                  ; @ACS_VLINE
	.comm	_A_REVERSE,4,2                  ; @A_REVERSE
	.comm	_ACS_BLOCK,4,2                  ; @ACS_BLOCK
	.comm	_ARROWS_COL,8,3                 ; @ARROWS_COL
	.comm	_WACS_BLOCK,4,2                 ; @WACS_BLOCK
.subsections_via_symbols
