	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_node
_update_node:                           ## @update_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_rtas_token
	movq	_RTAS_UNKNOWN_SERVICE@GOTPCREL(%rip), %rcx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_RTAS_DATA_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_of_find_node_by_phandle
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	%r14d, 4(%r12)
	leaq	8(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$9, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$1, %ebx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_18
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_rcall
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	cmpb	$0, 8(%r12)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%r15d, %r15d
	jg	LBB0_12
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	cltq
	leaq	(%rax,%rbx), %r12
	addq	$4, %r12
	decl	%r15d
	testl	%r15d, %r15d
	jg	LBB0_12
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movslq	%r13d, %rax
	addq	%rax, %r14
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %r12
	decl	%r15d
	je	LBB0_17
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
	movl	1(%rax,%r12), %edi
	callq	_be32_to_cpu
	leaq	(%rbx,%r12), %r14
	addq	$5, %r14
	testl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%eax, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_update_property
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_pr_err
	jmp	LBB0_15
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_node_put
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_19
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibm,update-properties"

	.comm	_RTAS_UNKNOWN_SERVICE,4,2       ## @RTAS_UNKNOWN_SERVICE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTAS_DATA_BUF_SIZE,4,2         ## @RTAS_DATA_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"cxl: Could not update property %s - %i\n"

	.no_dead_strip	_update_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_node
_update_node:                           ; @update_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rtas_token
Lloh2:
	adrp	x8, _RTAS_UNKNOWN_SERVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTAS_UNKNOWN_SERVICE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_2:
	mov	x20, x0
Lloh7:
	adrp	x8, _RTAS_DATA_BUF_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTAS_DATA_BUF_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.3:
	mov	x21, x0
	mov	x0, x22
	bl	_be32_to_cpu
	bl	_of_find_node_by_phandle
	cbz	x0, LBB0_17
; %bb.4:
	mov	x23, x0
	str	w22, [x21, #4]
	add	x19, x21, #8
	add	x8, x21, #9
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh13:
	adrp	x24, l_.str.1@PAGE
Lloh14:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #1
	b.ne	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x20
	mov	x1, x21
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_rcall
	mov	x22, x0
	tbnz	w0, #31, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
	bl	_be32_to_cpu
	mov	x25, x0
	ldrb	w8, [x21, #8]
	mov	x26, x19
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, #1
	b.ge	LBB0_12
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	ldr	w0, [x26]
	bl	_be32_to_cpu
	add	x8, x26, w0, sxtw
	add	x26, x8, #4
	sub	w25, w25, #1
	cmp	w25, #1
	b.ge	LBB0_12
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x27, x27, w28, sxtw
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x26, x27
	subs	w25, w25, #1
	b.eq	LBB0_5
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	bl	_strlen
	add	x27, x0, x26
	ldur	w0, [x27, #1]
	bl	_be32_to_cpu
	add	x27, x27, #5
	tst	w0, #0x7fffffff
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x28, x0
	mov	x0, x23
	mov	x1, x26
	mov	x2, x28
	mov	x3, x27
	bl	_update_property
	cbz	w0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	bl	_pr_err
	b	LBB0_10
LBB0_15:
	mov	x0, x23
	bl	_of_node_put
	mov	x0, x21
	bl	_kfree
	b	LBB0_19
LBB0_16:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	mov	x0, x21
	bl	_kfree
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibm,update-properties"

	.comm	_RTAS_UNKNOWN_SERVICE,4,2       ; @RTAS_UNKNOWN_SERVICE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTAS_DATA_BUF_SIZE,4,2         ; @RTAS_DATA_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"cxl: Could not update property %s - %i\n"

	.no_dead_strip	_update_node
.subsections_via_symbols
