	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_high
_read_high:                             ## @read_high
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	1(%rsi), %r15
	movq	%r15, %rdi
	callq	_xalloc
	movq	%rax, %r14
	movl	40(%rbx), %edi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_read
	movl	%eax, (%rbx)
	cmpl	$-1, %eax
	je	LBB0_36
## %bb.1:
	cltq
	movb	$0, (%r14,%rax)
	movq	_dialog_vars@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_17
## %bb.2:
	movq	$0, 8(%rbx)
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_3
## %bb.4:
	movq	_TAB@GOTPCREL(%rip), %rax
	movb	(%rax), %r9b
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdi
	cmpb	$10, %al
	movq	%rdi, 8(%rbx)
	cmoveq	%rdi, %rsi
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rcx), %eax
	cmpb	%r9b, %al
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	orq	%r10, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cqto
	idivq	%r10
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r10d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	%r10, %rdi
	subq	%rdx, %rdi
	movq	%rdi, 8(%rbx)
	jmp	LBB0_11
LBB0_17:
	cmpq	$0, 32(%rbx)
	je	LBB0_19
## %bb.18:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%r15, %rdi
	callq	_xalloc
	movq	%rax, 24(%rbx)
LBB0_19:
	movslq	(%rbx), %r8
	movq	%r8, 8(%rbx)
	jmp	LBB0_20
LBB0_3:
	xorl	%edi, %edi
LBB0_12:
	cmpq	16(%rbx), %rdi
	jle	LBB0_20
## %bb.13:
	cmpq	$0, 32(%rbx)
	je	LBB0_15
## %bb.14:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	jmp	LBB0_16
LBB0_15:
	movq	24(%rbx), %rdi
	callq	_free
	movq	8(%rbx), %rdi
LBB0_16:
	movq	%rdi, 16(%rbx)
	incq	%rdi
	callq	_xalloc
	movq	%rax, 24(%rbx)
	movl	(%rbx), %r8d
LBB0_20:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.22:
	xorl	%r11d, %r11d
	movq	_TAB@GOTPCREL(%rip), %r8
	movq	_dialog_state@GOTPCREL(%rip), %r9
	xorl	%r10d, %r10d
	xorl	%edi, %edi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_23 Depth=1
	movslq	%edi, %rcx
	incl	%edi
	cmpb	$10, %al
	cmoveq	%rdi, %r10
	movq	24(%rbx), %rdx
	movb	%al, (%rdx,%rcx)
                                        ## kill: def $edi killed $edi killed $rdi def $rdi
LBB0_34:                                ##   in Loop: Header=BB0_23 Depth=1
	movslq	(%rbx), %rax
	cmpq	%rax, %r11
	jge	LBB0_35
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
	movb	(%r14,%r11), %al
	incq	%r11
	cmpb	(%r8), %al
	jne	LBB0_39
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_39
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	(%r9), %rsi
	movl	%edi, %eax
	subl	%r10d, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_28:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%esi, %ecx
	subl	%edx, %ecx
	testl	%ecx, %ecx
	jle	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=1
	movslq	%edi, %rdi
	notl	%edx
	addl	%esi, %edx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpl	$3, %edx
	jb	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=1
	andl	$-4, %ecx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rdx
	movb	$32, (%rdx,%rdi)
	movq	24(%rbx), %rdx
	movb	$32, 1(%rdx,%rdi)
	movq	24(%rbx), %rdx
	movb	$32, 2(%rdx,%rdi)
	movq	24(%rbx), %rdx
	movb	$32, 3(%rdx,%rdi)
	addq	$4, %rdi
	addl	$-4, %ecx
	jne	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=1
	testl	%eax, %eax
	je	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rcx
	movb	$32, (%rcx,%rdi)
	incq	%rdi
	decl	%eax
	jne	LBB0_33
	jmp	LBB0_34
LBB0_21:
	xorl	%edi, %edi
LBB0_35:
	movq	24(%rbx), %rax
	movslq	%edi, %rcx
	movb	$0, (%rax,%rcx)
LBB0_36:
	cmpq	$-1, 8(%rbx)
	jne	LBB0_38
## %bb.37:
	leaq	L_.str(%rip), %rdi
	callq	_dlg_exiterr
LBB0_38:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dialog_vars,8,3                ## @dialog_vars
	.comm	_TAB,1,0                        ## @TAB
	.comm	_dialog_state,8,3               ## @dialog_state
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading file"

	.no_dead_strip	_read_high
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_high
_read_high:                             ; @read_high
	.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	x22, x1
	mov	x20, x0
	add	x21, x1, #1
	mov	x0, x21
	bl	_xalloc
	mov	x19, x0
	ldr	w0, [x20, #40]
	mov	x1, x19
	mov	x2, x22
	bl	_read
	str	w0, [x20]
	cmn	w0, #1
	b.eq	LBB0_28
; %bb.1:
	strb	wzr, [x19, w0, sxtw]
Lloh0:
	adrp	x22, _dialog_vars@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dialog_vars@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _TAB@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TAB@GOTPAGEOFF]
Lloh4:
	adrp	x24, _dialog_state@GOTPAGE
Lloh5:
	ldr	x24, [x24, _dialog_state@GOTPAGEOFF]
	cbz	x8, LBB0_8
; %bb.2:
	str	xzr, [x20, #8]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x8, #0
	mov	x10, #0
	ldrb	w11, [x23]
	ldr	x12, [x24]
	mov	x13, x9
	mov	x14, x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w15, #10
	csinc	x10, x10, x8, ne
	add	x8, x8, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x20, #8]
	add	x14, x14, #1
	subs	x13, x13, #1
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w15, [x14]
	cmp	w15, w11
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x15, x8, x10
	neg	x16, x15
	sdiv	x15, x15, x12
	madd	x15, x15, x12, x16
	add	x8, x8, x12
	add	x8, x8, x15
	b	LBB0_5
LBB0_8:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20, #32]
	mov	x0, x21
	bl	_xalloc
	str	x0, [x20, #24]
LBB0_10:
	ldrsw	x9, [x20]
	str	x9, [x20, #8]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	b	LBB0_17
LBB0_11:
	mov	x8, #0
LBB0_12:
	ldr	x10, [x20, #16]
	cmp	x8, x10
	b.le	LBB0_17
; %bb.13:
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_15
; %bb.14:
Lloh9:
	adrp	x9, _FALSE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x20, #32]
	b	LBB0_16
LBB0_15:
	ldr	x0, [x20, #24]
	bl	_free
	ldr	x8, [x20, #8]
LBB0_16:
	str	x8, [x20, #16]
	add	x0, x8, #1
	bl	_xalloc
	str	x0, [x20, #24]
	ldr	w9, [x20]
LBB0_17:
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.18:
	mov	x8, #0
	mov	x9, #0
	mov	w11, #0
	mov	w10, #32
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x13, [x20, #24]
	strb	w12, [x13, w11, sxtw]
	add	w11, w11, #1
	cmp	w12, #10
	csel	x9, x11, x9, eq
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x8, x8, #1
	ldrsw	x12, [x20]
	cmp	x8, x12
	b.ge	LBB0_27
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	ldrb	w12, [x19, x8]
	ldrb	w13, [x23]
	ldr	x14, [x22]
	cmp	w12, w13
	ccmp	x14, #0, #4, eq
	b.eq	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x12, [x24]
	sub	w13, w11, w9
	neg	w14, w13
	sxtw	x13, w13
	sdiv	x13, x13, x12
	madd	w13, w13, w12, w14
	add	w12, w12, w13
	cmp	w12, #1
	b.lt	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	sxtw	x11, w11
LBB0_24:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x20, #24]
	add	x13, x11, #1
	strb	w10, [x14, x11]
	mov	x11, x13
	subs	w12, w12, #1
	b.ne	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x11, x13
	b	LBB0_20
LBB0_26:
	mov	w11, #0
LBB0_27:
	ldr	x8, [x20, #24]
	strb	wzr, [x8, w11, sxtw]
LBB0_28:
	ldr	x8, [x20, #8]
	cmn	x8, #1
	b.ne	LBB0_30
; %bb.29:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlg_exiterr
LBB0_30:
	mov	x0, x19
	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	_free
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dialog_vars,8,3                ; @dialog_vars
	.comm	_TAB,1,0                        ; @TAB
	.comm	_dialog_state,8,3               ; @dialog_state
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading file"

	.no_dead_strip	_read_high
.subsections_via_symbols
