	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dprompt_libprint               ## -- Begin function dprompt_libprint
	.p2align	4, 0x90
_dprompt_libprint:                      ## @dprompt_libprint
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_gauge_percent@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DPV_PPROMPT_MAX@GOTPCREL(%rip), %rax
	movq	_DPV_APROMPT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	_DPV_DISPLAY_LIMIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$10, %rax
	addq	%rcx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_dprompt_sprint
	cmpl	$100, %r15d
	ja	LBB0_2
## %bb.1:
	movq	_gauge_percent@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movl	%r15d, %r14d
LBB0_2:
	movq	_gauge@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_title@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %rsi
	cmovneq	%rax, %rsi
	movq	_dheight@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dwidth@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdx
	movl	%r14d, %r9d
	callq	_dlg_reallocate_gauge
	movl	%eax, (%r15)
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_dlg_update_gauge
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gauge_percent,4,2              ## @gauge_percent
	.comm	_DPV_PPROMPT_MAX,8,3            ## @DPV_PPROMPT_MAX
	.comm	_DPV_APROMPT_MAX,8,3            ## @DPV_APROMPT_MAX
	.comm	_DPV_DISPLAY_LIMIT,4,2          ## @DPV_DISPLAY_LIMIT
	.comm	_gauge,4,2                      ## @gauge
	.comm	_title,8,3                      ## @title
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_dheight,4,2                    ## @dheight
	.comm	_dwidth,4,2                     ## @dwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dprompt_libprint               ; -- Begin function dprompt_libprint
	.p2align	2
_dprompt_libprint:                      ; @dprompt_libprint
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _gauge_percent@GOTPAGE
Lloh4:
	ldr	x21, [x21, _gauge_percent@GOTPAGEOFF]
Lloh5:
	adrp	x8, _DPV_PPROMPT_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPV_PPROMPT_MAX@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _DPV_APROMPT_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DPV_APROMPT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x9, x8
Lloh11:
	adrp	x9, _DPV_DISPLAY_LIMIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DPV_DISPLAY_LIMIT@GOTPAGEOFF]
Lloh13:
	ldrsw	x9, [x9]
	add	x9, x8, x9, lsl #10
	add	x8, x9, #15
	and	x8, x8, #0xfffffffffffffff0
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x20
	bl	_dprompt_sprint
	cmp	w19, #100
	b.hi	LBB0_2
; %bb.1:
	str	w19, [x21]
	b	LBB0_3
LBB0_2:
	mov	x19, x22
LBB0_3:
Lloh16:
	adrp	x21, _gauge@GOTPAGE
Lloh17:
	ldr	x21, [x21, _gauge@GOTPAGEOFF]
Lloh18:
	adrp	x8, _title@GOTPAGE
Lloh19:
	ldr	x8, [x8, _title@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, l_.str@PAGE
Lloh22:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x1, x9, x8, eq
Lloh23:
	adrp	x8, _dheight@GOTPAGE
Lloh24:
	ldr	x8, [x8, _dheight@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x8, _dwidth@GOTPAGE
Lloh27:
	ldr	x8, [x8, _dwidth@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x2, x20
	mov	x5, x19
	bl	_dlg_reallocate_gauge
	str	w0, [x21]
	mov	x1, x19
	bl	_dlg_update_gauge
	ldur	x8, [x29, #-40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #32
	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
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_gauge_percent,4,2              ; @gauge_percent
	.comm	_DPV_PPROMPT_MAX,8,3            ; @DPV_PPROMPT_MAX
	.comm	_DPV_APROMPT_MAX,8,3            ; @DPV_APROMPT_MAX
	.comm	_DPV_DISPLAY_LIMIT,4,2          ; @DPV_DISPLAY_LIMIT
	.comm	_gauge,4,2                      ; @gauge
	.comm	_title,8,3                      ; @title
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_dheight,4,2                    ; @dheight
	.comm	_dwidth,4,2                     ; @dwidth
.subsections_via_symbols
