	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7251_set_frame_interval
_ov7251_set_frame_interval:             ## @ov7251_set_frame_interval
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_to_ov7251
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ov7251_find_mode_by_ival
	movq	%rax, %r15
	cmpq	8(%r12), %rax
	je	LBB0_7
## %bb.1:
	movl	28(%r12), %edi
	movl	16(%r15), %esi
	callq	___v4l2_ctrl_s_ctrl_int64
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movl	24(%r12), %edi
	movl	(%r15), %esi
	callq	___v4l2_ctrl_s_ctrl
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movl	20(%r12), %edi
	movl	4(%r15), %r8d
	movl	12(%r15), %edx
	movl	$1, %esi
	movl	$1, %ecx
	callq	___v4l2_ctrl_modify_range
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movl	20(%r12), %edi
	movl	4(%r15), %esi
	callq	___v4l2_ctrl_s_ctrl
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	movl	16(%r12), %edi
	movl	$16, %esi
	callq	___v4l2_ctrl_s_ctrl
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	%r15, 8(%r12)
	jmp	LBB0_8
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	8(%r15), %eax
	movl	%eax, (%r14)
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ov7251_set_frame_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7251_set_frame_interval
_ov7251_set_frame_interval:             ; @ov7251_set_frame_interval
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	bl	_to_ov7251
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	_ov7251_find_mode_by_ival
	mov	x21, x0
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.1:
	ldr	w0, [x19, #28]
	ldr	w1, [x21, #16]
	bl	___v4l2_ctrl_s_ctrl_int64
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
	bl	___v4l2_ctrl_s_ctrl
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x19, #20]
	ldr	w2, [x21, #12]
	ldr	w4, [x21, #4]
	mov	w1, #1
	mov	w3, #1
	bl	___v4l2_ctrl_modify_range
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w0, [x19, #20]
	ldr	w1, [x21, #4]
	bl	___v4l2_ctrl_s_ctrl
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w0, [x19, #16]
	mov	w1, #16
	bl	___v4l2_ctrl_s_ctrl
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:
	str	x21, [x19, #8]
	b	LBB0_9
LBB0_7:
	mov	x22, x0
	b	LBB0_10
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	w8, [x21, #8]
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ov7251_set_frame_interval
.subsections_via_symbols
