	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_detach_node                 ## -- Begin function of_detach_node
	.p2align	4, 0x90
_of_detach_node:                        ## @of_detach_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, -40(%rbp)
	movq	_of_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_devtree_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_raw_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	___of_detach_node
	movq	%r12, %rdi
	callq	_raw_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	___of_detach_node_sysfs
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_OF_RECONFIG_DETACH_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_reconfig_notify
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_of_mutex,4,2                   ## @of_mutex
	.comm	_devtree_lock,4,2               ## @devtree_lock
	.comm	_OF_RECONFIG_DETACH_NODE,4,2    ## @OF_RECONFIG_DETACH_NODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_detach_node                 ; -- Begin function of_detach_node
	.p2align	2
_of_detach_node:                        ; @of_detach_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x19, [sp, #8]
Lloh0:
	adrp	x20, _of_mutex@GOTPAGE
Lloh1:
	ldr	x20, [x20, _of_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh2:
	adrp	x21, _devtree_lock@GOTPAGE
Lloh3:
	ldr	x21, [x21, _devtree_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_raw_spin_lock_irqsave
	mov	x0, x19
	bl	___of_detach_node
	mov	x0, x21
	bl	_raw_spin_unlock_irqrestore
	mov	x0, x19
	bl	___of_detach_node_sysfs
	mov	x0, x20
	bl	_mutex_unlock
Lloh4:
	adrp	x8, _OF_RECONFIG_DETACH_NODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OF_RECONFIG_DETACH_NODE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_of_reconfig_notify
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_of_mutex,4,2                   ; @of_mutex
	.comm	_devtree_lock,4,2               ; @devtree_lock
	.comm	_OF_RECONFIG_DETACH_NODE,4,2    ; @OF_RECONFIG_DETACH_NODE
.subsections_via_symbols
