	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_file_content               ## -- Begin function get_file_content
	.p2align	4, 0x90
_get_file_content:                      ## @get_file_content
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, (%rdx)
	movl	$0, (%rcx)
	movl	4(%rsi), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	movq	_PATH_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_zmalloc
	movq	%rax, (%r14)
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_readlink
	movl	%eax, %ecx
	movl	%eax, (%r12)
	movl	$-1, %eax
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.2:
	movl	(%rbx), %edx
	decl	%edx
	cmpl	%edx, %ecx
	jge	LBB0_7
## %bb.3:
	movq	(%r14), %rax
	movl	%ecx, %ecx
	movb	$0, (%rax,%rcx)
	incl	(%r12)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movl	4(%rbx), %edi
	callq	_S_ISDIR
	movl	8(%rbx), %edx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	movl	$0, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	movl	(%rbx), %esi
	movl	%esi, (%r12)
	movq	%r15, %rdi
	callq	_read_whole_file
	movq	%rax, (%r14)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx), %eax
	addl	$-2, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link: %s\n"

	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
L_.str.1:                               ## @.str.1
	.asciz	"dir: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"file: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_file_content               ; -- Begin function get_file_content
	.p2align	2
_get_file_content:                      ; @get_file_content
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	str	xzr, [x2]
	str	wzr, [x3]
	ldr	w0, [x1, #4]
	bl	_S_ISLNK
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w2, [x22, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
Lloh2:
	adrp	x22, _PATH_MAX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PATH_MAX@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_zmalloc
	mov	x1, x0
	str	x0, [x20]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_readlink
	str	w0, [x19]
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x8, x0
	ldr	w9, [x22]
	sub	w9, w9, #1
	cmp	w0, w9
	b.ge	LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	x9, [x20]
	strb	wzr, [x9, w8, uxtw]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_4:
	mov	w0, #-1
	b	LBB0_8
LBB0_5:
	ldr	w0, [x22, #4]
	bl	_S_ISDIR
	ldr	w2, [x22, #8]
	cbz	x0, LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldr	w1, [x22]
	str	w1, [x19]
	mov	x0, x21
	bl	_read_whole_file
	str	x0, [x20]
	cmp	x0, #0
	mov	w8, #-2
	csel	w0, w8, wzr, eq
LBB0_8:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link: %s\n"

	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
l_.str.1:                               ; @.str.1
	.asciz	"dir: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"file: %s\n"

.subsections_via_symbols
