	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_calc_listh                 ## -- Begin function dlg_calc_listh
	.p2align	4, 0x90
_dlg_calc_listh:                        ## @dlg_calc_listh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SLINES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_dialog_vars@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	cmpq	$0, 8(%r8)
	je	LBB0_2
## %bb.1:
	movl	(%r8), %ecx
LBB0_2:
	addl	(%rdi), %ecx
	subl	%ecx, %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	cmpl	%edx, %eax
	jle	LBB0_6
## %bb.5:
	movl	%edx, (%rsi)
	jmp	LBB0_7
LBB0_3:
	movl	(%rsi), %edx
	jmp	LBB0_7
LBB0_6:
	movl	%eax, (%rsi)
	movl	%eax, %edx
LBB0_7:
	addl	%edx, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLINES,4,2                     ## @SLINES
	.comm	_dialog_vars,16,3               ## @dialog_vars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_calc_listh                 ; -- Begin function dlg_calc_listh
	.p2align	2
_dlg_calc_listh:                        ; @dlg_calc_listh
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SLINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLINES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _dialog_vars@GOTPAGE
Lloh4:
	ldr	x9, [x9, _dialog_vars@GOTPAGEOFF]
	ldr	x10, [x9, #8]
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	ldr	w10, [x0]
	add	w9, w10, w9
	sub	w8, w8, w9
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	cmp	w8, w2
	b.le	LBB0_4
; %bb.2:
	str	w2, [x1]
	b	LBB0_5
LBB0_3:
	ldr	w2, [x1]
	b	LBB0_5
LBB0_4:
	str	w8, [x1]
	mov	x2, x8
LBB0_5:
	ldr	w8, [x0]
	add	w8, w8, w2
	str	w8, [x0]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SLINES,4,2                     ; @SLINES
	.comm	_dialog_vars,16,3               ; @dialog_vars
.subsections_via_symbols
