	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dlg_update_mixedgauge
_dlg_update_mixedgauge:                 ## @dlg_update_mixedgauge
	.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	%esi, %r14d
	movq	%rdi, %r13
	movl	4(%rdi), %edi
	movq	8(%r13), %rsi
	addq	$-3, %rsi
	movl	$4, %edx
	callq	_wmove
	movl	4(%r13), %edi
	movq	_gauge_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_attrset
	movl	(%r13), %eax
	movq	_MARGIN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	negl	%ecx
	addl	%eax, %ecx
	addl	$-6, %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edi
	movl	$32, %esi
	callq	_waddch
	incl	%ebx
	movl	(%r13), %eax
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	negl	%ecx
	addl	%eax, %ecx
	addl	$-6, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_2
LBB0_3:
	movl	4(%r13), %edi
	movq	8(%r13), %rsi
	addq	$-3, %rsi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	addl	$-2, %edx
	callq	_wmove
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wprintw
	movl	(%r15), %eax
	addl	%eax, %eax
	movl	(%r13), %r12d
	subl	%eax, %r12d
	movl	4(%r13), %edi
	addl	$-6, %r12d
	imull	%r14d, %r12d
	movq	_title_attr@GOTPCREL(%rip), %r14
	movq	_A_REVERSE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%esi, (%r14)
	je	LBB0_5
## %bb.4:
	callq	_dlg_attroff
	jmp	LBB0_6
LBB0_5:
	callq	_dlg_attrset
LBB0_6:
	movl	4(%r13), %edi
	movq	8(%r13), %rsi
	addq	$-3, %rsi
	movl	$4, %edx
	callq	_wmove
	cmpl	$100, %r12d
	jl	LBB0_9
## %bb.7:
	movslq	%r12d, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edi
	callq	_winch
	movl	(%r15), %ecx
	movl	(%r14), %edx
	andl	%ecx, %edx
	cmpl	$1, %edx
	movl	$0, %esi
	sbbl	%esi, %esi
	notl	%ecx
	orl	%ecx, %esi
	andl	%eax, %esi
	movl	4(%r13), %edi
	callq	_waddch
	decl	%ebx
	jne	LBB0_8
LBB0_9:
	movq	%r13, %rdi
	callq	_myprint_status
	movl	4(%r13), %edi
	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
	.comm	_MARGIN,4,2                     ## @MARGIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%3d%%"

	.comm	_title_attr,4,2                 ## @title_attr
	.comm	_A_REVERSE,4,2                  ## @A_REVERSE
	.no_dead_strip	_dlg_update_mixedgauge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dlg_update_mixedgauge
_dlg_update_mixedgauge:                 ; @dlg_update_mixedgauge
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	ldr	x8, [x19, #8]
	sub	x1, x8, #3
	mov	w2, #4
	bl	_wmove
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _gauge_attr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gauge_attr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dlg_attrset
	ldr	w8, [x19]
Lloh3:
	adrp	x21, _MARGIN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MARGIN@GOTPAGEOFF]
	ldr	w9, [x21]
	sub	w9, w8, w9, lsl #1
	sub	w9, w9, #6
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	mov	w1, #32
	bl	_waddch
	add	w22, w22, #1
	ldr	w8, [x19]
	ldr	w9, [x21]
	sub	w9, w8, w9, lsl #1
	sub	w9, w9, #6
	cmp	w22, w9
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x19, #4]
	ldr	x9, [x19, #8]
	sub	x1, x9, #3
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sub	w2, w8, #2
	bl	_wmove
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wprintw
	ldr	w8, [x21]
	ldp	w9, w0, [x19]
	sub	w8, w9, w8, lsl #1
	sub	w8, w8, #6
Lloh7:
	adrp	x21, _title_attr@GOTPAGE
Lloh8:
	ldr	x21, [x21, _title_attr@GOTPAGEOFF]
	mul	w22, w8, w20
	ldr	w8, [x21]
Lloh9:
	adrp	x20, _A_REVERSE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _A_REVERSE@GOTPAGEOFF]
	ldr	w1, [x20]
	tst	w1, w8
	b.eq	LBB0_5
; %bb.4:
	bl	_dlg_attroff
	b	LBB0_6
LBB0_5:
	bl	_dlg_attrset
LBB0_6:
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
	sub	x1, x8, #3
	mov	w2, #4
	bl	_wmove
	cmp	w22, #100
	b.lt	LBB0_9
; %bb.7:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w22, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w22, w8, w9
	mov	w23, #-1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	bl	_winch
	ldr	w8, [x21]
	ldr	w9, [x20]
	tst	w9, w8
	csinv	w8, w23, w9, eq
	and	w1, w8, w0
	ldr	w0, [x19, #4]
	bl	_waddch
	subs	w22, w22, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_myprint_status
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dlg_trace_win
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_gauge_attr,4,2                 ; @gauge_attr
	.comm	_MARGIN,4,2                     ; @MARGIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%3d%%"

	.comm	_title_attr,4,2                 ; @title_attr
	.comm	_A_REVERSE,4,2                  ; @A_REVERSE
	.no_dead_strip	_dlg_update_mixedgauge
.subsections_via_symbols
