	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_subst
_read_subst:                            ## @read_subst
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	incq	%rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_4:
	xorl	%edi, %edi
	addq	$-1, %r15
	setb	%dil
	callq	_assert
	movq	-40(%rbp), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	movq	%r12, (%rbx)
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	callq	_VEC_PUSH_STR
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movl	(%rax,%r15,4), %esi
	callq	_VEC_PUSH_STR
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	cmpb	$0, (%rax)
	sete	%r14b
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ERANGE,8,3                     ## @ERANGE
	.no_dead_strip	_read_subst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_subst
_read_subst:                            ; @read_subst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	add	x0, x8, #1
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EINVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ERANGE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
LBB0_3:
	subs	x21, x0, #1
	cset	w0, hs
	bl	_assert
	ldr	x20, [sp, #8]
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	str	x20, [x0], #16
	mov	x20, x19
	ldr	x8, [x20, #8]!
	ldr	w1, [x8, x21, lsl #2]
	bl	_VEC_PUSH_STR
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_VEC_PUSH_STR
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ERANGE,8,3                     ; @ERANGE
	.no_dead_strip	_read_subst
.subsections_via_symbols
