	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_ampersand
_expand_ampersand:                      ## @expand_ampersand
	.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, %r13
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpb	$0, (%rsi)
	setne	%dil
	callq	_assert
	movq	%r12, %rdi
	callq	_checked_strdup
	movq	%rax, -48(%rbp)
	movb	(%r12), %cl
	testb	%cl, %cl
	je	LBB0_12
## %bb.1:
	xorl	%eax, %eax
	movq	%r12, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	leaq	1(%rax), %rbx
	leaq	(%r14,%rax), %r12
	incq	%r12
	movzbl	1(%r14,%rax), %ecx
	movl	%r15d, %eax
	testb	%cl, %cl
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$92, %cl
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$38, %cl
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	leaq	-48(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_asprintf
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log_err
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r14
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r12d
	addl	%ebx, %r12d
	movq	%r14, %rdi
	callq	_strlen
	movl	%r12d, %ebx
	cmpl	%eax, %r12d
	jne	LBB0_10
LBB0_11:
	movq	-48(%rbp), %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.*s%s%s"

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

	.no_dead_strip	_expand_ampersand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_ampersand
_expand_ampersand:                      ; @expand_ampersand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x24, x0
	ldrb	w8, [x1]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	bl	_checked_strdup
	str	x0, [sp, #8]
	ldrb	w8, [x24]
	cbz	w8, LBB0_13
; %bb.1:
	mov	w10, #0
	mov	w22, #0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x23, x24
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w22
	add	x22, x8, #1
	add	x24, x23, x22
	ldrb	w8, [x24]
	mov	x10, x9
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	cbz	w8, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w10, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #92
	b.eq	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	cbnz	w10, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #38
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x5, x24, #1
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	bl	_asprintf
	tbz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_log_err
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [sp, #8]
	mov	x0, x19
	bl	_strlen
	add	w22, w0, w22
	mov	x0, x23
	bl	_strlen
	cmp	w22, w0
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	b	LBB0_3
LBB0_12:
	ldr	x0, [sp, #8]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.*s%s%s"

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

	.no_dead_strip	_expand_ampersand
.subsections_via_symbols
