	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extract_subst_tail             ## -- Begin function extract_subst_tail
	.p2align	4, 0x90
_extract_subst_tail:                    ## @extract_subst_tail
	.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	%rdi, %r12
	movq	$0, (%rsi)
	movl	$0, (%rdi)
	movq	_ibufp@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movb	(%rax), %bl
	cmpb	$10, %bl
	jne	LBB0_2
## %bb.1:
	movq	_rhbufi@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_5
LBB0_2:
	movq	%rsi, %r14
	xorl	%eax, %eax
	callq	_extract_subst_template
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rsi
	movb	(%rsi), %cl
	cmpb	$10, %cl
	jne	LBB0_6
LBB0_5:
	movq	_GPR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_6:
	cmpb	%bl, %cl
	jne	LBB0_8
## %bb.7:
	leaq	1(%rsi), %rax
	movq	%rax, (%r15)
	movb	1(%rsi), %cl
	movq	%rax, %rsi
LBB0_8:
	leal	-49(%rcx), %eax
	cmpb	$8, %al
	ja	LBB0_10
## %bb.9:
	movq	(%r14), %rdi
	callq	_STRTOL
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
	cmpb	$103, %cl
	jne	LBB0_12
## %bb.11:
	incq	%rsi
	movq	%rsi, (%r15)
	movq	_GSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r12)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ibufp,8,3                      ## @ibufp
	.comm	_rhbufi,8,3                     ## @rhbufi
	.comm	_GPR,4,2                        ## @GPR
	.comm	_ERR,4,2                        ## @ERR
	.comm	_GSG,4,2                        ## @GSG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extract_subst_tail             ; -- Begin function extract_subst_tail
	.p2align	2
_extract_subst_tail:                    ; @extract_subst_tail
	.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	x19, x0
	str	xzr, [x1]
	str	wzr, [x0]
Lloh0:
	adrp	x21, _ibufp@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ibufp@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrb	w22, [x8]
	cmp	w22, #10
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh2:
	adrp	x8, _rhbufi@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rhbufi@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
	b	LBB0_5
LBB0_2:
	mov	x20, x1
	bl	_extract_subst_template
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x1, [x21]
	ldrb	w8, [x1]
	cmp	w8, #10
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #0
LBB0_5:
Lloh5:
	adrp	x8, _GPR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPR@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_15
LBB0_7:
Lloh7:
	adrp	x8, _ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_8:
	cmp	w8, w22
	b.ne	LBB0_10
; %bb.9:
	add	x9, x1, #1
	str	x9, [x21]
	ldrb	w8, [x1, #1]
	mov	x1, x9
LBB0_10:
	sub	w9, w8, #49
	cmp	w9, #8
	b.hi	LBB0_12
; %bb.11:
	ldr	x0, [x20]
	bl	_STRTOL
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	cmp	w8, #103
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	add	x8, x1, #1
	str	x8, [x21]
Lloh10:
	adrp	x8, _GSG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSG@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ibufp,8,3                      ; @ibufp
	.comm	_rhbufi,8,3                     ; @rhbufi
	.comm	_GPR,4,2                        ; @GPR
	.comm	_ERR,4,2                        ; @ERR
	.comm	_GSG,4,2                        ; @GSG
.subsections_via_symbols
