	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_register_highlevel        ## -- Begin function hpsb_register_highlevel
	.p2align	4, 0x90
_hpsb_register_highlevel:               ## @hpsb_register_highlevel
	.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
	callq	_hpsb_init_highlevel
	leaq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_hl_drivers_sem@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_down_write
	leaq	12(%rbx), %rdi
	movq	_hl_drivers@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_up_write
	movq	_hl_irqs_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	leaq	8(%rbx), %rdi
	movq	_hl_irqs@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_write_unlock_irqrestore
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_highlevel_for_each_host_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nodemgr_for_each_host          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hl_drivers_sem,4,2             ## @hl_drivers_sem
	.comm	_hl_drivers,4,2                 ## @hl_drivers
	.comm	_hl_irqs_lock,4,2               ## @hl_irqs_lock
	.comm	_hl_irqs,4,2                    ## @hl_irqs
	.comm	_highlevel_for_each_host_reg,4,2 ## @highlevel_for_each_host_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_register_highlevel        ; -- Begin function hpsb_register_highlevel
	.p2align	2
_hpsb_register_highlevel:               ; @hpsb_register_highlevel
	.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
	bl	_hpsb_init_highlevel
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x20, _hl_drivers_sem@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hl_drivers_sem@GOTPAGEOFF]
	mov	x0, x20
	bl	_down_write
	add	x0, x19, #12
Lloh2:
	adrp	x1, _hl_drivers@GOTPAGE
Lloh3:
	ldr	x1, [x1, _hl_drivers@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x20
	bl	_up_write
Lloh4:
	adrp	x20, _hl_irqs_lock@GOTPAGE
Lloh5:
	ldr	x20, [x20, _hl_irqs_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock_irqsave
	add	x0, x19, #8
Lloh6:
	adrp	x1, _hl_irqs@GOTPAGE
Lloh7:
	ldr	x1, [x1, _hl_irqs@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x20
	bl	_write_unlock_irqrestore
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _highlevel_for_each_host_reg@GOTPAGE
Lloh9:
	ldr	x8, [x8, _highlevel_for_each_host_reg@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nodemgr_for_each_host
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hl_drivers_sem,4,2             ; @hl_drivers_sem
	.comm	_hl_drivers,4,2                 ; @hl_drivers
	.comm	_hl_irqs_lock,4,2               ; @hl_irqs_lock
	.comm	_hl_irqs,4,2                    ; @hl_irqs
	.comm	_highlevel_for_each_host_reg,4,2 ; @highlevel_for_each_host_reg
.subsections_via_symbols
