	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_areadlink                      ## -- Begin function areadlink
	.p2align	4, 0x90
_areadlink:                             ## @areadlink
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	incq	%rbx
	movq	%rbx, %rdi
	callq	_xmalloc
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_readlink
	cmpl	%eax, %ebx
	jne	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rbx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_xrealloc
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_readlink
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	je	LBB0_2
## %bb.3:
	cmpl	$-1, %eax
	je	LBB0_4
LBB0_5:
	movb	$0, (%r15,%rcx)
	incl	%eax
	movq	%r15, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xrealloc                       ## TAILCALL
LBB0_1:
	movslq	%eax, %rcx
	cmpl	$-1, %eax
	jne	LBB0_5
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_xfree
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_areadlink                      ; -- Begin function areadlink
	.p2align	2
_areadlink:                             ; @areadlink
	.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, x0
Lloh0:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x21, x8, #1
	mov	x0, x21
	bl	_xmalloc
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_readlink
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w21, w0
	b.ne	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x21, x21, #1
	mov	x0, x19
	mov	x1, x21
	bl	_xrealloc
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_readlink
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x21, x8
	b.eq	LBB0_1
; %bb.2:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_3:
	strb	wzr, [x19, x8]
	add	w1, w0, #1
	mov	x0, x19
	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
	b	_xrealloc
LBB0_4:
	sxtw	x8, w0
	cmn	w0, #1
	b.ne	LBB0_3
LBB0_5:
Lloh3:
	adrp	x20, _errno@GOTPAGE
Lloh4:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x19
	bl	_xfree
	str	w21, [x20]
	mov	x0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
