	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c4_peek
_c4_peek:                               ## @c4_peek
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_HZ@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wait_for_doorbell
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_MBOX_PEEK_POKE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_c4outmeml
	movq	_DOORBELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	_DBELL_RNWR@GOTPCREL(%rip), %rax
	movq	_DBELL_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	orq	(%rax), %rsi
	callq	_c4outmeml
	movslq	(%r13), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wait_for_doorbell
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	_MBOX_PEEK_POKE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_c4inmeml
	movq	%rax, (%r14)
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_MBOX_PEEK_POKE,8,3             ## @MBOX_PEEK_POKE
	.comm	_DOORBELL,8,3                   ## @DOORBELL
	.comm	_DBELL_RNWR,8,3                 ## @DBELL_RNWR
	.comm	_DBELL_ADDR,8,3                 ## @DBELL_ADDR
	.no_dead_strip	_c4_peek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c4_peek
_c4_peek:                               ; @c4_peek
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _HZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
	ldrsw	x8, [x22]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	bl	_wait_for_doorbell
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh2:
	adrp	x23, _MBOX_PEEK_POKE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MBOX_PEEK_POKE@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	mov	x1, x21
	bl	_c4outmeml
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _DOORBELL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DOORBELL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _DBELL_RNWR@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DBELL_RNWR@GOTPAGEOFF]
	add	x0, x9, x8
Lloh9:
	ldr	x8, [x10]
Lloh10:
	adrp	x9, _DBELL_ADDR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DBELL_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	orr	x1, x9, x8
	bl	_c4outmeml
	ldrsw	x8, [x22]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	mov	x0, x20
	bl	_wait_for_doorbell
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_c4inmeml
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_MBOX_PEEK_POKE,8,3             ; @MBOX_PEEK_POKE
	.comm	_DOORBELL,8,3                   ; @DOORBELL
	.comm	_DBELL_RNWR,8,3                 ; @DBELL_RNWR
	.comm	_DBELL_ADDR,8,3                 ; @DBELL_ADDR
	.no_dead_strip	_c4_peek
.subsections_via_symbols
