	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k6aa_enum_frame_interval
_s5k6aa_enum_frame_interval:            ## @s5k6aa_enum_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	callq	_to_s5k6aa
	movq	%rax, %r14
	movq	(%r13), %rbx
	movq	_s5k6aa_intervals@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_1
## %bb.2:
	leaq	8(%r13), %rdi
	movq	_S5K6AA_WIN_WIDTH_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S5K6AA_WIN_WIDTH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%r13), %r15
	movq	_S5K6AA_WIN_HEIGHT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_S5K6AA_WIN_HEIGHT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	$1, %ecx
	movq	%r15, %r8
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	8(%rax,%rcx,8), %rdx
	jg	LBB0_4
## %bb.3:
	movq	(%r15), %rdx
	cmpq	16(%rax,%rcx,8), %rdx
	jle	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	movl	(%rax,%rcx,8), %eax
	movl	%eax, 24(%r13)
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %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	_EINVAL,4,2                     ## @EINVAL
	.comm	_S5K6AA_WIN_WIDTH_MIN,4,2       ## @S5K6AA_WIN_WIDTH_MIN
	.comm	_S5K6AA_WIN_WIDTH_MAX,4,2       ## @S5K6AA_WIN_WIDTH_MAX
	.comm	_S5K6AA_WIN_HEIGHT_MIN,4,2      ## @S5K6AA_WIN_HEIGHT_MIN
	.comm	_S5K6AA_WIN_HEIGHT_MAX,4,2      ## @S5K6AA_WIN_HEIGHT_MAX
	.no_dead_strip	_s5k6aa_enum_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_enum_frame_interval
_s5k6aa_enum_frame_interval:            ; @s5k6aa_enum_frame_interval
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	bl	_to_s5k6aa
	mov	x19, x0
	ldr	x21, [x20]
Lloh0:
	adrp	x22, _s5k6aa_intervals@GOTPAGE
Lloh1:
	ldr	x22, [x22, _s5k6aa_intervals@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _S5K6AA_WIN_WIDTH_MIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5K6AA_WIN_WIDTH_MIN@GOTPAGEOFF]
	add	x0, x20, #8
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _S5K6AA_WIN_WIDTH_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S5K6AA_WIN_WIDTH_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x21, x20, #16
Lloh8:
	adrp	x8, _S5K6AA_WIN_HEIGHT_MIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S5K6AA_WIN_HEIGHT_MIN@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _S5K6AA_WIN_HEIGHT_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S5K6AA_WIN_HEIGHT_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	w3, #1
	mov	x4, x21
	mov	w7, #1
	bl	_v4l_bound_align_image
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x22]
	ldp	x9, x10, [x20]
	mov	w11, #24
	madd	x11, x9, x11, x8
	ldr	x11, [x11, #8]
	cmp	x10, x11
	b.gt	LBB0_3
; %bb.2:
	ldr	x10, [x21]
	mov	w11, #24
	madd	x11, x9, x11, x8
	ldr	x11, [x11, #16]
	cmp	x10, x11
	b.le	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	mov	w10, #24
	mul	x9, x9, x10
	ldr	w8, [x8, x9]
	str	w8, [x20, #24]
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_s5k6aa_intervals,8,3           ; @s5k6aa_intervals
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_S5K6AA_WIN_WIDTH_MIN,4,2       ; @S5K6AA_WIN_WIDTH_MIN
	.comm	_S5K6AA_WIN_WIDTH_MAX,4,2       ; @S5K6AA_WIN_WIDTH_MAX
	.comm	_S5K6AA_WIN_HEIGHT_MIN,4,2      ; @S5K6AA_WIN_HEIGHT_MIN
	.comm	_S5K6AA_WIN_HEIGHT_MAX,4,2      ; @S5K6AA_WIN_HEIGHT_MAX
	.no_dead_strip	_s5k6aa_enum_frame_interval
.subsections_via_symbols
