	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_str                       ## -- Begin function find_str
	.p2align	4, 0x90
_find_str:                              ## @find_str
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%rbx), %edi
	callq	_toupper
	movb	%al, (%r12,%rbx)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
LBB0_4:
	movq	_MAX_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	testl	%r13d, %r13d
	setne	-49(%rbp)                       ## 1-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_puts
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	-64(%rbp)                       ## 8-byte Folded Spill
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAX_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_21
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	cltq
	cmpb	$10, -1(%rax,%r14)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movb	$0, -1(%r14,%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_strcpy
	testl	%r15d, %r15d
	setg	%al
	andb	-49(%rbp), %al                  ## 1-byte Folded Reload
	cmpb	$1, %al
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14,%rbx), %edi
	callq	_toupper
	movb	%al, (%r14,%rbx)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strstr
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_printf
	jmp	LBB0_18
LBB0_5:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_21:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
LBB0_23:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setg	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_25
## %bb.24:
	movb	%cl, %al
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STR,4,2                    ## @MAX_STR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%ld:"

L_.str.1:                               ## @.str.1
	.asciz	"%ld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_str                       ; -- Begin function find_str
	.p2align	2
_find_str:                              ; @find_str
	.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
	sub	sp, sp, #16
	mov	x28, x5
	stp	w4, w3, [x29, #-96]             ; 8-byte Folded Spill
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_STR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_STR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
	cbz	w5, LBB0_4
; %bb.1:
	mov	x0, x23
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w19, w0
	mov	x26, x23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x26]
	bl	_toupper
	strb	w0, [x26], #1
	subs	x19, x19, #1
	b.ne	LBB0_3
LBB0_4:
Lloh10:
	adrp	x8, _MAX_STR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_STR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_fgets
	cbz	x0, LBB0_20
; %bb.5:
	mov	x27, #0
	mov	x26, #0
	cmp	w28, #0
	cset	w19, ne
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_puts
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh13:
	adrp	x8, _MAX_STR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_STR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_fgets
	cbz	x0, LBB0_21
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x0, x20
	bl	_strlen
	mov	x28, x0
	sxtw	x8, w28
	sub	x8, x8, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	wzr, [x20, x8]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	mov	x1, x20
	bl	_strcpy
	cmp	w28, #0
	cset	w8, gt
	and	w8, w19, w8
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w28, w28
	mov	x24, x20
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x24]
	bl	_toupper
	strb	w0, [x24], #1
	subs	x28, x28, #1
	b.ne	LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	mov	x0, x20
	mov	x1, x23
	bl	_strstr
	cbz	w21, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x0, LBB0_8
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x0, LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cbnz	w8, LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	w8, [x29, #-96]                 ; 4-byte Folded Reload
	cbz	w8, LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	bl	_printf
	b	LBB0_6
LBB0_20:
	mov	x26, #0
LBB0_21:
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cbz	w8, LBB0_23
; %bb.22:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	bl	_printf
LBB0_23:
	cmp	x26, #0
	cset	w0, gt
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	sub	sp, x29, #80
	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_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STR,4,2                    ; @MAX_STR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%ld:"

l_.str.1:                               ; @.str.1
	.asciz	"%ld\n"

.subsections_via_symbols
