	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_get_remote_heartbeat_sn2
_xpc_get_remote_heartbeat_sn2:          ## @xpc_get_remote_heartbeat_sn2
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_xpc_remote_copy_buffer_sn2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_xp_pa
	movl	8(%r14), %esi
	movq	_XPC_RP_VARS_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_xp_remote_memcpy
	movl	%eax, %r15d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_6
## %bb.1:
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_XPC_PARTID
	movq	(%r14), %r8
	movl	16(%rbx), %r9d
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.2:
	cmpl	$0, 16(%rbx)
	je	LBB0_4
LBB0_3:
	movq	_sn_partition_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_xpc_hb_allowed_sn2
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_4:
	movq	_xpNoHeartbeat@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_remote_copy_buffer_sn2,8,3 ## @xpc_remote_copy_buffer_sn2
	.comm	_XPC_RP_VARS_SIZE,4,2           ## @XPC_RP_VARS_SIZE
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpc_part,4,2                   ## @xpc_part
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"partid=%d, heartbeat=%lld, last_heartbeat=%lld, heartbeat_offline=%lld, HB_mask[0]=0x%lx\n"

	.comm	_sn_partition_id,4,2            ## @sn_partition_id
	.comm	_xpNoHeartbeat,4,2              ## @xpNoHeartbeat
	.no_dead_strip	_xpc_get_remote_heartbeat_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_get_remote_heartbeat_sn2
_xpc_get_remote_heartbeat_sn2:          ; @xpc_get_remote_heartbeat_sn2
	.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, _xpc_remote_copy_buffer_sn2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_remote_copy_buffer_sn2@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_xp_pa
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x8, _XPC_RP_VARS_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XPC_RP_VARS_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_xp_remote_memcpy
	mov	x21, x0
Lloh6:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.1:
Lloh9:
	adrp	x8, _xpc_part@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_XPC_PARTID
	mov	x2, x0
	ldr	x4, [x19]
	ldr	w5, [x20, #16]
	ldp	x3, x8, [x20]
	ldr	w6, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _sn_partition_id@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sn_partition_id@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_xpc_hb_allowed_sn2
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _xpNoHeartbeat@GOTPAGE
Lloh18:
	ldr	x8, [x8, _xpNoHeartbeat@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_remote_copy_buffer_sn2,8,3 ; @xpc_remote_copy_buffer_sn2
	.comm	_XPC_RP_VARS_SIZE,4,2           ; @XPC_RP_VARS_SIZE
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpc_part,4,2                   ; @xpc_part
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"partid=%d, heartbeat=%lld, last_heartbeat=%lld, heartbeat_offline=%lld, HB_mask[0]=0x%lx\n"

	.comm	_sn_partition_id,4,2            ; @sn_partition_id
	.comm	_xpNoHeartbeat,4,2              ; @xpNoHeartbeat
	.no_dead_strip	_xpc_get_remote_heartbeat_sn2
.subsections_via_symbols
