	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_watchcat_str           ## -- Begin function prepare_watchcat_str
	.p2align	4, 0x90
_prepare_watchcat_str:                  ## @prepare_watchcat_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_strlen
	movq	_MAX_NAME_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	movl	$43, %eax
	movl	$32, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_prep_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpb	$0, (%r12)
	je	LBB0_21
## %bb.3:
	movl	$1, %r15d
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %r15d
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r15d, %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movb	%cl, (%r14,%rax)
	addq	%rax, %r14
	incq	%r14
	movslq	%ebx, %rcx
	addq	%rcx, %r13
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %ecx
	movq	%r12, %rax
	subq	%rcx, %rax
	cmpb	$0, (%r13)
	movq	%r13, %r12
	movl	%edx, %r15d
	je	LBB0_21
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	cmpq	%rax, %r12
	je	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %r13
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$31, (%r13)
	jne	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$63, 1(%r13,%rbx)
	leaq	1(%rbx), %rbx
	ja	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_get_word
	movl	%eax, %ebx
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	leal	-1(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$510, %eax                      ## imm = 0x1FE
	setb	%dil
	callq	_assert
	cmpb	$31, (%r13)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_prep_buf_res@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_my_lc_str
	movl	%eax, %r15d
	movq	_prep_buf_res@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_get_notword
	testl	%eax, %eax
	js	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %r13
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%eax
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$31, (%r13)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%r13
	decl	%eax
	cmpl	$1, %eax
	jg	LBB0_9
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_21:
	movb	$0, (%r14)
	movq	_prep_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.24:
	movq	%rax, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prepare_str_cp1251             ## TAILCALL
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_fprintf
	movl	$2, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NAME_SIZE,8,3              ## @MAX_NAME_SIZE
	.comm	_prep_buf,8,3                   ## @prep_buf
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error at %.30s\n"

	.comm	_prep_buf_res,8,3               ## @prep_buf_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_watchcat_str           ; -- Begin function prepare_watchcat_str
	.p2align	2
_prepare_watchcat_str:                  ; @prepare_watchcat_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
	mov	x19, x1
	mov	x20, x0
	bl	_strlen
Lloh0:
	adrp	x8, _MAX_NAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_20
; %bb.1:
	mov	w8, #32
	mov	w9, #43
	cmp	w19, #0
	csel	w26, w9, w8, eq
Lloh3:
	adrp	x8, _prep_buf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _prep_buf@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	ldrb	w8, [x20]
	cbz	w8, LBB0_21
; %bb.2:
	mov	x8, #0
	mov	w28, #1
Lloh6:
	adrp	x27, _prep_buf_res@GOTPAGE
Lloh7:
	ldr	x27, [x27, _prep_buf_res@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	mov	x24, x23
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, w24, sxtw
	strb	w26, [x21], #1
	add	x22, x22, w23, sxtw
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x20, w28, uxtw
	ldrb	w9, [x22]
	mov	x20, x22
	mov	x28, x25
	cbz	w9, LBB0_21
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	x20, x8
	b.eq	LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x20
	cbz	w28, LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #31
	b.ne	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, #0
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x22, x23
	ldrb	w8, [x8, #1]
	add	x23, x23, #1
	cmp	w8, #63
	b.hi	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w25, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_get_word
	mov	x23, x0
	mov	w25, #0
	cbz	w0, LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w23, #1
	cmp	w8, #510
	cset	w0, lo
	bl	_assert
	ldrb	w8, [x22]
	cmp	w8, #31
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27]
	mov	x1, x22
	mov	x2, x23
	bl	_my_lc_str
	mov	x24, x0
	ldr	x1, [x27]
	mov	x0, x21
	mov	x2, x24
	bl	_memcpy
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_get_notword
	tbnz	w0, #31, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x20
	cbz	w0, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w0, #1
	mov	x22, x20
LBB0_18:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x22]
	cmp	w9, #31
	b.eq	LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x22, x22, #1
	sub	w8, w8, #1
	cmp	w8, #1
	b.gt	LBB0_18
	b	LBB0_8
LBB0_20:
	mov	x0, #0
	b	LBB0_23
LBB0_21:
	strb	wzr, [x21]
Lloh8:
	adrp	x8, _prep_buf@GOTPAGE
Lloh9:
	ldr	x8, [x8, _prep_buf@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	cbz	w19, LBB0_23
; %bb.22:
	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
	b	_prepare_str_cp1251
LBB0_23:
	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_24:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	w0, #2
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NAME_SIZE,8,3              ; @MAX_NAME_SIZE
	.comm	_prep_buf,8,3                   ; @prep_buf
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error at %.30s\n"

	.comm	_prep_buf_res,8,3               ; @prep_buf_res
.subsections_via_symbols
