	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opal_heartbeat
_opal_heartbeat:                        ## @opal_heartbeat
	.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	_opal_heartbeat_ms@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_kproc_exit
LBB0_2:
	leaq	-44(%rbp), %r14
	movq	_OPAL_EVENT_MSG_PENDING@GOTPCREL(%rip), %r12
	movq	_opal_hb_proc@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %ebx
	movq	_opal_heartbeat_ms@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_MSEC_2_TICKS
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_tsleep
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movq	_OPAL_POLL_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_vtophys
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_opal_call
	movl	(%r12), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_opal_handle_messages
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_opal_heartbeat_ms,8,3          ## @opal_heartbeat_ms
	.comm	_OPAL_POLL_EVENTS,4,2           ## @OPAL_POLL_EVENTS
	.comm	_OPAL_EVENT_MSG_PENDING,4,2     ## @OPAL_EVENT_MSG_PENDING
	.comm	_opal_hb_proc,4,2               ## @opal_hb_proc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opal"

	.no_dead_strip	_opal_heartbeat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opal_heartbeat
_opal_heartbeat:                        ; @opal_heartbeat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x21, _opal_heartbeat_ms@GOTPAGE
Lloh1:
	ldr	x21, [x21, _opal_heartbeat_ms@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_kproc_exit
LBB0_2:
Lloh2:
	adrp	x22, _OPAL_POLL_EVENTS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OPAL_POLL_EVENTS@GOTPAGEOFF]
Lloh4:
	adrp	x23, _OPAL_EVENT_MSG_PENDING@GOTPAGE
Lloh5:
	ldr	x23, [x23, _OPAL_EVENT_MSG_PENDING@GOTPAGEOFF]
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
Lloh8:
	adrp	x24, _opal_hb_proc@GOTPAGE
Lloh9:
	ldr	x24, [x24, _opal_hb_proc@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w20, [x24]
	ldr	x0, [x21]
	bl	_MSEC_2_TICKS
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_tsleep
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #12]
	ldr	w20, [x22]
	add	x0, sp, #12
	bl	_vtophys
	mov	x1, x0
	mov	x0, x20
	bl	_opal_call
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_opal_handle_messages
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_opal_heartbeat_ms,8,3          ; @opal_heartbeat_ms
	.comm	_OPAL_POLL_EVENTS,4,2           ; @OPAL_POLL_EVENTS
	.comm	_OPAL_EVENT_MSG_PENDING,4,2     ; @OPAL_EVENT_MSG_PENDING
	.comm	_opal_hb_proc,4,2               ; @opal_hb_proc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opal"

	.no_dead_strip	_opal_heartbeat
.subsections_via_symbols
