	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dlg_begin_mixedgauge
_dlg_begin_mixedgauge:                  ## @dlg_begin_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpl	$0, (%rsi)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	8(%r13), %rsi
	movq	56(%r13), %r15
	movl	44(%r13), %r12d
LBB0_13:
	movq	(%r13), %rdi
	leaq	16(%r13), %rdx
	leaq	24(%r13), %rcx
	movq	%r15, %r8
	movl	%r12d, %r9d
	callq	_dlg_auto_size
	movl	16(%r13), %edi
	movl	24(%r13), %esi
	callq	_dlg_print_size
	movl	16(%r13), %edi
	movl	24(%r13), %esi
	callq	_dlg_ctl_size
	movl	24(%r13), %edi
	callq	_dlg_box_x_ordinate
	movl	%eax, %r15d
	movl	16(%r13), %edi
	callq	_dlg_box_y_ordinate
	movl	%eax, %r12d
	movl	16(%r13), %edi
	movl	24(%r13), %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_dlg_new_window
	movl	%eax, 48(%r13)
	movl	%eax, %edi
	callq	_werase
	movl	48(%r13), %edi
	movl	16(%r13), %ecx
	movl	24(%r13), %r8d
	movq	_dialog_attr@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	movq	_border_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_border2_attr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	pushq	%rbx
	pushq	%rax
	callq	_dlg_draw_box2
	addq	$16, %rsp
	movl	48(%r13), %edi
	movq	(%r13), %rsi
	callq	_dlg_draw_title
	movl	48(%r13), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_draw_helpline
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.15:
	movl	32(%r13), %esi
	movl	48(%r13), %edi
	xorl	%edx, %edx
	callq	_wmove
	movq	_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movl	48(%r13), %edi
	movq	_MARGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%ecx, %ecx
	addl	32(%r13), %ecx
	movl	16(%r13), %esi
	movl	24(%r13), %edx
	subl	%ecx, %esi
	addl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_dlg_sub_window
	movl	%eax, 52(%r13)
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_dlg_attrset
	movl	52(%r13), %edi
	movq	8(%r13), %rsi
	movl	16(%r13), %edx
	movl	24(%r13), %ecx
	callq	_dlg_print_autowrap
LBB0_17:
	movl	48(%r13), %edi
	movl	16(%r13), %esi
	movl	24(%r13), %r8d
	addl	$-4, %esi
	movq	_MARGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %edx
	addl	$4, %edx
	movl	%eax, %ecx
	addl	$2, %ecx
	subl	%edx, %r8d
	movl	(%r14), %r9d
	movq	_border_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%ecx, %edx
	pushq	%rax
	callq	_mydraw_mixed_box
	addq	$16, %rsp
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r9d, %r15d
	movl	%r8d, %ebx
	movq	%rdx, %r14
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_curs_set
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	%r14, (%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_clean_copy
	movq	%rax, 8(%r13)
	movl	%ebx, 20(%r13)
	movl	%ebx, 16(%r13)
	movl	16(%rbp), %ebx
	movl	%r15d, 28(%r13)
	movl	%r15d, 24(%r13)
	movl	%ebx, 32(%r13)
	movq	_DIALOG_LISTITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ebx, %r15
	movq	%r15, %rsi
	callq	_dlg_calloc
	movq	%rax, 64(%r13)
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_assert_ptr
	movabsq	$64424509440, %rax              ## imm = 0xF00000000
	movq	%rax, 36(%r13)
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.4:
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_ItemName
	movq	64(%r13), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	movl	%ebx, %edi
	callq	_ItemText
	movq	64(%r13), %rcx
	movl	%eax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ItemName
	movl	%eax, %edi
	callq	_strlen
	cmpl	%eax, 36(%r13)
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, 36(%r13)
	jmp	LBB0_7
LBB0_8:
	movl	36(%r13), %r12d
	movl	40(%r13), %eax
	jmp	LBB0_9
LBB0_3:
	movl	$15, %eax
LBB0_9:
	movq	_MIN_HIGH@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r15
	movq	%r15, 56(%r13)
	movq	_MIN_WIDE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r12d
	movq	_GUTTER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r12d
	addl	%eax, %r12d
	movl	%r12d, 44(%r13)
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.11:
	cmpq	$0, (%rsi)
	je	LBB0_13
## %bb.12:
	movq	_MARGIN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax,2), %r15
	movq	%r15, 56(%r13)
	jmp	LBB0_13
LBB0_10:
	xorl	%esi, %esi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DIALOG_LISTITEM,4,2            ## @DIALOG_LISTITEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dialog_mixedgauge"

	.comm	_MIN_HIGH,8,3                   ## @MIN_HIGH
	.comm	_MIN_WIDE,4,2                   ## @MIN_WIDE
	.comm	_GUTTER,4,2                     ## @GUTTER
	.comm	_MARGIN,4,2                     ## @MARGIN
	.comm	_dialog_attr,4,2                ## @dialog_attr
	.comm	_border_attr,4,2                ## @border_attr
	.comm	_border2_attr,4,2               ## @border2_attr
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ERR,8,3                        ## @ERR
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_stdscr,4,2                     ## @stdscr
	.no_dead_strip	_dlg_begin_mixedgauge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dlg_begin_mixedgauge
lCPI0_0:
	.long	0                               ; 0x0
	.long	15                              ; 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dlg_begin_mixedgauge:                  ; @dlg_begin_mixedgauge
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x26, _MARGIN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MARGIN@GOTPAGEOFF]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	x1, [x20, #8]
	ldr	x4, [x20, #56]
	ldr	w5, [x20, #44]
LBB0_2:
	ldr	x0, [x20]
	add	x2, x20, #16
	add	x3, x20, #24
	bl	_dlg_auto_size
	ldr	w0, [x20, #16]
	ldr	w1, [x20, #24]
	bl	_dlg_print_size
	ldr	w0, [x20, #16]
	ldr	w1, [x20, #24]
	bl	_dlg_ctl_size
	ldr	w0, [x20, #24]
	bl	_dlg_box_x_ordinate
	mov	x21, x0
	ldr	w0, [x20, #16]
	bl	_dlg_box_y_ordinate
	mov	x22, x0
	ldr	w0, [x20, #16]
	ldr	w1, [x20, #24]
	mov	x2, x22
	mov	x3, x21
	bl	_dlg_new_window
	str	w0, [x20, #48]
	bl	_werase
	ldr	w0, [x20, #48]
	ldr	w3, [x20, #16]
	ldr	w4, [x20, #24]
Lloh2:
	adrp	x23, _dialog_attr@GOTPAGE
Lloh3:
	ldr	x23, [x23, _dialog_attr@GOTPAGEOFF]
	ldr	w5, [x23]
Lloh4:
	adrp	x24, _border_attr@GOTPAGE
Lloh5:
	ldr	x24, [x24, _border_attr@GOTPAGEOFF]
	ldr	w6, [x24]
Lloh6:
	adrp	x8, _border2_attr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _border2_attr@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_dlg_draw_box2
	ldr	w0, [x20, #48]
	ldr	x1, [x20]
	bl	_dlg_draw_title
	ldr	w0, [x20, #48]
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_dlg_draw_helpline
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x20, #48]
	ldr	w1, [x20, #32]
	mov	w2, #0
	bl	_wmove
Lloh12:
	adrp	x8, _ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x20, #48]
	ldr	w8, [x20, #16]
	ldr	w9, [x20, #32]
	ldr	w10, [x26]
	add	w9, w9, w10, lsl #1
	sub	w1, w8, w9
	ldr	w2, [x20, #24]
	add	w3, w9, w22
	mov	x4, x21
	bl	_dlg_sub_window
	str	w0, [x20, #52]
	ldr	w1, [x23]
	bl	_dlg_attrset
	ldr	w0, [x20, #52]
	ldr	x1, [x20, #8]
	ldr	w2, [x20, #16]
	ldr	w3, [x20, #24]
	bl	_dlg_print_autowrap
LBB0_6:
	ldr	w0, [x20, #48]
	ldr	w8, [x20, #16]
	sub	w1, w8, #4
	ldr	w8, [x26]
	add	w2, w8, #2
	ldr	w8, [x20, #24]
	sub	w4, w8, w2, lsl #1
	ldr	w5, [x23]
	ldr	w6, [x24]
	mov	x3, x2
	bl	_mydraw_mixed_box
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	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_7:
	mov	x22, x6
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	w0, #0
	bl	_curs_set
	mov	x0, x20
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	str	x25, [x20]
	mov	x0, x24
	bl	_clean_copy
	str	x0, [x20, #8]
	stp	w23, w23, [x20, #16]
	stp	w21, w21, [x20, #24]
	str	w22, [x20, #32]
Lloh15:
	adrp	x8, _DIALOG_LISTITEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DIALOG_LISTITEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	sxtw	x21, w22
	mov	x1, x21
	bl	_dlg_calloc
	str	x0, [x20, #64]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_assert_ptr
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #36]
	cmp	w22, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x24, #0
	mov	w23, #0
	mov	w8, w22
	lsl	x22, x8, #3
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_ItemName
	ldr	x8, [x20, #64]
	add	x8, x8, x24
	str	w0, [x8, #4]
	mov	x0, x23
	bl	_ItemText
	ldr	x8, [x20, #64]
	str	w0, [x8, x24]
	add	w23, w23, #1
	add	x24, x24, #8
	cmp	x22, x24
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_ItemName
	bl	_strlen
	ldr	w8, [x20, #36]
	cmp	w8, w0
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w0, [x20, #36]
	b	LBB0_9
LBB0_12:
	ldp	w8, w9, [x20, #36]
	b	LBB0_14
LBB0_13:
	mov	w8, #0
	mov	w9, #15
LBB0_14:
Lloh22:
	adrp	x10, _MIN_HIGH@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MIN_HIGH@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	add	x4, x10, x21
	str	x4, [x20, #56]
Lloh25:
	adrp	x10, _MIN_WIDE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _MIN_WIDE@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
Lloh28:
	adrp	x11, _GUTTER@GOTPAGE
Lloh29:
	ldr	x11, [x11, _GUTTER@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	add	w8, w8, w10
	add	w8, w8, w11
	add	w5, w8, w9
	str	w5, [x20, #44]
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_2
; %bb.15:
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.16:
	ldrsw	x8, [x26]
	add	x4, x4, x8, lsl #1
	str	x4, [x20, #56]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DIALOG_LISTITEM,4,2            ; @DIALOG_LISTITEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dialog_mixedgauge"

	.comm	_MIN_HIGH,8,3                   ; @MIN_HIGH
	.comm	_MIN_WIDE,4,2                   ; @MIN_WIDE
	.comm	_GUTTER,4,2                     ; @GUTTER
	.comm	_MARGIN,4,2                     ; @MARGIN
	.comm	_dialog_attr,4,2                ; @dialog_attr
	.comm	_border_attr,4,2                ; @border_attr
	.comm	_border2_attr,4,2               ; @border2_attr
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ERR,8,3                        ; @ERR
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_stdscr,4,2                     ; @stdscr
	.no_dead_strip	_dlg_begin_mixedgauge
.subsections_via_symbols
