	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movl	$5160, %eax                     ## imm = 0x1428
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, %eax
	cmpl	$2, %edi
	jne	LBB0_31
## %bb.1:
	movq	%rsi, %r14
	leaq	-5168(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_getcwd
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, -5172(%rbp)               ## 4-byte Spill
	cltq
	cmpb	$47, -1(%rax,%rbx)
	je	LBB0_3
## %bb.2:
	leal	1(%rax), %ecx
	movl	%ecx, -5172(%rbp)               ## 4-byte Spill
	movw	$47, -5168(%rbp,%rax)
LBB0_3:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	leaq	-1072(%rbp), %rdi
	movl	$1, -5176(%rbp)                 ## 4-byte Folded Spill
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	movq	%rax, %rcx
	callq	_fread
	cmpl	$17, %eax
	jge	LBB0_6
LBB0_30:
	movq	%rbx, %rdi
	callq	_fclose
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_4:
	movl	$2, %eax
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_33
## %bb.32:
	addq	$5160, %rsp                     ## imm = 0x1428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movslq	-5172(%rbp), %rdx               ## 4-byte Folded Reload
	movq	%rdx, %rcx
	movq	%rdx, -5192(%rbp)               ## 8-byte Spill
	subl	%edx, -5176(%rbp)               ## 4-byte Folded Spill
	movq	%rbx, -5184(%rbp)               ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	leaq	-1072(%rbp), %rdi
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	movq	-5184(%rbp), %rbx               ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rcx
	callq	_fread
	cmpl	$17, %eax
	jl	LBB0_30
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	movl	%eax, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=2
	addl	%r15d, %r14d
	cmpl	%r14d, %r12d
	jle	LBB0_7
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	movslq	%r14d, %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-1072, %rdi                    ## imm = 0xFBD0
	movl	%r12d, %esi
	subl	%eax, %esi
	callq	_search_gcda
	testl	%eax, %eax
	js	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %r13d
	addl	%r14d, %r13d
	movl	%r13d, %r15d
	sarl	$31, %r15d
	andl	%r13d, %r15d
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	movsbl	-1073(%rbp,%rbx), %edi
	decq	%rbx
	callq	_is_good_char
	testq	%rax, %rax
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	%ebx
	movl	%ebx, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=2
	testl	%r13d, %r13d
	jns	LBB0_26
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpl	%r12d, %r15d
	jge	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	%r15d, %r15
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpb	$47, -1072(%rbp,%r15)
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%r12d, %r15d
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=2
	movslq	%r15d, %rax
	leaq	(%rax,%rbp), %r13
	addq	$-1072, %r13                    ## imm = 0xFBD0
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_is_good_path
	testl	%eax, %eax
	je	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	leaq	-5168(%rbp), %rsi
	movl	-5172(%rbp), %edx               ## 4-byte Reload
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_printf
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-5184(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$-6, %esi
	jmp	LBB0_12
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-5192(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	movl	%r14d, %edx
	addl	-5176(%rbp), %edx               ## 4-byte Folded Reload
	movq	%r13, %rdi
	callq	_memmove
	addl	$-1024, %r15d                   ## imm = 0xFC00
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-5184(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_fseek
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	jmp	LBB0_13
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-5184(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$-1040, %esi                    ## imm = 0xFBF0
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_fseek
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-1072(%rbp), %rdi
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	jmp	LBB0_8
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb+"

	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
L_.str.1:                               ## @.str.1
	.asciz	"can't handle: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #5152
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #1056
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x1
	add	x21, sp, #16
	add	x0, sp, #16
	mov	w1, #4096
	bl	_getcwd
	add	x0, sp, #16
	bl	_strlen
	mov	x19, x0
	sxtw	x8, w19
	add	x9, x8, x21
	ldurb	w9, [x9, #-1]
	cmp	w9, #47
	b.eq	LBB0_3
; %bb.2:
	add	w19, w8, #1
	mov	w9, #47
	strh	w9, [x21, x8]
LBB0_3:
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	add	x24, sp, #1, lsl #12            ; =4096
	add	x24, x24, #16
	mov	w21, #1
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #16
	mov	w1, #1
	mov	x3, x20
	mov	w2, #1024
	bl	_fread
	cmp	w0, #17
	b.ge	LBB0_10
LBB0_5:
	mov	x0, x20
	bl	_fclose
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #2
LBB0_8:
	ldur	x8, [x29, #-96]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.9:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x8, x19
	sxtw	x8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sub	w8, w21, w19
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	sub	x27, x24, #1
Lloh10:
	adrp	x28, _SEEK_CUR@GOTPAGE
Lloh11:
	ldr	x28, [x28, _SEEK_CUR@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x1, x23, x8
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	add	w2, w8, w22
	mov	x0, x23
	bl	_memmove
	sub	w1, w26, #1024
	ldr	w2, [x28]
	mov	x0, x20
	bl	_fseek
	mov	x0, x23
	mov	w1, #1
	mov	x2, x22
	mov	x3, x20
	bl	_fwrite
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #16
	mov	w1, #1
	mov	w2, #1024
	mov	x3, x20
	bl	_fread
	cmp	w0, #17
	b.lt	LBB0_5
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_17 Depth 3
                                        ;       Child Loop BB0_23 Depth 3
	mov	w22, #0
	mov	w25, w0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	w22, w22, w26
	cmp	w25, w22
	b.le	LBB0_12
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_17 Depth 3
                                        ;       Child Loop BB0_23 Depth 3
	add	x0, x24, w22, sxtw
	sub	w1, w25, w22
	bl	_search_gcda
	tbnz	w0, #31, LBB0_30
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	w22, w0, w22
	cmp	w22, #0
	csel	w26, w22, wzr, lt
	mov	x8, x22
LBB0_17:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=3
	sub	x23, x8, #1
	ldrsb	w0, [x27, x8]
	bl	_is_good_char
	mov	x8, x23
	cbnz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	add	w26, w23, #1
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=2
	tbz	w22, #31, LBB0_31
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=2
	cmp	w26, w25
	b.ge	LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=2
	sxtw	x26, w26
LBB0_23:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w8, [x24, x26]
	cmp	w8, #47
	b.eq	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=3
	add	x26, x26, #1
	cmp	x25, x26
	b.ne	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x26, x25
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_15 Depth=2
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
LBB0_27:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x23, x24, w26, sxtw
	mov	x0, x23
	bl	_strlen
	mov	x22, x0
	mov	x0, x23
	bl	_is_good_path
	cbz	w0, LBB0_14
; %bb.28:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x1, sp, #16
	mov	x0, x23
	mov	x2, x19
	bl	_strncmp
	cbz	x0, LBB0_11
; %bb.29:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x21
	mov	x1, x23
	bl	_printf
	b	LBB0_14
LBB0_30:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [x28]
	mov	x0, x20
	mov	w1, #-6
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [x28]
	mov	x0, x20
	mov	w1, #-1040
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_fseek
	b	LBB0_12
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb+"

	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
l_.str.1:                               ; @.str.1
	.asciz	"can't handle: %s\n"

.subsections_via_symbols
