	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_realpath                       ## -- Begin function realpath
	.p2align	4, 0x90
_realpath:                              ## @realpath
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_4
## %bb.5:
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%rax, %rsi
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_realpath1
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_realpath                       ; -- Begin function realpath
	.p2align	2
_realpath:                              ; @realpath
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
	cbz	x1, LBB0_7
; %bb.3:
	mov	x20, #0
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _errno@GOTPAGE
Lloh5:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_malloc
	mov	x1, x0
	mov	x20, x0
	cbz	x0, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_realpath1
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_free
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
.subsections_via_symbols
