	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw5864_frame_interval_set
_tw5864_frame_interval_set:             ## @tw5864_frame_interval_set
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_STD_NTSC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	(%rdx,%rdx,4), %eax
	addl	$25, %eax
	movl	16(%rdi), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	btsl	%edx, %ebx
	addl	%ecx, %edx
	cmpl	%eax, %edx
	jl	LBB0_1
## %bb.2:
	movl	8(%r14), %edi
	xorl	%esi, %esi
	callq	_TW5864_H264EN_RATE_CNTL_LO_WORD
	movl	%ebx, %esi
	sarl	$16, %esi
	movl	%eax, %edi
	callq	_tw_writel
	movl	8(%r14), %edi
	xorl	%esi, %esi
	callq	_TW5864_H264EN_RATE_CNTL_HI_WORD
	movzwl	%bx, %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tw_writel                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STD_NTSC,8,3                   ## @STD_NTSC
	.no_dead_strip	_tw5864_frame_interval_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw5864_frame_interval_set
_tw5864_frame_interval_set:             ; @tw5864_frame_interval_set
	.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, x0
	mov	w20, #0
	mov	w8, #0
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _STD_NTSC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STD_NTSC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #25
	mov	w10, #30
	csel	w9, w10, w9, eq
	ldr	w10, [x0, #16]
	mov	w11, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w12, w11, w8
	orr	w20, w20, w12
	add	w8, w8, w10
	cmp	w8, w9
	b.lt	LBB0_1
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_TW5864_H264EN_RATE_CNTL_LO_WORD
	asr	w1, w20, #16
	bl	_tw_writel
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_TW5864_H264EN_RATE_CNTL_HI_WORD
	and	w1, w20, #0xffff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tw_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STD_NTSC,8,3                   ; @STD_NTSC
	.no_dead_strip	_tw5864_frame_interval_set
.subsections_via_symbols
