	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_time_update_mtc             ## -- Begin function pt_time_update_mtc
	.p2align	4, 0x90
_pt_time_update_mtc:                    ## @pt_time_update_mtc
	.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
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.3:
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movl	8(%rbx), %eax
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	testl	%edi, %edi
	je	LBB0_10
LBB0_5:
	movl	(%r15), %r8d
	movl	(%rsi), %esi
	movl	%r8d, %ecx
	shll	%cl, %esi
	movq	32(%rbx), %r12
	movl	12(%rbx), %edx
	cmpq	$0, 16(%rbx)
	je	LBB0_11
LBB0_6:
	movl	%esi, 24(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, 16(%rbx)
	movl	%esi, 12(%rbx)
	movq	$0, 48(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	testl	%edi, %edi
	je	LBB0_10
## %bb.8:
	movq	_pt_pl_tma_ctc_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	notl	%eax
	testl	%eax, %edx
	je	LBB0_14
LBB0_9:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpq	$0, 48(%rbx)
	jne	LBB0_6
## %bb.12:
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	movl	$1, 8(%rbx)
	movq	$0, 16(%rbx)
	movl	%esi, 12(%rbx)
	movq	$0, 48(%rbx)
	jmp	LBB0_17
LBB0_14:
	andl	%esi, %ecx
	andl	%esi, %eax
	cmpl	%edx, %ecx
	jge	LBB0_16
## %bb.15:
	movq	_pt_pl_tma_ctc_bit_size@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$-1, %edi
	shll	%cl, %edi
	addl	%eax, %edi
	movq	_pt_pl_mtc_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r8d, %ecx
	shll	%cl, %eax
	andl	%edi, %eax
LBB0_16:
	orl	%eax, %edx
LBB0_17:
	leaq	-36(%rbp), %rdi
	movq	%r15, %rcx
	callq	_pt_time_ctc_delta
	testl	%eax, %eax
	js	LBB0_20
## %bb.18:
	movl	-36(%rbp), %esi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_pt_time_ctc_fc
	testl	%eax, %eax
	js	LBB0_21
## %bb.19:
	addq	-48(%rbp), %r12
	movq	%r12, 32(%rbx)
	movq	%r12, 40(%rbx)
	jmp	LBB0_10
LBB0_20:
	incl	28(%rbx)
LBB0_21:
	movl	%eax, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pt_pl_tma_ctc_mask,8,3         ## @pt_pl_tma_ctc_mask
	.comm	_pt_pl_tma_ctc_bit_size,4,2     ## @pt_pl_tma_ctc_bit_size
	.comm	_pt_pl_mtc_mask,8,3             ## @pt_pl_mtc_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_time_update_mtc             ; -- Begin function pt_time_update_mtc
	.p2align	2
_pt_time_update_mtc:                    ; @pt_time_update_mtc
	.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
	cbz	x0, LBB0_10
; %bb.1:
	cbz	x1, LBB0_10
; %bb.2:
	mov	x20, x2
	cbz	x2, LBB0_10
; %bb.3:
	mov	x19, x0
	ldp	w8, w9, [x0]
	ldr	w10, [x0, #8]
	cbz	w8, LBB0_6
; %bb.4:
	cbnz	w9, LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldr	x21, [x19, #32]
	ldr	w2, [x19, #12]
	ldr	w8, [x20]
	ldr	w11, [x1]
	lsl	w1, w11, w8
	ldr	x11, [x19, #16]
	cbz	x11, LBB0_12
LBB0_7:
	str	w1, [x19, #24]
	mov	w11, #1
	str	xzr, [x19, #16]
	stp	w11, w1, [x19, #8]
	str	xzr, [x19, #48]
	cbnz	w10, LBB0_18
; %bb.8:
	cbz	w9, LBB0_5
; %bb.9:
Lloh0:
	adrp	x9, _pt_pl_tma_ctc_mask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pt_pl_tma_ctc_mask@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w2, w9
	b.eq	LBB0_15
LBB0_10:
Lloh3:
	adrp	x8, _pte_internal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
	ldr	x11, [x19, #48]
	cbnz	x11, LBB0_7
; %bb.13:
	cbz	w10, LBB0_7
; %bb.14:
	mov	w8, #1
	str	xzr, [x19, #16]
	stp	w8, w1, [x19, #8]
	str	xzr, [x19, #48]
	b	LBB0_18
LBB0_15:
	mvn	w10, w9
	and	w11, w1, w9
	and	w9, w1, w10
	cmp	w11, w2
	b.ge	LBB0_17
; %bb.16:
Lloh6:
	adrp	x10, _pt_pl_tma_ctc_bit_size@GOTPAGE
Lloh7:
	ldr	x10, [x10, _pt_pl_tma_ctc_bit_size@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mov	w11, #-1
	lsl	w10, w11, w10
Lloh9:
	adrp	x11, _pt_pl_mtc_mask@GOTPAGE
Lloh10:
	ldr	x11, [x11, _pt_pl_mtc_mask@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	lsl	w8, w11, w8
	add	w9, w10, w9
	and	w9, w8, w9
LBB0_17:
	orr	w2, w9, w2
LBB0_18:
	add	x0, sp, #12
	mov	x3, x20
	bl	_pt_time_ctc_delta
	tbnz	w0, #31, LBB0_21
; %bb.19:
	ldr	w1, [sp, #12]
	mov	x0, sp
	mov	x2, x20
	bl	_pt_time_ctc_fc
	tbnz	w0, #31, LBB0_11
; %bb.20:
	mov	w0, #0
	ldr	x8, [sp]
	add	x8, x8, x21
	stp	x8, x8, [x19, #32]
	b	LBB0_11
LBB0_21:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pt_pl_tma_ctc_mask,8,3         ; @pt_pl_tma_ctc_mask
	.comm	_pt_pl_tma_ctc_bit_size,4,2     ; @pt_pl_tma_ctc_bit_size
	.comm	_pt_pl_mtc_mask,8,3             ; @pt_pl_mtc_mask
.subsections_via_symbols
