	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_value
_draw_value:                            ## @draw_value
	.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
	cmpl	%esi, (%rdi)
	jne	LBB0_1
## %bb.14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	40(%rdi), %r12
	movl	4(%rdi), %ebx
	movl	8(%rdi), %eax
	subl	%eax, %ebx
	incl	%ebx
	movl	%esi, %r13d
	subl	%eax, %r13d
	movq	%r12, %rdi
	callq	_getyx
	cmpl	12(%r14), %ebx
	jle	LBB0_3
## %bb.2:
	movl	16(%r14), %ecx
	addl	%ecx, %r13d
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_3:
	jge	LBB0_5
## %bb.4:
	incl	%r13d
	imull	16(%r14), %r13d
LBB0_5:
	movq	_gauge_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_attrset
	movl	20(%r14), %esi
	movl	24(%r14), %edx
	movq	%r12, %rdi
	callq	_wmove
	cmpl	$0, 12(%r14)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_waddch
	incl	%ebx
	cmpl	12(%r14), %ebx
	jl	LBB0_7
LBB0_8:
	movl	20(%r14), %esi
	movl	28(%r14), %edx
	movq	%r12, %rdi
	callq	_wmove
	movl	32(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %ecx
	callq	_wprintw
	movq	_A_REVERSE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_gauge_attr@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_dlg_attroff
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_dlg_attrset
LBB0_11:
	movl	20(%r14), %esi
	movl	24(%r14), %edx
	movq	%r12, %rdi
	callq	_wmove
	testl	%r13d, %r13d
	movq	_gauge_attr@GOTPCREL(%rip), %rbx
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_winch
	movl	(%r15), %ecx
	movl	(%rbx), %edx
	andl	%ecx, %edx
	notl	%ecx
	cmpl	$1, %edx
	movl	$0, %esi
	sbbl	%esi, %esi
	orl	%ecx, %esi
	andl	%eax, %esi
	movq	%r12, %rdi
	callq	_waddch
	decl	%r13d
	jne	LBB0_12
LBB0_13:
	movq	_dialog_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_attrset
	movq	%r12, %rdi
	callq	_wmove
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movslq	16(%r14), %rdi
	callq	_DLG_TRACE
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dlg_trace_win                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gauge_attr,4,2                 ## @gauge_attr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%*d"

	.comm	_A_REVERSE,4,2                  ## @A_REVERSE
	.comm	_dialog_attr,4,2                ## @dialog_attr
	.no_dead_strip	_draw_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_value
_draw_value:                            ; @draw_value
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldp	w8, w9, [x0, #4]
	sub	w8, w8, w9
	add	w23, w8, #1
	sub	w22, w1, w9
	mov	x0, x21
	bl	_getyx
	ldr	w8, [x19, #12]
	cmp	w23, w8
	b.le	LBB0_4
; %bb.3:
	ldr	w8, [x19, #16]
	add	w9, w8, w22
	sdiv	w22, w9, w8
	b	LBB0_6
LBB0_4:
	b.ge	LBB0_6
; %bb.5:
	ldr	w8, [x19, #16]
	madd	w22, w8, w22, w8
LBB0_6:
Lloh0:
	adrp	x23, _gauge_attr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _gauge_attr@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_dlg_attrset
	ldp	w1, w2, [x19, #20]
	mov	x0, x21
	bl	_wmove
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #32
	bl	_waddch
	add	w24, w24, #1
	ldr	w8, [x19, #12]
	cmp	w24, w8
	b.lt	LBB0_8
LBB0_9:
	ldr	w1, [x19, #20]
	ldr	w2, [x19, #28]
	mov	x0, x21
	bl	_wmove
	ldr	w2, [x19, #32]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_wprintw
	ldr	w8, [x23]
Lloh4:
	adrp	x24, _A_REVERSE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _A_REVERSE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	tst	w1, w8
	b.eq	LBB0_11
; %bb.10:
	bl	_dlg_attroff
	b	LBB0_12
LBB0_11:
	bl	_dlg_attrset
LBB0_12:
	ldp	w1, w2, [x19, #20]
	mov	x0, x21
	bl	_wmove
	cmp	w22, #1
	b.lt	LBB0_15
; %bb.13:
	mov	w25, #-1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_winch
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	csinv	w8, w25, w9, eq
	and	w1, w8, w0
	mov	x0, x21
	bl	_waddch
	subs	w22, w22, #1
	b.ne	LBB0_14
LBB0_15:
Lloh6:
	adrp	x8, _dialog_attr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dialog_attr@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dlg_attrset
	mov	x0, x21
	bl	_wmove
	str	w20, [x19]
	ldrsw	x0, [x19, #16]
	bl	_DLG_TRACE
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dlg_trace_win
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_gauge_attr,4,2                 ; @gauge_attr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%*d"

	.comm	_A_REVERSE,4,2                  ; @A_REVERSE
	.comm	_dialog_attr,4,2                ; @dialog_attr
	.no_dead_strip	_draw_value
.subsections_via_symbols
