	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brace_subst                    ## -- Begin function brace_subst
	.p2align	4, 0x90
_brace_subst:                           ## @brace_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	%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
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_strlen
	movslq	%eax, %r14
	movq	%rbx, %rdi
	callq	_strlen
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	leaq	-2(%r14), %rbx
	movq	%r12, %r13
	notq	%r13
	movl	$2, %eax
	subq	%r14, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %r15
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	movq	%rax, %r15
	addq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	addq	%rbx, %r12
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$3, %r14d
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %rbx
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
	jmp	LBB0_5
LBB0_6:
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jbe	LBB0_9
## %bb.7:
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_reallocf
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_9:
	movq	(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	subq	%r13, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addq	%r15, %rbx
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	addq	%r14, %rbx
	movq	%r12, %r13
	addq	$2, %r13
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	movq	%rax, %r12
	movq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	movq	%r15, %rbx
LBB0_13:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	subl	%r13d, %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{}"

L_.str.1:                               ## @.str.1
	.asciz	"brace_subst overflow"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brace_subst                    ; -- Begin function brace_subst
	.p2align	2
_brace_subst:                           ; @brace_subst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x3, x1, [sp, #8]                ; 16-byte Folded Spill
	mov	x20, x2
	mov	x19, x0
	mov	x0, x2
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, x19
	bl	_strlen
	add	w8, w0, #1
	sxtw	x24, w8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strstr
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_6
; %bb.1:
	mov	x25, x0
	sub	x23, x21, #2
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	mvn	x22, x24
	mov	w8, #2
	sub	x28, x8, x21
Lloh2:
	adrp	x26, l_.str.1@PAGE
Lloh3:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh4:
	adrp	x27, l_.str@PAGE
Lloh5:
	add	x27, x27, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x25, #2
	mov	x1, x27
	bl	_strstr
	mov	x25, x0
	add	x22, x22, x28
	add	x24, x24, x23
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #3
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x23, x22
	b.ls	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #2
	mov	x1, x26
	bl	_errx
	b	LBB0_2
LBB0_6:
	ldp	x8, x22, [sp, #8]               ; 16-byte Folded Reload
	cmp	x24, x8
	b.ls	LBB0_9
; %bb.7:
	ldr	x0, [x22]
	mov	x1, x24
	bl	_reallocf
	str	x0, [x22]
	cbnz	x0, LBB0_9
; %bb.8:
	mov	w0, #2
	mov	x1, #0
	bl	_err
LBB0_9:
	ldr	x22, [x22]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_12
; %bb.10:
	mov	x24, x0
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	mov	x25, x19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	x26, x24, x25
	mov	x0, x22
	mov	x1, x25
	mov	x2, x26
	bl	_memcpy
	add	x22, x22, x26
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	add	x22, x22, x21
	add	x25, x24, #2
	mov	x0, x25
	mov	x1, x23
	bl	_strstr
	mov	x24, x0
	cbnz	x0, LBB0_11
	b	LBB0_13
LBB0_12:
	mov	x25, x19
LBB0_13:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	w8, w19, w8
	sub	w2, w8, w25
	mov	x0, x22
	mov	x1, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_memcpy
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{}"

l_.str.1:                               ; @.str.1
	.asciz	"brace_subst overflow"

.subsections_via_symbols
