	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function origin_subst_one
_origin_subst_one:                      ## @origin_subst_one
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movslq	%r13d, %r13
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r13, %rax
	incl	%ebx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_obj_resolve_origin
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	(%r14), %rdi
LBB0_9:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r14d, %ecx
	subl	%r13d, %ecx
	imull	%ebx, %ecx
	leal	(%rax,%rcx), %edi
	incl	%edi
	callq	_xmalloc
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_strstr
	movq	%r15, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %r12
	movslq	-56(%rbp), %rbx                 ## 4-byte Folded Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r15
	subq	%r13, %r15
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addq	%r14, %r15
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movb	$0, (%rbx,%r15)
	addq	%rbx, %r15
	movq	%r12, %r13
	addq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_strstr
	movq	%rax, %r12
	movq	%r15, %r14
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strcat
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_5:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	%r15, %rax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xstrdup                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_origin_subst_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function origin_subst_one
_origin_subst_one:                      ; @origin_subst_one
	.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
	mov	x26, x4
	mov	x22, x3
	mov	x21, x2
	mov	x27, x1
	mov	x24, x0
	mov	x0, x2
	bl	_strlen
	mov	x23, x0
	mov	x0, x27
	mov	x1, x21
	bl	_strstr
	cbz	x0, LBB0_11
; %bb.1:
	mov	w25, #0
	sxtw	x20, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, x20
	add	w25, w25, #1
	mov	x1, x21
	bl	_strstr
	cbnz	x0, LBB0_2
; %bb.3:
	cbz	x24, LBB0_6
; %bb.4:
	mov	x0, x24
	bl	_obj_resolve_origin
	cbz	w0, LBB0_11
; %bb.5:
	ldr	x22, [x24]
LBB0_6:
	str	w26, [sp, #4]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
	mov	x0, x27
	bl	_strlen
	sub	w8, w24, w23
	madd	w8, w8, w25, w0
	add	w0, w8, #1
	bl	_xmalloc
	mov	x23, x0
	strb	wzr, [x0]
	mov	x0, x27
	mov	x1, x21
	bl	_strstr
	mov	x26, x23
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_9
; %bb.7:
	mov	x25, x0
	sxtw	x19, w24
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	mov	x26, x23
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x28, x25, x27
	mov	x0, x26
	mov	x1, x27
	mov	x2, x28
	bl	_memcpy
	add	x26, x26, x28
	mov	x0, x26
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
	add	x26, x26, x19
	strb	wzr, [x26]
	add	x27, x25, x20
	mov	x0, x27
	mov	x1, x21
	bl	_strstr
	mov	x25, x0
	cbnz	x0, LBB0_8
LBB0_9:
	mov	x0, x26
	mov	x1, x27
	bl	_strcat
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_13
; %bb.10:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_free
	b	LBB0_13
LBB0_11:
	cbz	w26, LBB0_14
; %bb.12:
	mov	x23, x27
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_xstrdup
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_origin_subst_one
.subsections_via_symbols
