	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function substitute_type
_substitute_type:                       ## @substitute_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	movl	$124, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strlen
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_xmalloc
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	(%rax), %rsi
	movl	%r13d, %edx
	subl	%esi, %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	subq	%rax, %rdi
	addq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	incq	%r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcat
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_free
	movq	(%r15), %rax
	movq	%r12, (%rax)
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movl	$124, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	movl	$123, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_prepend_type
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_append_type
	testq	%rax, %rax
	je	LBB0_13
LBB0_10:
	cmpb	$0, (%r14)
	je	LBB0_2
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_append_type
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_append_type
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_4
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"("

L_.str.1:                               ## @.str.1
	.asciz	")"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	" "

	.no_dead_strip	_substitute_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function substitute_type
_substitute_type:                       ; @substitute_type
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	ldr	x22, [x8]
	mov	x0, x22
	mov	w1, #124
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	bl	_strlen
	mov	x22, x0
	mov	x0, x20
	bl	_strlen
	add	x0, x0, x22
	bl	_xmalloc
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x1, [x8]
	sub	w2, w21, w1
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8]
	sub	x8, x21, x8
	add	x0, x22, x8
	mov	x1, x20
	bl	_strcpy
	add	x1, x21, #1
	mov	x0, x22
	bl	_strcat
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_free
	ldr	x8, [x19]
	str	x22, [x8]
LBB0_2:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	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
LBB0_5:
	mov	x0, x20
	mov	w1, #124
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x22
	mov	w1, #123
	bl	_strchr
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	mov	w1, #40
	bl	_strchr
	cbz	x0, LBB0_10
LBB0_8:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_prepend_type
	cbz	w0, LBB0_13
; %bb.9:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_append_type
	cbz	x0, LBB0_13
LBB0_10:
	ldrb	w8, [x20]
	cbz	w8, LBB0_2
; %bb.11:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_append_type
	cbz	x0, LBB0_4
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_append_type
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_4
LBB0_13:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"("

l_.str.1:                               ; @.str.1
	.asciz	")"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	" "

	.no_dead_strip	_substitute_type
.subsections_via_symbols
