	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw686x_set_framerate
_tw686x_set_framerate:                  ## @tw686x_set_framerate
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_TW686X_MAX_FPS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_tw686x_fps_idx
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	movq	_VIDEO_FIELD_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_fps_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %edx
	callq	_reg_write
	movl	8(%rbx), %edi
	callq	_TW686X_MAX_FPS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_tw686x_real_fps
	movl	%eax, 12(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_FIELD_CTRL,8,3           ## @VIDEO_FIELD_CTRL
	.comm	_fps_map,8,3                    ## @fps_map
	.no_dead_strip	_tw686x_set_framerate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw686x_set_framerate
_tw686x_set_framerate:                  ; @tw686x_set_framerate
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_TW686X_MAX_FPS
	mov	x1, x0
	mov	x0, x19
	bl	_tw686x_fps_idx
	mov	x19, x0
Lloh0:
	adrp	x8, _VIDEO_FIELD_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_FIELD_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w0, [x20, #16]
Lloh3:
	adrp	x8, _fps_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fps_map@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w2, [x8, w19, uxtw #2]
	bl	_reg_write
	ldr	w0, [x20, #8]
	bl	_TW686X_MAX_FPS
	mov	x1, x0
	mov	x0, x19
	bl	_tw686x_real_fps
	str	w0, [x20, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_FIELD_CTRL,8,3           ; @VIDEO_FIELD_CTRL
	.comm	_fps_map,8,3                    ; @fps_map
	.no_dead_strip	_tw686x_set_framerate
.subsections_via_symbols
