	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nodemgr_send_resume_packet
_nodemgr_send_resume_packet:            ## @nodemgr_send_resume_packet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%rdi, %r14
	movq	_EXTPHYPACKET_TYPE_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%rdi), %edi
	callq	_NODEID_TO_NODE
	movq	_PHYPACKET_PORT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_hpsb_make_phypacket
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%r14, %rdi
	callq	_get_hpsb_generation
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_hpsb_send_packet
	movl	%eax, %r15d
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_HPSB_WARN
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EXTPHYPACKET_TYPE_RESUME,4,2   ## @EXTPHYPACKET_TYPE_RESUME
	.comm	_PHYPACKET_PORT_SHIFT,4,2       ## @PHYPACKET_PORT_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fw-host%d: Failed to broadcast resume packet"

	.no_dead_strip	_nodemgr_send_resume_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nodemgr_send_resume_packet
_nodemgr_send_resume_packet:            ; @nodemgr_send_resume_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _EXTPHYPACKET_TYPE_RESUME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXTPHYPACKET_TYPE_RESUME@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	w0, [x0, #4]
	bl	_NODEID_TO_NODE
Lloh6:
	adrp	x8, _PHYPACKET_PORT_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHYPACKET_PORT_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w1, w8, w20
	mov	x0, x19
	bl	_hpsb_make_phypacket
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w8, #1
	str	w8, [x0]
	mov	x0, x19
	bl	_get_hpsb_generation
	str	w0, [x20, #4]
	mov	x0, x20
	bl	_hpsb_send_packet
	mov	x20, x0
	cbz	w20, LBB0_3
LBB0_2:
	ldr	w1, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_WARN
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	neg	w20, w21
	cbnz	w20, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EXTPHYPACKET_TYPE_RESUME,4,2   ; @EXTPHYPACKET_TYPE_RESUME
	.comm	_PHYPACKET_PORT_SHIFT,4,2       ; @PHYPACKET_PORT_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fw-host%d: Failed to broadcast resume packet"

	.no_dead_strip	_nodemgr_send_resume_packet
.subsections_via_symbols
