	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_defined_expand                 ## -- Begin function defined_expand
	.p2align	4, 0x90
_defined_expand:                        ## @defined_expand
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_checked_strdup
	movq	%rax, %r15
	movq	%rax, -64(%rbp)
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_30
## %bb.1:
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %r12
	movb	1(%r14,%r12), %al
	incq	%r12
	movl	%edx, %ecx
	testb	%al, %al
	je	LBB0_29
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$92, %al
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	testl	%ecx, %ecx
	jne	LBB0_28
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$36, %al
	jne	LBB0_28
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %r13
	leaq	1(%r13), %rbx
	movq	%r14, %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setl	%dil
	callq	_assert
	movq	%r14, %rax
	movb	1(%r14,%r13), %r14b
	testb	%r14b, %r14b
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r15d
	movl	%ebx, %ecx
	cmpb	$123, %r14b
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	2(%rax,%r13), %r15b
	addq	$2, %r13
	movq	%r13, %rbx
	movl	%r13d, %ecx
	testb	%r15b, %r15b
	je	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %r13
	addq	%rbx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movzbl	1(%r13,%rbx), %r15d
	incq	%rbx
	testb	%r15b, %r15b
	je	LBB0_18
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%r15b, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$95, %r15b
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$123, %r14b
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$125, %r15b
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %r14
	xorl	%edi, %edi
	cmpl	$2, %ebx
	setge	%dil
	callq	_assert
	leal	-1(%rbx), %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	setg	%al
	movl	%ebx, %r15d
	movq	%r14, %rbx
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpl	$2, %ebx
	setge	%dil
	callq	_assert
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	setl	%al
	movl	%ebx, %r15d
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movzbl	%al, %edi
	callq	_assert
	subl	-44(%rbp), %r15d                ## 4-byte Folded Reload
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_strndup
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log_err
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_defined_find
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movslq	%ebx, %r9
	addq	%r13, %r9
	leaq	-64(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movq	%rax, %r8
	callq	_asprintf
	testl	%eax, %eax
	jns	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_log_err
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_free
	movq	-64(%rbp), %r14
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	addl	%r12d, %ebx
	movq	%r14, %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setle	%dil
	callq	_assert
	movl	%ebx, %r12d
	xorl	%edx, %edx
	jmp	LBB0_28
LBB0_29:
	movq	-64(%rbp), %r15
	jmp	LBB0_30
LBB0_8:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_log_warnx
	jmp	LBB0_30
LBB0_24:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_log_warnx
LBB0_30:
	movq	%r15, %rax
	addq	$24, %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	"truncated variable"

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

L_.str.2:                               ## @.str.2
	.asciz	"undefined variable ${%s}"

L_.str.3:                               ## @.str.3
	.asciz	"%.*s%s%s"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_defined_expand                 ; -- Begin function defined_expand
	.p2align	2
_defined_expand:                        ; @defined_expand
	.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	x23, x0
	bl	_checked_strdup
	str	x0, [sp, #8]
	ldrb	w8, [x23]
	cbz	w8, LBB0_33
; %bb.1:
	mov	w10, #0
	mov	w21, #0
Lloh0:
	adrp	x19, l_.str.1@PAGE
Lloh1:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh2:
	adrp	x20, l_.str.3@PAGE
Lloh3:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh4:
	adrp	x22, l_.str.4@PAGE
Lloh5:
	add	x22, x22, l_.str.4@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, w21
	add	x21, x8, #1
	ldrb	w8, [x23, x21]
	mov	x10, x9
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	cbz	w8, LBB0_29
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	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, #36
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x21
	sxtw	x24, w8
	add	x25, x24, #1
	mov	x0, x23
	bl	_strlen
	cmp	w25, w0
	cset	w0, lt
	bl	_assert
	ldrb	w27, [x23, x25]
	cbz	w27, LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #123
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x24, #2
	ldrb	w28, [x23, x26]
	cbz	w28, LBB0_30
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x26
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x27
	mov	x26, x25
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x23, x26
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x8, x23, x26
	add	x26, x26, #1
	ldrb	w28, [x8, #1]
	cbz	w28, LBB0_20
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w28
	bl	_isalnum
	cbnz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	and	w8, w28, #0xff
	cmp	w8, #95
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	cmp	w27, #123
	b.ne	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
	and	w8, w28, #0xff
	cmp	w8, #125
	b.ne	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x26, #1
	subs	w27, w26, #1
	cset	w0, gt
	bl	_assert
	cmp	w27, w25
	cset	w0, gt
	mov	x27, x26
	mov	x26, x28
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w1, #0
	mov	x26, #0
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #1
	cset	w0, gt
	bl	_assert
	cmp	w25, w26
	cset	w0, lt
	mov	x27, x26
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_assert
	sub	w1, w27, w25
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_strndup
	mov	x24, x0
	cbnz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x19
	bl	_log_err
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_defined_find
	cbz	x0, LBB0_31
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	add	x5, x23, w26, sxtw
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	mov	x4, x25
	bl	_asprintf
	tbz	w0, #31, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_log_err
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_free
	ldr	x23, [sp, #8]
	mov	x0, x25
	bl	_strlen
	add	w21, w0, w21
	mov	x0, x23
	bl	_strlen
	cmp	w21, w0
	cset	w0, le
	bl	_assert
	mov	w9, #0
	b	LBB0_3
LBB0_29:
	ldr	x0, [sp, #8]
	b	LBB0_33
LBB0_30:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_32
LBB0_31:
	str	x24, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_32:
	bl	_log_warnx
	mov	x0, #0
LBB0_33:
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncated variable"

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

l_.str.2:                               ; @.str.2
	.asciz	"undefined variable ${%s}"

l_.str.3:                               ; @.str.3
	.asciz	"%.*s%s%s"

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

.subsections_via_symbols
