	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devtmpfs_delete_node           ## -- Begin function devtmpfs_delete_node
	.p2align	4, 0x90
_devtmpfs_delete_node:                  ## @devtmpfs_delete_node
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -80(%rbp)
	movq	_dev_mnt@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %rdx
	xorl	%esi, %esi
	callq	_device_get_devnode
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	_init_cred@GOTPCREL(%rip), %rdi
	callq	_override_creds
	movq	%rax, %r14
	movq	(%r15), %rsi
	movl	(%rsi), %edi
	movq	_LOOKUP_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movq	%r12, %rdx
	callq	_vfs_path_lookup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movq	-72(%rbp), %rax
	movq	(%rax), %rdi
	movq	_I_MUTEX_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mutex_lock_nested
	movl	-52(%rbp), %edi
	movq	-72(%rbp), %rsi
	movl	-56(%rbp), %edx
	callq	_lookup_one_len
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.7:
	movl	-64(%rbp), %edi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	callq	_vfs_getattr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	(%r15), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_dev_mynode
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	xorps	%xmm0, %xmm0
	movl	$-512, %eax                     ## imm = 0xFE00
	andl	-48(%rbp), %eax
	movups	%xmm0, -96(%rbp)
	movl	%eax, -104(%rbp)
	movq	_ATTR_UID@GOTPCREL(%rip), %rax
	movq	_ATTR_GID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ATTR_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -100(%rbp)
	movq	(%r15), %rdi
	callq	_mutex_lock
	leaq	-104(%rbp), %rsi
	movq	%r15, %rdi
	callq	_notify_change
	movq	(%r15), %rdi
	callq	_mutex_unlock
	movq	-72(%rbp), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_vfs_unlink
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_11:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_dput
LBB0_14:
	movq	-72(%rbp), %rax
	movq	(%rax), %rdi
	callq	_mutex_unlock
	leaq	-72(%rbp), %rdi
	callq	_path_put
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_delete_path
LBB0_16:
	movq	-80(%rbp), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_revert_creds
LBB0_17:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_mnt,8,3                    ## @dev_mnt
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_init_cred,4,2                  ## @init_cred
	.comm	_LOOKUP_PARENT,4,2              ## @LOOKUP_PARENT
	.comm	_I_MUTEX_PARENT,4,2             ## @I_MUTEX_PARENT
	.comm	_ATTR_UID,4,2                   ## @ATTR_UID
	.comm	_ATTR_GID,4,2                   ## @ATTR_GID
	.comm	_ATTR_MODE,4,2                  ## @ATTR_MODE
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devtmpfs_delete_node           ; -- Begin function devtmpfs_delete_node
	.p2align	2
_devtmpfs_delete_node:                  ; @devtmpfs_delete_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	xzr, [sp, #56]
Lloh0:
	adrp	x21, _dev_mnt@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dev_mnt@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x22, x0
	add	x2, sp, #56
	mov	x1, #0
	bl	_device_get_devnode
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x0, _init_cred@GOTPAGE
Lloh3:
	ldr	x0, [x0, _init_cred@GOTPAGEOFF]
	bl	_override_creds
	mov	x19, x0
	ldr	x1, [x21]
	ldr	w0, [x1]
Lloh4:
	adrp	x8, _LOOKUP_PARENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LOOKUP_PARENT@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	add	x4, sp, #32
	mov	x2, x20
	bl	_vfs_path_lookup
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.3:
	ldr	x8, [sp, #32]
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _I_MUTEX_PARENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I_MUTEX_PARENT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_mutex_lock_nested
	ldr	x1, [sp, #32]
	ldp	w2, w0, [sp, #48]
	bl	_lookup_one_len
	mov	x21, x0
	bl	_IS_ERR
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_14
LBB0_5:
	mov	w23, #0
	b	LBB0_17
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_7:
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w0, [sp, #40]
	add	x2, sp, #24
	mov	x1, x21
	bl	_vfs_getattr
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.9:
	ldr	x1, [x21]
	add	x2, sp, #24
	mov	x0, x22
	bl	_dev_mynode
	cbz	x0, LBB0_12
; %bb.10:
	stp	xzr, xzr, [sp, #8]
Lloh13:
	adrp	x8, _ATTR_UID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATTR_UID@GOTPAGEOFF]
Lloh15:
	adrp	x9, _ATTR_GID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATTR_GID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _ATTR_MODE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ATTR_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #24]
	and	w9, w9, #0xfffffe00
	stp	w9, w8, [sp]
	ldr	x0, [x21]
	bl	_mutex_lock
	mov	x1, sp
	mov	x0, x21
	bl	_notify_change
	ldr	x0, [x21]
	bl	_mutex_unlock
	ldr	x8, [sp, #32]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_vfs_unlink
	mov	x23, x0
	b	LBB0_13
LBB0_11:
Lloh22:
	adrp	x8, _ENOENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_12:
	mov	w23, #0
LBB0_13:
	mov	x0, x21
	bl	_dput
LBB0_14:
	ldr	x8, [sp, #32]
	ldr	x0, [x8]
	bl	_mutex_unlock
	add	x0, sp, #32
	bl	_path_put
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_delete_path
LBB0_16:
	ldr	x0, [sp, #56]
	bl	_kfree
	mov	x0, x19
	bl	_revert_creds
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_mnt,8,3                    ; @dev_mnt
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_init_cred,4,2                  ; @init_cred
	.comm	_LOOKUP_PARENT,4,2              ; @LOOKUP_PARENT
	.comm	_I_MUTEX_PARENT,4,2             ; @I_MUTEX_PARENT
	.comm	_ATTR_UID,4,2                   ; @ATTR_UID
	.comm	_ATTR_GID,4,2                   ; @ATTR_GID
	.comm	_ATTR_MODE,4,2                  ; @ATTR_MODE
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
