	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_cells
_find_cells:                            ## @find_cells
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdx), %r13d
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r14
	movabsq	$4294968832, %r15               ## imm = 0x100000600
	movq	%r13, %rbx
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-128(%rbp), %rbx                ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %r13                ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	jne	LBB0_25
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r14, %rdi
	movl	$64, %esi
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_strlen
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %eax
	addq	%rbp, %rax
	addq	$-112, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	decq	%rax
	cmpq	%r14, %rax
	jb	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rax), %ecx
	cmpq	$32, %rcx
	ja	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	btq	%rcx, %r15
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movb	$0, (%rax)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movb	-112(%rbp), %cl
	testb	%cl, %cl
	je	LBB0_24
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$35, %cl
	je	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	jle	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_16
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-128(%rbp), %ebx                ## 4-byte Folded Reload
	jne	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	leal	8(,%rbx,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, (%r12)
	movq	%r14, %rdi
	callq	_strdup
	movslq	%ebx, %rcx
	movq	%rax, (%r13,%rcx,8)
	movq	(%r12), %rax
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	jmp	LBB0_22
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	jmp	LBB0_23
LBB0_19:
	movq	-120(%rbp), %r13                ## 8-byte Reload
LBB0_25:
	movq	%r13, %rdi
	callq	_fclose
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%ebx, (%rax)
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.27:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.no_dead_strip	_find_cells
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_cells
_find_cells:                            ; @find_cells
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	w23, [x2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_23
; %bb.1:
	mov	x21, x0
	add	x24, sp, #8
	mov	w25, #1
	mov	x26, #1536
	movk	x26, #1, lsl #32
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x23
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	mov	x23, x27
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_22
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_strlen
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x24, w0, uxtw
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	sub	x8, x8, #1
	cmp	x8, x24
	b.lo	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x8]
	cmp	w9, #32
	lsl	x9, x25, x9
	and	x9, x9, x26
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	strb	wzr, [x8]
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	ldrb	w9, [sp, #8]
	cbz	w9, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #35
	b.eq	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #1
	b.lt	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
	mov	w27, w23
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	x0, [x8, x22, lsl #3]
	add	x1, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x22, x22, #1
	cmp	x27, x22
	b.ne	LBB0_15
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, w23
	b.ne	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	add	w27, w23, #1
	lsl	w1, w27, #3
	bl	_realloc
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	str	x0, [x20]
	add	x0, sp, #8
	bl	_strdup
	sbfiz	x8, x23, #3, #32
	str	x0, [x22, x8]
	ldr	x9, [x20]
	ldr	x8, [x9, x8]
	cbnz	x8, LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	b	LBB0_4
LBB0_22:
	mov	x0, x21
	bl	_fclose
	str	w23, [x19]
LBB0_23:
	ldr	x8, [sp, #72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.no_dead_strip	_find_cells
.subsections_via_symbols
