	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_getpath                ## -- Begin function generic_getpath
	.p2align	4, 0x90
_generic_getpath:                       ## @generic_getpath
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_strlen
	addl	%ebx, %eax
	cltq
	movq	_MAX_PATH@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jle	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	%r14, %rbx
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memmove
	movq	(%r15), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncpy
	xorl	%ebx, %ebx
	cmpb	$0, (%r14)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	__ENAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,8,3                   ## @MAX_PATH
	.comm	__ENAMETOOLONG,4,2              ## @_ENAMETOOLONG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_getpath                ; -- Begin function generic_getpath
	.p2align	2
_generic_getpath:                       ; @generic_getpath
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_strlen
	add	w8, w0, w21
Lloh0:
	adrp	x9, _MAX_PATH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_PATH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, w8, sxtw
	b.le	LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_strlen
	add	x21, x19, w0, sxtw
	mov	x0, x19
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x21
	mov	x1, x19
	bl	_memmove
	ldr	x8, [x20]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_strncpy
	ldrb	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcpy
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, __ENAMETOOLONG@GOTPAGE
Lloh6:
	ldr	x8, [x8, __ENAMETOOLONG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,8,3                   ; @MAX_PATH
	.comm	__ENAMETOOLONG,4,2              ; @_ENAMETOOLONG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

.subsections_via_symbols
