	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx274_s_frame_interval
_imx274_s_frame_interval:               ## @imx274_s_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, %r15
	callq	_to_imx274
	movq	%rax, %rbx
	movq	16(%rax), %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_imx274_set_frame_interval
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_IMX274_MIN_EXPOSURE_TIME@GOTPCREL(%rip), %rcx
	imull	$1000000, (%r15), %eax          ## imm = 0xF4240
	movl	(%rcx), %esi
	cltd
	idivl	4(%r15)
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	%eax, %r8d
	callq	___v4l2_ctrl_modify_range
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_4
LBB0_3:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_imx274_set_exposure
	imull	$1000000, (%r15), %eax          ## imm = 0xF4240
	movq	8(%rbx), %rdi
	cltd
	idivl	4(%r15)
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_4:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX274_MIN_EXPOSURE_TIME,4,2   ## @IMX274_MIN_EXPOSURE_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Exposure ctrl range update failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"set frame interval to %uus\n"

	.no_dead_strip	_imx274_s_frame_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx274_s_frame_interval
_imx274_s_frame_interval:               ; @imx274_s_frame_interval
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	bl	_to_imx274
	mov	x19, x0
	ldr	x22, [x0, #16]
	bl	_mutex_lock
	ldr	x1, [x21]
	mov	x0, x19
	bl	_imx274_set_frame_interval
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _IMX274_MIN_EXPOSURE_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMX274_MIN_EXPOSURE_TIME@GOTPAGEOFF]
	mov	w23, #16960
	movk	w23, #15, lsl #16
Lloh2:
	ldr	w1, [x8]
	ldp	w8, w9, [x21]
	mul	w8, w8, w23
	sdiv	w2, w8, w9
	mov	x0, x22
	mov	w3, #1
	mov	x4, x2
	bl	___v4l2_ctrl_modify_range
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_imx274_set_exposure
	ldr	x0, [x19, #8]
	ldp	w8, w9, [x21]
	mul	w8, w8, w23
	sdiv	w2, w8, w9
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX274_MIN_EXPOSURE_TIME,4,2   ; @IMX274_MIN_EXPOSURE_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Exposure ctrl range update failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"set frame interval to %uus\n"

	.no_dead_strip	_imx274_s_frame_interval
.subsections_via_symbols
