	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw5864_s_parm
_tw5864_s_parm:                         ## @tw5864_s_parm
	.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
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %rbx
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_tw5864_frameinterval_get
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	4(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.4:
	movl	-36(%rbp), %esi
	cmpl	%esi, %ecx
	je	LBB0_6
## %bb.5:
	imull	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, (%r12)
	movl	%esi, 4(%r12)
	jmp	LBB0_6
LBB0_3:
	movl	(%rbx), %eax
	imull	-40(%rbp), %eax
	movl	%eax, (%r12)
	movl	-36(%rbp), %ecx
	movl	%ecx, 4(%r12)
LBB0_6:
	cltd
	idivl	-40(%rbp)
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	callq	_tw5864_frame_interval_set
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_tw5864_g_parm
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tw5864_s_parm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw5864_s_parm
_tw5864_s_parm:                         ; @tw5864_s_parm
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_video_drvdata
	mov	x22, x0
	add	x1, sp, #8
	bl	_tw5864_frameinterval_get
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_5
; %bb.3:
	ldr	w10, [sp, #12]
	cmp	w9, w10
	b.eq	LBB0_7
; %bb.4:
	mul	w8, w10, w8
	sdiv	w8, w8, w9
	b	LBB0_6
LBB0_5:
	ldr	w8, [x22]
	ldp	w9, w10, [sp, #8]
	mul	w8, w8, w9
LBB0_6:
	stp	w8, w10, [x19]
LBB0_7:
	ldr	w9, [sp, #8]
	sdiv	w8, w8, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x22]
	mov	x0, x22
	bl	_tw5864_frame_interval_set
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_tw5864_g_parm
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tw5864_s_parm
.subsections_via_symbols
