	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nodemgr_add_host
_nodemgr_add_host:                      ## @nodemgr_add_host
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_nodemgr_highlevel@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_hpsb_create_hostinfo
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	_nodemgr_host_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rsi
	callq	_kthread_run
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_HPSB_ERR
	movq	_nodemgr_highlevel@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hpsb_destroy_hostinfo          ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_HPSB_ERR                       ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nodemgr_highlevel,4,2          ## @nodemgr_highlevel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NodeMgr: out of memory in add host"

	.comm	_nodemgr_host_thread,4,2        ## @nodemgr_host_thread
L_.str.1:                               ## @.str.1
	.asciz	"knodemgrd_%d"

L_.str.2:                               ## @.str.2
	.asciz	"NodeMgr: cannot start thread for host %d"

	.no_dead_strip	_nodemgr_add_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nodemgr_add_host
_nodemgr_add_host:                      ; @nodemgr_add_host
	.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	x0, _nodemgr_highlevel@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nodemgr_highlevel@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #16
	bl	_hpsb_create_hostinfo
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #8]
Lloh2:
	adrp	x8, _nodemgr_host_thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nodemgr_host_thread@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w3, [x19]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_HPSB_ERR
Lloh9:
	adrp	x0, _nodemgr_highlevel@GOTPAGE
Lloh10:
	ldr	x0, [x0, _nodemgr_highlevel@GOTPAGEOFF]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_hpsb_destroy_hostinfo
LBB0_3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_HPSB_ERR
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nodemgr_highlevel,4,2          ; @nodemgr_highlevel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NodeMgr: out of memory in add host"

	.comm	_nodemgr_host_thread,4,2        ; @nodemgr_host_thread
l_.str.1:                               ; @.str.1
	.asciz	"knodemgrd_%d"

l_.str.2:                               ; @.str.2
	.asciz	"NodeMgr: cannot start thread for host %d"

	.no_dead_strip	_nodemgr_add_host
.subsections_via_symbols
