	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __of_attach_node
___of_attach_node:                      ## @__of_attach_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_OF_OVERLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_of_node_check_flag
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	___of_get_property
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	%rcx, (%rbx)
	leaq	L_.str.2(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	___of_get_property
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	___of_get_property
	movq	%rax, %r14
LBB0_3:
	movq	_CONFIG_PPC_PSERIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	testq	%r14, %r14
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	___of_get_property
	movq	%rax, %r14
LBB0_6:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	cmpl	$4, -20(%rbp)
	jl	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_be32_to_cpup
LBB0_9:
	movl	%eax, 32(%rbx)
LBB0_10:
	movq	$0, 24(%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rbx, (%rax)
	movq	_OF_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_of_node_clear_flag
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OF_OVERLAY,4,2                 ## @OF_OVERLAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

L_.str.1:                               ## @.str.1
	.asciz	"<NULL>"

L_.str.2:                               ## @.str.2
	.asciz	"phandle"

L_.str.3:                               ## @.str.3
	.asciz	"linux,phandle"

	.comm	_CONFIG_PPC_PSERIES,4,2         ## @CONFIG_PPC_PSERIES
L_.str.4:                               ## @.str.4
	.asciz	"ibm,phandle"

	.comm	_OF_DETACHED,4,2                ## @OF_DETACHED
	.no_dead_strip	___of_attach_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __of_attach_node
___of_attach_node:                      ; @__of_attach_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _OF_OVERLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OF_OVERLAY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_of_node_check_flag
	cbnz	w0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	___of_get_property
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x8, x8, x0, eq
	str	x8, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	___of_get_property
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	___of_get_property
	mov	x20, x0
LBB0_3:
Lloh11:
	adrp	x8, _CONFIG_PPC_PSERIES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONFIG_PPC_PSERIES@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cmp	x0, #0
	ccmp	x20, #0, #0, ne
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	___of_get_property
	mov	x20, x0
LBB0_5:
	mov	w0, #0
	cbz	x20, LBB0_8
; %bb.6:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_be32_to_cpup
LBB0_8:
	str	w0, [x19, #32]
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	stp	x9, xzr, [x19, #16]
	str	x19, [x8]
Lloh16:
	adrp	x8, _OF_DETACHED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OF_DETACHED@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_of_node_clear_flag
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_OF_OVERLAY,4,2                 ; @OF_OVERLAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

l_.str.1:                               ; @.str.1
	.asciz	"<NULL>"

l_.str.2:                               ; @.str.2
	.asciz	"phandle"

l_.str.3:                               ; @.str.3
	.asciz	"linux,phandle"

	.comm	_CONFIG_PPC_PSERIES,4,2         ; @CONFIG_PPC_PSERIES
l_.str.4:                               ; @.str.4
	.asciz	"ibm,phandle"

	.comm	_OF_DETACHED,4,2                ; @OF_DETACHED
	.no_dead_strip	___of_attach_node
.subsections_via_symbols
