	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nodemgr_host_thread
_nodemgr_host_thread:                   ## @nodemgr_host_thread
	.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	%rdi, %r15
	xorl	%eax, %eax
	callq	_set_freezable
	movq	%r15, %rdi
	callq	_nodemgr_create_host_dev_files
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rbx
	movq	_TASK_RUNNING@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##     Child Loop BB0_16 Depth 2
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	(%r14), %edi
	callq	___set_current_state
	xorl	%eax, %eax
	callq	_try_to_freeze
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movl	(%rbx), %edi
	callq	_set_current_state
	movq	%r15, %rdi
	callq	_get_hpsb_generation
	cmpl	%r12d, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r15, %rdi
	callq	_get_hpsb_generation
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	$63, %edi
	callq	_msleep_interruptible
	xorl	%eax, %eax
	callq	_try_to_freeze
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movq	%r15, %rdi
	callq	_get_hpsb_generation
	movl	%eax, %r12d
	incl	%r13d
	cmpl	%ebx, %eax
	movl	$1, %eax
	cmovnel	%eax, %r13d
	movl	%r12d, %ebx
	cmpl	$4, %r13d
	jl	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r15, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_nodemgr_check_irm_capability
	testl	%eax, %eax
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rbx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_nodemgr_do_irm_duties
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_nodemgr_node_scan
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_nodemgr_node_probe
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=2
	incl	%r13d
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_nodemgr_update_host_dev_links
	movl	$-15, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$200, %edi
	callq	_msleep_interruptible
	xorl	%eax, %eax
	callq	_try_to_freeze
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %rdi
	callq	_get_hpsb_generation
	cmpl	%eax, %r12d
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=2
	incl	%ebx
	jne	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_nodemgr_remove_nodes_in_limbo
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
LBB0_20:
	leaq	L_.str(%rip), %rdi
	callq	_HPSB_VERBOSE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NodeMgr: Exiting thread"

	.no_dead_strip	_nodemgr_host_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nodemgr_host_thread
_nodemgr_host_thread:                   ; @nodemgr_host_thread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_set_freezable
	mov	x0, x19
	bl	_nodemgr_create_host_dev_files
	mov	w20, #0
	mov	w21, #0
Lloh0:
	adrp	x23, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TASK_RUNNING@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TASK_RUNNING@GOTPAGEOFF]
	mov	w25, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	___set_current_state
	bl	_try_to_freeze
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w0, [x23]
	bl	_set_current_state
	mov	x0, x19
	bl	_get_hpsb_generation
	cmp	w0, w20
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_schedule
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_kthread_should_stop
	cbnz	x0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_get_hpsb_generation
	mov	x22, x0
	mov	w26, #0
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #63
	bl	_msleep_interruptible
	bl	_try_to_freeze
	bl	_kthread_should_stop
	cbnz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	bl	_get_hpsb_generation
	cmp	w0, w22
	csinc	w26, w25, w26, ne
	mov	x22, x0
	cmp	w26, #4
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nodemgr_check_irm_capability
	cbz	w0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_nodemgr_do_irm_duties
	cbz	w0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_nodemgr_node_scan
	mov	x0, x19
	mov	x1, x20
	bl	_nodemgr_node_probe
	mov	w21, #0
	cbz	w0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_nodemgr_update_host_dev_links
	mov	w21, #-15
LBB0_13:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #200
	bl	_msleep_interruptible
	bl	_try_to_freeze
	bl	_kthread_should_stop
	cbnz	x0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	bl	_get_hpsb_generation
	cmp	w20, w0
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	adds	w21, w21, #1
	b.lo	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_nodemgr_remove_nodes_in_limbo
	mov	w21, #0
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
	b	LBB0_2
LBB0_19:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_VERBOSE
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NodeMgr: Exiting thread"

	.no_dead_strip	_nodemgr_host_thread
.subsections_via_symbols
