	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finish_input
_finish_input:                          ## @finish_input
	.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
	movq	_glyphs_utf8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_input_position@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_concat_strings
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_format@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_strlen
	movl	%eax, %r15d
	leal	-1(%r15), %r14d
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.1:
	movq	(%r12), %rax
	movl	%r14d, %r8d
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
LBB0_9:
	testb	$1, %r8b
	movq	_format@GOTPCREL(%rip), %r12
	je	LBB0_13
## %bb.10:
	cmpb	$37, (%rax,%rsi)
	jne	LBB0_12
## %bb.11:
	xorl	%ecx, %ecx
	cmpb	$115, 1(%rsi,%rax)
	sete	%cl
	addl	%ecx, %ebx
LBB0_12:
	movq	_format@GOTPCREL(%rip), %r12
LBB0_13:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movq	%r12, %rcx
	movl	%eax, %r12d
	movq	(%rcx), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leal	-2(%r12), %ecx
	imull	%ebx, %ecx
	leal	(%rax,%rcx), %edi
	incl	%edi
	movl	$1, %esi
	callq	_scalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	movq	_format@GOTPCREL(%rip), %rdx
	jle	LBB0_21
## %bb.14:
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movb	%al, (%rbx)
	incq	%rbx
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%r13d
	cmpl	%r15d, %r13d
	jge	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rcx
	movslq	%r13d, %r12
	movzbl	(%rcx,%r12), %eax
	cmpb	$37, %al
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	%r14d, %r13d
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$115, 1(%rcx,%r12)
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%r12
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strncat
	movq	_format@GOTPCREL(%rip), %rdx
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	%r12d, %r13d
	jmp	LBB0_20
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_sockfd@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_ipc_send_message
	movq	%rbx, %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_exit
LBB0_3:
	movl	%r8d, %edx
	andl	$-2, %edx
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %rdi
	cmpq	%rsi, %rdx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$37, (%rax,%rdi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	cmpb	$115, 1(%rax,%rdi)
	sete	%sil
	addl	%esi, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	2(%rdi), %rsi
	cmpb	$37, 1(%rax,%rdi)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	cmpb	$115, 2(%rax,%rdi)
	sete	%cl
	addl	%ecx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_glyphs_utf8,4,2                ## @glyphs_utf8
	.comm	_input_position,4,2             ## @input_position
	.comm	_format,8,3                     ## @format
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"occurrences = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"command = %s\n"

	.comm	_sockfd,4,2                     ## @sockfd
	.no_dead_strip	_finish_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finish_input
_finish_input:                          ; @finish_input
	.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
Lloh0:
	adrp	x8, _glyphs_utf8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _glyphs_utf8@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _input_position@GOTPAGE
Lloh4:
	ldr	x8, [x8, _input_position@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_concat_strings
	mov	x19, x0
Lloh6:
	adrp	x24, _format@GOTPAGE
Lloh7:
	ldr	x24, [x24, _format@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_strlen
	mov	x20, x0
	mov	w21, #0
	subs	w25, w0, #1
	b.le	LBB0_5
; %bb.1:
	ldr	x8, [x24]
	add	x8, x8, #1
	mov	x9, x25
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	subs	x9, x9, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w10, [x8, #-1]
	cmp	w10, #37
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w10, [x8]
	cmp	w10, #115
	cinc	w21, w21, eq
	b	LBB0_2
LBB0_5:
	str	x21, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	ldr	x0, [x24]
	bl	_strlen
	sub	w8, w22, #2
	madd	w8, w8, w21, w0
	add	w0, w8, #1
	mov	w1, #1
	bl	_scalloc
	mov	x21, x0
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.6:
	mov	w8, #0
	sxtw	x26, w22
	mov	x23, x21
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w9, [x23], #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w8, #1
	cmp	w8, w20
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24]
	sxtw	x11, w8
	ldrb	w9, [x10, x11]
	cmp	w9, #37
	ccmp	w8, w25, #4, eq
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x11, #1
	ldrb	w10, [x10, x27]
	cmp	w10, #115
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_strncat
	add	x23, x23, x26
	mov	x8, x27
	b	LBB0_8
LBB0_12:
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh12:
	adrp	x8, _sockfd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sockfd@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
	bl	_ipc_send_message
	mov	x0, x21
	bl	_free
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_glyphs_utf8,4,2                ; @glyphs_utf8
	.comm	_input_position,4,2             ; @input_position
	.comm	_format,8,3                     ; @format
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"occurrences = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"command = %s\n"

	.comm	_sockfd,4,2                     ; @sockfd
	.no_dead_strip	_finish_input
.subsections_via_symbols
