	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_tree
_update_tree:                           ## @update_tree
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	24(%r15), %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	addq	$16, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movl	-56(%rbp), %edi
	callq	_fw_node
	movq	%rax, %rbx
	movl	-48(%rbp), %edi
	callq	_fw_node
	movq	%rax, %r12
	leaq	16(%rbx), %rax
	cmpq	%r13, %rax
	je	LBB0_24
## %bb.1:
	movq	%r13, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	callq	_fw_node
	movq	%rax, %rbx
	movl	16(%r12), %edi
	callq	_fw_node
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_fw_node_put
	movq	%rbx, %rax
	addq	$16, %rax
	movq	%r13, %r12
	cmpq	%r14, %rax
	je	LBB0_24
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	callq	_WARN_ON
	cmpq	$0, 48(%rbx)
	movq	48(%r12), %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 40(%r12)
	movq	_FW_NODE_INITIATED_RESET@GOTPCREL(%rip), %rcx
	jne	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FW_NODE_LINK_ON@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FW_NODE_UPDATED@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	_FW_NODE_LINK_OFF@GOTPCREL(%rip), %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edx
	movl	56(%r12), %ecx
	movl	%ecx, 56(%rbx)
	movq	(%r15), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rax, 48(%rbx)
	movq	40(%r12), %rax
	movq	%rax, 40(%rbx)
	movl	32(%r12), %eax
	movl	%eax, 32(%rbx)
	movq	%rcx, 8(%r12)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fw_node_event
	cmpq	%r12, 16(%r15)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, 8(%r15)
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rbx)
	jg	LBB0_14
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, 16(%r15)
	cmpq	%r12, 8(%r15)
	jne	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, 8(%r15)
	cmpq	$0, (%rbx)
	jle	LBB0_23
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_report_lost_node@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_for_each_fw_node
	movq	24(%rbx), %rax
	movq	$0, (%rax,%r13,8)
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%r13
	cmpq	%r13, (%rbx)
	jle	LBB0_23
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rax
	movq	(%rax,%r13,8), %rsi
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	(%rsi), %rax
	cmpq	(%r15), %rax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	addq	$8, %rsi
	movq	%rsi, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	addq	$8, %rdi
	leaq	-48(%rbp), %rsi
	callq	_list_add_tail
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=2
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_move_tree
	movq	24(%rbx), %rax
	movq	(%rax,%r13,8), %rsi
	movq	_report_found_node@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_for_each_fw_node
	jmp	LBB0_22
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_NODE_LINK_OFF,4,2           ## @FW_NODE_LINK_OFF
	.comm	_FW_NODE_LINK_ON,4,2            ## @FW_NODE_LINK_ON
	.comm	_FW_NODE_INITIATED_RESET,4,2    ## @FW_NODE_INITIATED_RESET
	.comm	_FW_NODE_UPDATED,4,2            ## @FW_NODE_UPDATED
	.comm	_report_lost_node,4,2           ## @report_lost_node
	.comm	_report_found_node,4,2          ## @report_found_node
	.no_dead_strip	_update_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_tree
_update_tree:                           ; @update_tree
	.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
	mov	x20, x1
	mov	x19, x0
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
	ldr	x0, [x19, #24]
	add	x1, sp, #8
	bl	_list_add_tail
	mov	x0, sp
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
	mov	x1, sp
	bl	_list_add_tail
	ldr	w0, [sp, #8]
	bl	_fw_node
	mov	x20, x0
	ldr	w0, [sp]
	bl	_fw_node
	add	x8, x20, #16
	cmp	x8, x23
	b.eq	LBB0_23
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x24, _FW_NODE_LINK_ON@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FW_NODE_LINK_ON@GOTPAGEOFF]
Lloh2:
	adrp	x25, _FW_NODE_UPDATED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FW_NODE_UPDATED@GOTPAGEOFF]
Lloh4:
	adrp	x26, _report_found_node@GOTPAGE
Lloh5:
	ldr	x26, [x26, _report_found_node@GOTPAGEOFF]
Lloh6:
	adrp	x27, _report_lost_node@GOTPAGE
Lloh7:
	ldr	x27, [x27, _report_lost_node@GOTPAGEOFF]
Lloh8:
	adrp	x28, _FW_NODE_INITIATED_RESET@GOTPAGE
Lloh9:
	ldr	x28, [x28, _FW_NODE_INITIATED_RESET@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #16]
	bl	_fw_node
	mov	x20, x0
	ldr	w0, [x21, #16]
	bl	_fw_node
	mov	x22, x0
	mov	x0, x21
	bl	_fw_node_put
	add	x8, x20, #16
	mov	x21, x22
	cmp	x8, x23
	b.eq	LBB0_23
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	ldr	x9, [x20, #48]
	ldr	x8, [x21, #48]
	cbz	x9, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x21, #40]
	mov	x9, x28
	cbnz	x10, LBB0_9
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x24
	cbnz	x8, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x25
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x9, _FW_NODE_LINK_OFF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FW_NODE_LINK_OFF@GOTPAGEOFF]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x9]
	ldr	w9, [x21, #56]
	str	w9, [x20, #56]
	ldr	x9, [x19]
	str	x9, [x20, #8]
	ldr	x10, [x21, #40]
	stp	x10, x8, [x20, #40]
	ldr	w8, [x21, #32]
	str	w8, [x20, #32]
	str	x9, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_fw_node_event
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x20, [x19, #16]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	cmp	x8, x21
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x20, [x19, #8]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	w2, [x27]
	mov	x0, x19
	bl	_for_each_fw_node
	ldr	x8, [x20, #24]
	str	xzr, [x8, x22, lsl #3]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x22, x22, #1
	ldr	x8, [x20]
	cmp	x8, x22
	b.le	LBB0_2
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #24]
	lsl	x9, x22, #3
	ldr	x1, [x8, x9]
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x9]
	cbz	x1, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	cbz	x8, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x1]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x0, x1, #8
	add	x1, sp, #8
	bl	_list_add_tail
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x22, lsl #3]
	add	x0, x8, #8
	mov	x1, sp
	bl	_list_add_tail
	b	LBB0_16
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=2
	cbz	x8, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_move_tree
	ldr	x8, [x20, #24]
	ldr	x1, [x8, x22, lsl #3]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_for_each_fw_node
	b	LBB0_16
LBB0_23:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_NODE_LINK_OFF,4,2           ; @FW_NODE_LINK_OFF
	.comm	_FW_NODE_LINK_ON,4,2            ; @FW_NODE_LINK_ON
	.comm	_FW_NODE_INITIATED_RESET,4,2    ; @FW_NODE_INITIATED_RESET
	.comm	_FW_NODE_UPDATED,4,2            ; @FW_NODE_UPDATED
	.comm	_report_lost_node,4,2           ; @report_lost_node
	.comm	_report_found_node,4,2          ; @report_found_node
	.no_dead_strip	_update_tree
.subsections_via_symbols
