	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_auto_sizefile              ## -- Begin function dlg_auto_sizefile
	.p2align	4, 0x90
_dlg_auto_sizefile:                     ## @dlg_auto_sizefile
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_dlg_count_columns
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_dlg_exiterr
LBB0_5:
	movl	(%r12), %ecx
	cmpl	$-1, %ecx
	je	LBB0_7
## %bb.6:
	movl	(%r14), %eax
	cmpl	$-1, %eax
	jne	LBB0_12
LBB0_7:
	movq	_SLINES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_dialog_vars@GOTPCREL(%rip), %rdx
	movq	16(%rdx), %rsi
	xorl	%ecx, %ecx
	movl	$0, %edi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	(%rdx), %edi
LBB0_9:
	subl	%edi, %eax
	movl	%eax, (%r12)
	movq	_SCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movl	4(%rdx), %ecx
LBB0_11:
	subl	%ecx, %eax
	movl	%eax, (%r14)
	movl	(%r12), %ecx
LBB0_12:
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.13:
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_SCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r14)
	jle	LBB0_16
## %bb.15:
	movl	%eax, (%r14)
LBB0_16:
	movq	_SLINES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r12)
	jle	LBB0_18
## %bb.17:
	movl	%eax, (%r12)
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_feof
	xorl	%r12d, %r12d
	testl	%eax, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_20
LBB0_34:
	movq	_SLINES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %esi
	addl	$2, %esi
	callq	_MIN
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_SCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	$4, %r15d
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_MAX
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_MIN
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_20:
	xorl	%r12d, %r12d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	xorl	%r13d, %r13d
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	movslq	%r15d, %r15
	cmpq	%r15, %r13
	cmovgl	%r13d, %r15d
	incl	%r12d
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_34
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_34
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	callq	_getc
	cmpl	$10, %eax
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%eax, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=2
	movq	%r13, %rax
	cqto
	idivq	%rcx
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=2
	subq	%rdx, %rcx
LBB0_32:                                ##   in Loop: Header=BB0_25 Depth=2
	addq	%rcx, %r13
	movq	%rbx, %rdi
	callq	_getc
	movl	%eax, %r14d
	cmpl	$10, %eax
	je	LBB0_33
LBB0_25:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	$1, %ecx
	movq	_TAB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	_dialog_vars@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	"dlg_auto_sizefile: Cannot open input file %s"

	.comm	_SLINES,4,2                     ## @SLINES
	.comm	_dialog_vars,24,3               ## @dialog_vars
	.comm	_SCOLS,4,2                      ## @SCOLS
	.comm	_TAB,4,2                        ## @TAB
	.comm	_dialog_state,8,3               ## @dialog_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_auto_sizefile              ; -- Begin function dlg_auto_sizefile
	.p2align	2
_dlg_auto_sizefile:                     ; @dlg_auto_sizefile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x25, x1
	cbz	x0, LBB0_2
; %bb.1:
	bl	_dlg_count_columns
	mov	x24, x0
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_fopen
	mov	x23, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_dlg_exiterr
LBB0_5:
	ldr	w8, [x20]
Lloh4:
	adrp	x25, _SLINES@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SLINES@GOTPAGEOFF]
Lloh6:
	adrp	x26, _SCOLS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SCOLS@GOTPAGEOFF]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.6:
	ldr	w9, [x19]
	cmn	w9, #1
	b.ne	LBB0_8
LBB0_7:
	ldr	w8, [x25]
Lloh8:
	adrp	x9, _dialog_vars@GOTPAGE
Lloh9:
	ldr	x9, [x9, _dialog_vars@GOTPAGEOFF]
	ldr	x10, [x9, #16]
	ldr	w11, [x9]
	cmp	x10, #0
	csel	w11, wzr, w11, eq
	sub	w8, w8, w11
	cmp	x10, #0
	str	w8, [x20]
	ldr	w8, [x26]
	ldr	w9, [x9, #4]
	csel	w9, wzr, w9, eq
	sub	w9, w8, w9
	str	w9, [x19]
	ldr	w8, [x20]
LBB0_8:
	cbz	w8, LBB0_15
; %bb.9:
	cbz	w9, LBB0_15
; %bb.10:
	mov	x0, x23
	bl	_fclose
	ldr	w9, [x19]
	ldr	w8, [x26]
	cmp	w9, w8
	b.le	LBB0_12
; %bb.11:
	str	w8, [x19]
LBB0_12:
	ldr	w9, [x20]
	ldr	w8, [x25]
	cmp	w9, w8
	b.le	LBB0_14
; %bb.13:
	str	w8, [x20]
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x0, x23
	bl	_feof
	stp	w22, w21, [sp, #8]              ; 8-byte Folded Spill
	mov	w28, #0
	cbz	w0, LBB0_17
LBB0_16:
Lloh10:
	adrp	x8, _SLINES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SLINES@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	add	w8, w8, w28
	add	w1, w8, #2
	bl	_MIN
	str	w0, [x20]
Lloh13:
	adrp	x8, _SCOLS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SCOLS@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	add	w0, w24, #4
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_MAX
	mov	x1, x0
	mov	x0, x20
	bl	_MIN
	str	w0, [x19]
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_fclose
LBB0_17:
Lloh16:
	adrp	x21, _TAB@GOTPAGE
Lloh17:
	ldr	x21, [x21, _TAB@GOTPAGEOFF]
Lloh18:
	adrp	x26, _dialog_vars@GOTPAGE
Lloh19:
	ldr	x26, [x26, _dialog_vars@GOTPAGEOFF]
Lloh20:
	adrp	x27, _dialog_state@GOTPAGE
Lloh21:
	ldr	x27, [x27, _dialog_state@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x22, #0
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	x22, w24, sxtw
	csel	w24, w22, w24, gt
	add	w28, w28, #1
	mov	x0, x23
	bl	_feof
	cbnz	w0, LBB0_16
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	mov	x0, x23
	bl	_ferror
	cbnz	x0, LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x23
	bl	_getc
	cmp	w0, #10
	b.eq	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x25, x0
	mov	x22, #0
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=2
	ldr	x8, [x27]
	sdiv	x9, x22, x8
	neg	x10, x22
	madd	x9, x9, x8, x10
	add	x8, x8, x9
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x22, x8, x22
	mov	x0, x23
	bl	_getc
	mov	x25, x0
	cmp	w0, #10
	b.eq	LBB0_19
LBB0_25:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_feof
	cbnz	w0, LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldr	w8, [x21]
	ldr	x9, [x26, #8]
	cmp	w25, w8
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	w8, #1
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	"dlg_auto_sizefile: Cannot open input file %s"

	.comm	_SLINES,4,2                     ; @SLINES
	.comm	_dialog_vars,24,3               ; @dialog_vars
	.comm	_SCOLS,4,2                      ; @SCOLS
	.comm	_TAB,4,2                        ; @TAB
	.comm	_dialog_state,8,3               ; @dialog_state
.subsections_via_symbols
