	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_position
_print_position:                        ## @print_position
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_dlg@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_wattrset
	movq	_A_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_wbkgdset
	movq	_page@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_buf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subl	%edi, %eax
	imull	$100, %eax, %r14d
	callq	_strlen
	movl	%eax, %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_getmaxy
	leaq	-3(%rax), %r15
	movq	%rbx, %rdi
	callq	_getmaxx
	leaq	-9(%rax), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wmove
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wprintw                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dlg,4,2                        ## @dlg
	.comm	_A_COLOR,4,2                    ## @A_COLOR
	.comm	_page,4,2                       ## @page
	.comm	_buf,4,2                        ## @buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%3d%%)"

	.no_dead_strip	_print_position
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_position
_print_position:                        ; @print_position
	.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, x0
Lloh0:
	adrp	x20, _dlg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dlg@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_wattrset
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _A_COLOR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _A_COLOR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x19
	bl	_wbkgdset
Lloh5:
	adrp	x8, _page@GOTPAGE
Lloh6:
	ldr	x8, [x8, _page@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _buf@GOTPAGE
Lloh9:
	ldr	x9, [x9, _buf@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	sub	w8, w8, w0
	mov	w9, #100
	mul	w20, w8, w9
	bl	_strlen
	sdiv	w20, w20, w0
	mov	x0, x19
	bl	_getmaxy
	sub	x21, x0, #3
	mov	x0, x19
	bl	_getmaxx
	sub	x2, x0, #9
	mov	x0, x19
	mov	x1, x21
	bl	_wmove
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	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
	b	_wprintw
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dlg,4,2                        ; @dlg
	.comm	_A_COLOR,4,2                    ; @A_COLOR
	.comm	_page,4,2                       ; @page
	.comm	_buf,4,2                        ; @buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%3d%%)"

	.no_dead_strip	_print_position
.subsections_via_symbols
