	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_calculate_burst_time   ## -- Begin function cypress_calculate_burst_time
	.p2align	4, 0x90
_cypress_calculate_burst_time:          ## @cypress_calculate_burst_time
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_rv770_get_pi
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	sete	%cl
	leal	4(,%rcx,4), %eax
	imull	%r14d, %eax
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	cltd
	idivl	%ecx
	xorl	%ecx, %ecx
	cmpl	$5, %eax
	jl	LBB0_4
## %bb.1:
	cmpl	$7, %eax
	ja	LBB0_3
## %bb.2:
	addl	$-4, %eax
	movl	%eax, %ecx
	jmp	LBB0_4
LBB0_3:
	shrl	%eax
	cmpl	$18, %eax
	movl	$18, %ecx
	cmovll	%eax, %ecx
LBB0_4:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_calculate_burst_time   ; -- Begin function cypress_calculate_burst_time
	.p2align	2
_cypress_calculate_burst_time:          ; @cypress_calculate_burst_time
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_rv770_get_pi
	ldr	x8, [x0]
	cmp	x8, #0
	mov	w8, #4
	mov	w9, #8
	csel	w8, w9, w8, eq
	mul	w8, w8, w20
	cmp	w19, #0
	cinc	w9, w19, lt
	asr	w9, w9, #1
	sdiv	w8, w8, w9
	cmp	w8, #5
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.3:
	sub	w0, w8, #4
	b	LBB0_5
LBB0_4:
	lsr	w8, w8, #1
	mov	w9, #18
	cmp	w8, #18
	csel	w0, w8, w9, lt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
