	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_tcal_header_tsc             ## -- Begin function pt_tcal_header_tsc
	.p2align	4, 0x90
_pt_tcal_header_tsc:                    ## @pt_tcal_header_tsc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.5:
	movq	(%rdi), %rdx
	movq	8(%rdi), %r8
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
	movq	$0, 8(%rdi)
	xorl	%ecx, %ecx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.6:
	testq	%r8, %r8
	je	LBB0_4
## %bb.7:
	cmpq	$0, 16(%rdi)
	jne	LBB0_4
## %bb.8:
	cmpq	%rdx, %rax
	jge	LBB0_11
## %bb.9:
	movq	_pt_pl_tsc_bit_size@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	addq	%rsi, %rax
	cmpq	%rdx, %rax
	jge	LBB0_11
## %bb.10:
	movq	_pte_bad_packet@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	_pt_tcal_fcr_shr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$-1, %rsi
	shrq	%cl, %rsi
	subq	%rdx, %rax
	notq	%rsi
	testq	%rsi, %rax
	je	LBB0_12
LBB0_2:
	movq	_pte_internal@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_4:
	movl	%ecx, %eax
	popq	%rbp
	retq
LBB0_12:
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	%rax, %rcx
	orq	%r8, %rcx
	shrq	$32, %rcx
	je	LBB0_13
## %bb.14:
	cqto
	idivq	%r8
	jmp	LBB0_15
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:
	movq	%rax, %rsi
	popq	%rbp
	jmp	_pt_tcal_set_fcr                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pt_pl_tsc_bit_size,8,3         ## @pt_pl_tsc_bit_size
	.comm	_pte_bad_packet,4,2             ## @pte_bad_packet
	.comm	_pt_tcal_fcr_shr,8,3            ## @pt_tcal_fcr_shr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_tcal_header_tsc             ; -- Begin function pt_tcal_header_tsc
	.p2align	2
_pt_tcal_header_tsc:                    ; @pt_tcal_header_tsc
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	cbz	x1, LBB0_9
; %bb.2:
	ldp	x9, x8, [x0]
	ldr	x10, [x1]
	stp	x10, xzr, [x0]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:
	ldr	x11, [x0, #16]
	cbz	x11, LBB0_5
LBB0_4:
	mov	w0, #0
	ret
LBB0_5:
	cmp	x10, x9
	b.ge	LBB0_8
; %bb.6:
Lloh0:
	adrp	x11, _pt_pl_tsc_bit_size@GOTPAGE
Lloh1:
	ldr	x11, [x11, _pt_pl_tsc_bit_size@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	mov	w12, #1
	lsl	x11, x12, x11
	add	x10, x11, x10
	cmp	x10, x9
	b.ge	LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _pte_bad_packet@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_bad_packet@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	sub	x9, x10, x9
Lloh5:
	adrp	x10, _pt_tcal_fcr_shr@GOTPAGE
Lloh6:
	ldr	x10, [x10, _pt_tcal_fcr_shr@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	mov	x11, #-1
	lsr	x11, x11, x10
	bics	xzr, x9, x11
	b.eq	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _pte_internal@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_11:
	lsl	x9, x9, x10
	sdiv	x1, x9, x8
	b	_pt_tcal_set_fcr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pt_pl_tsc_bit_size,8,3         ; @pt_pl_tsc_bit_size
	.comm	_pte_bad_packet,4,2             ; @pte_bad_packet
	.comm	_pt_tcal_fcr_shr,8,3            ; @pt_tcal_fcr_shr
.subsections_via_symbols
