	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gexpand                        ## -- Begin function gexpand
	.p2align	4, 0x90
_gexpand:                               ## @gexpand
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	_gexpand.depth(%rip), %eax
	movq	_MAXEXP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	jmp	LBB0_17
LBB0_2:
	incl	%eax
	movl	%eax, _gexpand.depth(%rip)
	movq	(%r12), %r15
	testq	%r15, %r15
	jne	LBB0_3
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_put
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	cmpb	$92, (%rbx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_findgroup
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_gexpand
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_nalloc
	movq	%rax, %r14
	cmpq	(%r12), %r15
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_myname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_GDEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_13
LBB0_15:
	movl	_gexpand.depth(%rip), %eax
LBB0_16:
	decl	%eax
	movl	%eax, _gexpand.depth(%rip)
LBB0_17:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_gexpand.depth,4,2 ## @gexpand.depth
	.comm	_MAXEXP,4,2                     ## @MAXEXP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expanding alias to depth larger than %d\n"

	.comm	_myname,4,2                     ## @myname
	.comm	_GDEL,4,2                       ## @GDEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gexpand                        ; -- Begin function gexpand
	.p2align	2
_gexpand:                               ; @gexpand
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x19, x0
	adrp	x25, _gexpand.depth@PAGE
	ldr	w8, [x25, _gexpand.depth@PAGEOFF]
Lloh0:
	adrp	x9, _MAXEXP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAXEXP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_18
LBB0_2:
	add	w8, w8, #1
	str	w8, [x25, _gexpand.depth@PAGEOFF]
	ldr	x26, [x22]
	cbz	x26, LBB0_17
; %bb.3:
	mov	x20, x3
	mov	x21, x2
Lloh5:
	adrp	x27, _myname@GOTPAGE
Lloh6:
	ldr	x27, [x27, _myname@GOTPAGEOFF]
Lloh7:
	adrp	x28, _GDEL@GOTPAGE
Lloh8:
	ldr	x28, [x28, _GDEL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_put
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x0
	ldr	x26, [x26, #8]
	cbz	x26, LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x26]
	ldrb	w8, [x23]
	cmp	w8, #92
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x22, #8]
	mov	x0, x23
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_findgroup
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_gexpand
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_nalloc
	mov	x24, x0
	ldr	x8, [x22]
	cmp	x26, x8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w21, LBB0_4
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w21, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x27]
	mov	x0, x23
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	b	LBB0_4
LBB0_16:
	ldr	w8, [x25, _gexpand.depth@PAGEOFF]
LBB0_17:
	sub	w8, w8, #1
	str	w8, [x25, _gexpand.depth@PAGEOFF]
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_gexpand.depth,4,2 ; @gexpand.depth
	.comm	_MAXEXP,4,2                     ; @MAXEXP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expanding alias to depth larger than %d\n"

	.comm	_myname,4,2                     ; @myname
	.comm	_GDEL,4,2                       ; @GDEL
.subsections_via_symbols
