	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HUlib_eraseTextLine            ## -- Begin function HUlib_eraseTextLine
	.p2align	4, 0x90
_HUlib_eraseTextLine:                   ## @HUlib_eraseTextLine
	.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, %r15
	movq	_automapactive@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.1:
	movq	_viewwindowx@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_10
## %bb.3:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_SHORT
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	%eax, %r14d
	incl	%r14d
	movq	_SCREENWIDTH@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %r12d
	movl	%esi, %ebx
	imull	%r12d, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_R_VideoErase
	incl	%r12d
	movl	(%r13), %esi
	addl	%esi, %ebx
	movl	(%r15), %eax
	addl	%r14d, %eax
	cmpl	%eax, %r12d
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_viewwindowy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_viewheight@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	%eax, %r12d
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_viewwindowx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_R_VideoErase
	movq	_viewwindowx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rsi,%rbx), %edi
	movq	_viewwidth@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_9
LBB0_10:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	decq	%rax
	movq	%rax, 8(%r15)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_automapactive,4,2              ## @automapactive
	.comm	_viewwindowx,4,2                ## @viewwindowx
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_viewwindowy,4,2                ## @viewwindowy
	.comm	_viewheight,4,2                 ## @viewheight
	.comm	_viewwidth,4,2                  ## @viewwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HUlib_eraseTextLine            ; -- Begin function HUlib_eraseTextLine
	.p2align	2
_HUlib_eraseTextLine:                   ; @HUlib_eraseTextLine
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _automapactive@GOTPAGE
Lloh1:
	ldr	x8, [x8, _automapactive@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _viewwindowx@GOTPAGE
Lloh4:
	ldr	x21, [x21, _viewwindowx@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_SHORT
	tbnz	w0, #31, LBB0_9
; %bb.3:
	add	w22, w0, #1
Lloh5:
	adrp	x23, _SCREENWIDTH@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SCREENWIDTH@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w24, [x19]
	mul	w20, w1, w24
Lloh7:
	adrp	x25, _viewwindowy@GOTPAGE
Lloh8:
	ldr	x25, [x25, _viewwindowy@GOTPAGEOFF]
Lloh9:
	adrp	x26, _viewheight@GOTPAGE
Lloh10:
	ldr	x26, [x26, _viewheight@GOTPAGEOFF]
Lloh11:
	adrp	x27, _viewwidth@GOTPAGE
Lloh12:
	ldr	x27, [x27, _viewwidth@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_R_VideoErase
	add	w24, w24, #1
	ldr	w1, [x23]
	add	w20, w1, w20
	ldr	w8, [x19]
	add	w8, w22, w8
	cmp	w24, w8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w24, w8
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x26]
	add	w8, w9, w8
	cmp	w24, w8
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_R_VideoErase
	ldr	w1, [x21]
	ldr	w8, [x27]
	add	w9, w1, w20
	add	w0, w9, w8
	b	LBB0_5
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	sub	x8, x8, #1
	str	x8, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_automapactive,4,2              ; @automapactive
	.comm	_viewwindowx,4,2                ; @viewwindowx
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_viewwindowy,4,2                ; @viewwindowy
	.comm	_viewheight,4,2                 ; @viewheight
	.comm	_viewwidth,4,2                  ; @viewwidth
.subsections_via_symbols
