	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function locate_first_half
_locate_first_half:                     ## @locate_first_half
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movl	$44, %esi
	callq	_find_toplevel_char
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, (%r14)
LBB0_2:
	movq	(%r12), %rbx
	cmpb	$34, (%rbx)
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r15)
	incq	%rbx
	movq	%rbx, (%r12)
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%r15)
LBB0_5:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_25
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$60, %al
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	jne	LBB0_13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_find_template_name_end
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_error
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_is_objc_method_format
	testq	%rax, %rax
	jne	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%rbx), %eax
	cmpb	$45, %al
	jle	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$46, %al
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$58, %al
	jne	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$58, 1(%rbx)
	je	LBB0_8
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rbx), %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$32, %al
	jne	LBB0_16
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_18
	jmp	LBB0_8
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	je	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$9, %al
	jne	LBB0_18
	jmp	LBB0_8
LBB0_25:
	movb	$46, %cl
	movq	%rbx, %rax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%rbx, %rax
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	movzbl	1(%rbx), %ecx
	incq	%rbx
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$46, %cl
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	testb	%cl, %cl
	jne	LBB0_30
## %bb.28:
	movq	%rax, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$9, %al
	je	LBB0_10
## %bb.31:
	cmpl	$0, (%r15)
	je	LBB0_35
## %bb.32:
	leaq	-1(%rbx), %rdi
	movl	$34, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	cmpb	$0, 1(%rax)
	jne	LBB0_35
## %bb.34:
	movb	$0, (%rax)
LBB0_35:
	testq	%r14, %r14
	je	LBB0_37
## %bb.36:
	movb	$44, (%r14)
LBB0_37:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malformed template specification in command"

	.no_dead_strip	_locate_first_half
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function locate_first_half
_locate_first_half:                     ; @locate_first_half
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x0]
	mov	w1, #44
	bl	_find_toplevel_char
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x19]
LBB0_2:
	ldr	x20, [x22]
	ldrb	w8, [x20]
	cmp	w8, #34
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
	add	x20, x20, #1
	str	x20, [x22]
	b	LBB0_5
LBB0_4:
	str	wzr, [x21]
LBB0_5:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_22
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #60
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w8, LBB0_12
	b	LBB0_29
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_find_template_name_end
	mov	x20, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_error
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_is_objc_method_format
	cbnz	x0, LBB0_29
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x20]
	cmp	w8, #45
	b.le	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #46
	b.eq	LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #58
	b.ne	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	ldrb	w8, [x0, #1]!
	cmp	w8, #58
	b.eq	LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w1, #58
	bl	_strchr
	cbnz	x0, LBB0_7
	b	LBB0_29
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #32
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_7
	b	LBB0_29
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w8, LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #9
	b.ne	LBB0_7
	b	LBB0_29
LBB0_22:
	mov	w8, #46
	mov	x0, x20
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x20
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldrb	w8, [x20, #1]!
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w8, #0xff
	cmp	w8, #46
	b.eq	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	cbnz	w8, LBB0_24
; %bb.27:
	mov	x20, x0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x20, x20, #1
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.eq	LBB0_28
; %bb.30:
	ldr	w8, [x21]
	cbz	w8, LBB0_34
; %bb.31:
	sub	x0, x20, #1
	mov	w1, #34
	bl	_strchr
	cbz	x0, LBB0_34
; %bb.32:
	ldrb	w8, [x0, #1]
	cbnz	w8, LBB0_34
; %bb.33:
	strb	wzr, [x0]
LBB0_34:
	cbz	x19, LBB0_36
; %bb.35:
	mov	w8, #44
	strb	w8, [x19]
LBB0_36:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malformed template specification in command"

	.no_dead_strip	_locate_first_half
.subsections_via_symbols
