	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_pong
_pp_pong:                               ## @pp_pong
	.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, %rbx
	movl	$0, -36(%rbp)
	movq	8(%rdi), %rdi
	xorl	%esi, %esi
	callq	_ntb_spad_read
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	-36(%rbp), %rsi
	xorl	%edx, %edx
	callq	_ntb_msg_read
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	movl	$-1, %esi
	callq	_ntb_msg_clear_sts
	movq	8(%rbx), %r12
	movl	-36(%rbp), %esi
	movq	%r12, %rdi
	callq	_ntb_peer_port_number
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_dev_dbg
	leaq	16(%rbx), %rdi
	callq	_atomic_inc
	movq	8(%rbx), %rdi
	movl	4(%rbx), %esi
	callq	_ntb_db_set_mask
	movq	8(%rbx), %rdi
	movl	4(%rbx), %esi
	callq	_ntb_db_clear
	movq	_delay_ms@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ms_to_ktime
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hrtimer_start
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pong spad %#x, msg %#x (port %d)\n"

	.comm	_delay_ms,4,2                   ## @delay_ms
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.no_dead_strip	_pp_pong
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_pong
_pp_pong:                               ; @pp_pong
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #12]
	ldr	x0, [x0, #8]
	mov	w1, #0
	bl	_ntb_spad_read
	mov	x20, x0
	ldr	x0, [x19, #8]
	add	x1, sp, #12
	mov	w2, #0
	bl	_ntb_msg_read
	mov	x21, x0
	ldr	x0, [x19, #8]
	mov	w1, #-1
	bl	_ntb_msg_clear_sts
	ldr	x22, [x19, #8]
	ldr	w1, [sp, #12]
	mov	x0, x22
	bl	_ntb_peer_port_number
	mov	x4, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_dev_dbg
	add	x0, x19, #16
	bl	_atomic_inc
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_ntb_db_set_mask
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_ntb_db_clear
Lloh2:
	adrp	x8, _delay_ms@GOTPAGE
Lloh3:
	ldr	x8, [x8, _delay_ms@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ms_to_ktime
	mov	x1, x0
Lloh5:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hrtimer_start
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pong spad %#x, msg %#x (port %d)\n"

	.comm	_delay_ms,4,2                   ; @delay_ms
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.no_dead_strip	_pp_pong
.subsections_via_symbols
