	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5k6aa_set_frame_interval
___s5k6aa_set_frame_interval:           ## @__s5k6aa_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), %rbx
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_s5k6aa_intervals@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	imull	$10000, 4(%rsi), %eax           ## imm = 0x2710
	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	_s5k6aa_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
	movl	(%rdi,%r15), %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	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	$100, (%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	_s5k6aa_intervals,8,3           ## @s5k6aa_intervals
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changed frame interval to %d us\n"

	.no_dead_strip	___s5k6aa_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 __s5k6aa_set_frame_interval
___s5k6aa_set_frame_interval:           ; @__s5k6aa_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	w26, [x1]
	cbz	w26, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
	ldr	x21, [x0, #16]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x23, _s5k6aa_intervals@GOTPAGE
Lloh4:
	ldr	x23, [x23, _s5k6aa_intervals@GOTPAGEOFF]
	ldr	x20, [x23]
	ldr	w27, [x1, #4]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.2:
	mov	x24, #0
	mov	x25, #0
	mov	w8, #10000
	mul	w8, w27, w8
	sdiv	w26, w8, w26
	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
	ldr	w9, [x0, x24]
	subs	w9, w9, w26
	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]
Lloh5:
	adrp	x8, _debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x20]
	mov	w9, #100
	mul	w4, w8, w9
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_s5k6aa_intervals,8,3           ; @s5k6aa_intervals
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changed frame interval to %d us\n"

	.no_dead_strip	___s5k6aa_set_frame_interval
.subsections_via_symbols
