	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_core_handle_bus_reset       ## -- Begin function fw_core_handle_bus_reset
	.p2align	4, 0x90
_fw_core_handle_bus_reset:              ## @fw_core_handle_bus_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	%edx, %edi
	callq	_is_next_generation
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_fw_notify
	movq	%rbx, %rdi
	callq	_fw_destroy_nodes
	movq	$0, 32(%rbx)
LBB0_3:
	leaq	12(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	$0, 4(%rbx)
	movl	%r14d, 8(%rbx)
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	%r13d, (%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fw_schedule_bm_work
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_build_tree
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_update_topology_map
	incl	24(%rbx)
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_update_tree
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_fw_error
	jmp	LBB0_8
LBB0_6:
	movq	%r14, 16(%rbx)
	movq	_report_found_node@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_for_each_fw_node
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skipped bus generations, destroying all nodes\n"

	.comm	_jiffies,4,2                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"topology build failed\n"

	.comm	_report_found_node,4,2          ## @report_found_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_core_handle_bus_reset       ; -- Begin function fw_core_handle_bus_reset
	.p2align	2
_fw_core_handle_bus_reset:              ; @fw_core_handle_bus_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w1, [x0]
	mov	x0, x2
	bl	_is_next_generation
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fw_notify
	mov	x0, x19
	bl	_fw_destroy_nodes
	str	xzr, [x19, #32]
LBB0_3:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	stp	wzr, w24, [x19, #4]
	bl	_smp_wmb
	str	w23, [x19]
Lloh2:
	adrp	x8, _jiffies@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x0, x19
	mov	w1, #0
	bl	_fw_schedule_bm_work
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_build_tree
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_update_topology_map
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	cbz	x23, LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x23
	bl	_update_tree
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fw_error
	b	LBB0_8
LBB0_7:
	str	x23, [x19, #16]
Lloh7:
	adrp	x8, _report_found_node@GOTPAGE
Lloh8:
	ldr	x8, [x8, _report_found_node@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_for_each_fw_node
LBB0_8:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skipped bus generations, destroying all nodes\n"

	.comm	_jiffies,4,2                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"topology build failed\n"

	.comm	_report_found_node,4,2          ; @report_found_node
.subsections_via_symbols
