	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_cost_from_blank
_update_cost_from_blank:                ## @update_cost_from_blank
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_blankchar@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_back_color_erase@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_stdscr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_GetPair
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SetPair
LBB0_2:
	movq	%rbx, %rdi
	callq	_TEXTWIDTH
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	incl	%ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_CharEq
	cmpl	$1, %eax
	adcl	$0, %r12d
	addq	$4, %r15
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_blankchar,4,2                  ## @blankchar
	.comm	_back_color_erase,8,3           ## @back_color_erase
	.comm	_stdscr,8,3                     ## @stdscr
	.no_dead_strip	_update_cost_from_blank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_cost_from_blank
_update_cost_from_blank:                ; @update_cost_from_blank
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _blankchar@GOTPAGE
Lloh1:
	ldr	x8, [x8, _blankchar@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _back_color_erase@GOTPAGE
Lloh4:
	ldr	x8, [x8, _back_color_erase@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _stdscr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdscr@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_GetPair
	mov	x1, x0
	mov	x0, x20
	bl	_SetPair
LBB0_2:
	mov	x0, x21
	bl	_TEXTWIDTH
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #0
	add	w22, w0, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19], #4
	mov	x0, x20
	bl	_CharEq
	cmp	w0, #0
	cinc	w21, w21, eq
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_blankchar,4,2                  ; @blankchar
	.comm	_back_color_erase,8,3           ; @back_color_erase
	.comm	_stdscr,8,3                     ; @stdscr
	.no_dead_strip	_update_cost_from_blank
.subsections_via_symbols
