	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nodemgr_update_host_dev_links
_nodemgr_update_host_dev_links:         ## @nodemgr_update_host_dev_links
	.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, %rbx
	leaq	16(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_link
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_link
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_link
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_find_entry_by_nodeid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sysfs_create_link
	testq	%rax, %rax
	jne	LBB0_7
LBB0_2:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_find_entry_by_nodeid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sysfs_create_link
	testq	%rax, %rax
	jne	LBB0_7
LBB0_4:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_find_entry_by_nodeid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sysfs_create_link
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_HPSB_ERR                       ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irm_id"

L_.str.1:                               ## @.str.1
	.asciz	"busmgr_id"

L_.str.2:                               ## @.str.2
	.asciz	"host_id"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to update sysfs attributes for host %d"

	.no_dead_strip	_nodemgr_update_host_dev_links
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nodemgr_update_host_dev_links
_nodemgr_update_host_dev_links:         ; @nodemgr_update_host_dev_links
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sysfs_remove_link
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_sysfs_remove_link
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sysfs_remove_link
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_find_entry_by_nodeid
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sysfs_create_link
	cbnz	x0, LBB0_6
LBB0_2:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_find_entry_by_nodeid
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_sysfs_create_link
	cbnz	x0, LBB0_6
LBB0_4:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_find_entry_by_nodeid
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sysfs_create_link
	cbz	x0, LBB0_7
LBB0_6:
	ldr	w1, [x19]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_HPSB_ERR
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irm_id"

l_.str.1:                               ; @.str.1
	.asciz	"busmgr_id"

l_.str.2:                               ; @.str.2
	.asciz	"host_id"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to update sysfs attributes for host %d"

	.no_dead_strip	_nodemgr_update_host_dev_links
.subsections_via_symbols
