	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cstatus_binlog_pos             ## -- Begin function cstatus_binlog_pos
	.p2align	4, 0x90
_cstatus_binlog_pos:                    ## @cstatus_binlog_pos
	.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	_MyCData@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_CDataUserInfo@GOTPCREL(%rip), %r15
	movq	%rdi, (%r15)
	movq	_CD_BINLOG_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CD_BINLOG_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	notl	%edx
	andl	8(%r15), %edx
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	cmovnel	%ecx, %r13d
	testl	%esi, %esi
	cmovnel	%eax, %r13d
	orl	%edx, %r13d
	movl	%r13d, 8(%r15)
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_get_precise_time
	movl	%eax, 12(%r15)
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_begin_update_copy
	movq	%r14, (%rbx)
	movl	12(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	%r13d, 8(%rbx)
	movq	%rbx, %rdi
	callq	_end_update_copy
	movq	(%r12), %rax
	movq	(%rax), %rbx
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_begin_update_copy
	movq	%r14, 16(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	%r13d, 24(%rbx)
	movq	%r12, %rdi
	callq	_end_update_copy
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyCData,8,3                    ## @MyCData
	.comm	_CDataUserInfo,16,3             ## @CDataUserInfo
	.comm	_CD_BINLOG_R,4,2                ## @CD_BINLOG_R
	.comm	_CD_BINLOG_W,4,2                ## @CD_BINLOG_W
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cstatus_binlog_pos             ; -- Begin function cstatus_binlog_pos
	.p2align	2
_cstatus_binlog_pos:                    ; @cstatus_binlog_pos
	.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
Lloh0:
	adrp	x21, _MyCData@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MyCData@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x22, _CDataUserInfo@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CDataUserInfo@GOTPAGEOFF]
	str	x0, [x22]
	ldr	w8, [x22, #8]
Lloh4:
	adrp	x9, _CD_BINLOG_R@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CD_BINLOG_R@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _CD_BINLOG_W@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CD_BINLOG_W@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w11, w10, w9
	bic	w8, w8, w11
	cmp	x0, #0
	csel	w10, wzr, w10, eq
	cmp	w1, #0
	csel	w9, w10, w9, eq
	orr	w23, w8, w9
	str	w23, [x22, #8]
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_get_precise_time
	str	w0, [x22, #12]
	ldr	x8, [x21]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_begin_update_copy
	str	x19, [x20]
	ldr	w8, [x22, #12]
	stp	w23, w8, [x20, #8]
	mov	x0, x20
	bl	_end_update_copy
	ldr	x8, [x21]
	ldr	x21, [x8]
	add	x20, x21, #16
	mov	x0, x20
	bl	_begin_update_copy
	str	x19, [x21, #16]
	ldr	w8, [x22, #12]
	stp	w23, w8, [x21, #24]
	mov	x0, x20
	bl	_end_update_copy
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MyCData,8,3                    ; @MyCData
	.comm	_CDataUserInfo,16,3             ; @CDataUserInfo
	.comm	_CD_BINLOG_R,4,2                ; @CD_BINLOG_R
	.comm	_CD_BINLOG_W,4,2                ; @CD_BINLOG_W
.subsections_via_symbols
