	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5c73m3_set_frame_interval
___s5c73m3_set_frame_interval:          ## @__s5c73m3_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	_RES_ISP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rbx
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_s5c73m3_intervals@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	imull	$1000, 4(%rsi), %eax            ## imm = 0x3E8
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$24, %r15
	cmpq	%rax, %r14
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_s5c73m3_intervals@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %rax
	cmpq	8(%rdi,%r15), %rax
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	cmpq	16(%rdi,%r15), %rax
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rdi,%r15), %rax
	movslq	(%rdi,%r15), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	cmpl	%r13d, %edx
	cmovbl	%edx, %r13d
	cmovbq	%rax, %r12
	jmp	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, 8(%rdx)
	movq	_s5c73m3_dbg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	callq	_v4l2_dbg
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_ISP,8,3                    ## @RES_ISP
	.comm	_s5c73m3_intervals,8,3          ## @s5c73m3_intervals
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_s5c73m3_dbg,4,2                ## @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changed frame interval to %u us\n"

	.no_dead_strip	___s5c73m3_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 __s5c73m3_set_frame_interval
___s5c73m3_set_frame_interval:          ; @__s5c73m3_set_frame_interval
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w27, [x1]
	cbz	w27, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _RES_ISP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_ISP@GOTPAGEOFF]
	ldr	x9, [x0, #16]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x9, x8, lsl #3]
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x23, _s5c73m3_intervals@GOTPAGE
Lloh7:
	ldr	x23, [x23, _s5c73m3_intervals@GOTPAGEOFF]
	ldr	x20, [x23]
	ldr	w26, [x1, #4]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.2:
	mov	x24, #0
	mov	x25, #0
	mov	w8, #1000
	mul	w8, w26, w8
	mov	w26, #19923
	movk	w26, #4194, lsl #16
	sdiv	w27, w8, w27
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #24
	cmp	x25, w0, uxtw
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	add	x8, x0, x24
	ldr	x9, [x21]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #8]
	ldr	x10, [x8, #16]
	cmp	x9, x10
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x0, x24]
	mul	x9, x9, x26
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	subs	w9, w9, w27
	cneg	w9, w9, mi
	cmp	w9, w22
	csel	w22, w9, w22, lo
	csel	x20, x8, x20, lo
	b	LBB0_3
LBB0_7:
	str	x20, [x19, #8]
Lloh8:
	adrp	x8, _s5c73m3_dbg@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s5c73m3_dbg@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w4, [x20]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_ISP,8,3                    ; @RES_ISP
	.comm	_s5c73m3_intervals,8,3          ; @s5c73m3_intervals
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_s5c73m3_dbg,4,2                ; @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changed frame interval to %u us\n"

	.no_dead_strip	___s5c73m3_set_frame_interval
.subsections_via_symbols
