	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_dev_rename_r
_fs_dev_rename_r:                       ## @fs_dev_rename_r
	.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
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_fs_dev_get_device_data
	movl	$-1, %r14d
	testq	%r15, %r15
	je	LBB0_15
## %bb.1:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	testq	%r12, %r12
	je	LBB0_8
## %bb.3:
	movl	(%r13), %edi
	callq	_OSLockMutex
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_fs_dev_real_path
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_fs_dev_real_path
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r12
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movl	(%r13), %edi
	callq	_OSUnlockMutex
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_14
## %bb.6:
	negl	%eax
	jmp	LBB0_10
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, (%r15)
	jmp	LBB0_15
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_13
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_free
LBB0_13:
	movl	(%r13), %edi
	callq	_OSUnlockMutex
	jmp	LBB0_15
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.no_dead_strip	_fs_dev_rename_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_dev_rename_r
_fs_dev_rename_r:                       ; @fs_dev_rename_r
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_fs_dev_get_device_data
	cbz	x19, LBB0_14
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.2:
	cbz	x21, LBB0_8
; %bb.3:
	ldr	w0, [x20]
	bl	_OSLockMutex
	mov	x0, x22
	mov	x1, x20
	bl	_fs_dev_real_path
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_fs_dev_real_path
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_free
	mov	x0, x21
	bl	_free
	ldr	w0, [x20]
	bl	_OSUnlockMutex
	cmp	w23, #1
	b.lt	LBB0_16
; %bb.6:
	neg	w8, w23
	b	LBB0_10
LBB0_7:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
LBB0_10:
	str	w8, [x19]
	b	LBB0_14
LBB0_11:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_13
LBB0_12:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	w8, [x19]
	mov	x0, x22
	bl	_free
LBB0_13:
	ldr	w0, [x20]
	bl	_OSUnlockMutex
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.no_dead_strip	_fs_dev_rename_r
.subsections_via_symbols
