	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ui_browser__scrollbar_set
_ui_browser__scrollbar_set:             ## @ui_browser__scrollbar_set
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movl	4(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %r13d
	movl	12(%rdi), %ecx
	xorl	%r15d, %r15d
	cmpl	$2, %ecx
	jl	LBB0_2
## %bb.1:
	leal	-1(%r12), %eax
	imull	16(%rbx), %eax
	decl	%ecx
	cltd
	idivl	%ecx
	movl	%eax, %r15d
LBB0_2:
	movl	$1, %edi
	callq	_SLsmg_set_char_set
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.3:
	decl	%r13d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	callq	_SLsmg_write_char
	incl	%r14d
	cmpl	%r14d, %r12d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r13), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ui_browser__gotorc
	movq	_SLSMG_CKBRD_CHAR@GOTPCREL(%rip), %rax
	cmpl	%r14d, %r15d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SLSMG_DIAMOND_CHAR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SLsmg_set_char_set             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SLSMG_DIAMOND_CHAR,4,2         ## @SLSMG_DIAMOND_CHAR
	.comm	_SLSMG_CKBRD_CHAR,4,2           ## @SLSMG_CKBRD_CHAR
	.no_dead_strip	_ui_browser__scrollbar_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ui_browser__scrollbar_set
_ui_browser__scrollbar_set:             ; @ui_browser__scrollbar_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w21, [x0]
	ldr	w8, [x0, #12]
	subs	w8, w8, #1
	b.le	LBB0_2
; %bb.1:
	ldr	w9, [x19, #16]
	sub	w10, w21, #1
	mul	w9, w9, w10
	sdiv	w22, w9, w8
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldp	w20, w23, [x19, #4]
	mov	w0, #1
	bl	_SLsmg_set_char_set
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.4:
	sub	w1, w23, #1
Lloh0:
	adrp	x23, _SLSMG_DIAMOND_CHAR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SLSMG_DIAMOND_CHAR@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SLSMG_CKBRD_CHAR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SLSMG_CKBRD_CHAR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w25, w1, #1
	mov	x0, x19
	mov	x2, x20
	bl	_ui_browser__gotorc
	cmp	w22, #0
	csel	x8, x23, x24, eq
	ldr	w0, [x8]
	bl	_SLsmg_write_char
	sub	w22, w22, #1
	mov	x1, x25
	sub	w21, w21, #1
	cbnz	w21, LBB0_5
LBB0_6:
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SLsmg_set_char_set
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SLSMG_DIAMOND_CHAR,4,2         ; @SLSMG_DIAMOND_CHAR
	.comm	_SLSMG_CKBRD_CHAR,4,2           ; @SLSMG_CKBRD_CHAR
	.no_dead_strip	_ui_browser__scrollbar_set
.subsections_via_symbols
