	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia2_enum_frameintervals
_cpia2_enum_frameintervals:             ## @cpia2_enum_frameintervals
	.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, %r12
	callq	_video_drvdata
	movq	%rax, %r14
	movq	_framerate_controls@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r12), %rcx
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
LBB0_3:
	leal	-1(%rax), %ecx
	movq	8(%r14), %rdx
	movq	_DEVICE_STV_672@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rdx
	movq	_CPIA2_VP_SENSOR_FLAGS_500@GOTPCREL(%rip), %rsi
	addl	$-3, %eax
	cmpq	(%rsi), %rdx
	cmovel	%eax, %ecx
LBB0_5:
	cmpl	%ecx, 8(%r12)
	jg	LBB0_2
## %bb.6:
	movq	_cpia2_framesizes@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r13
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%r14), %rdi
	cmpq	-8(%rdi,%rbx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r12), %rax
	cmpq	(%rdi,%rbx), %rax
	jne	LBB0_11
	jmp	LBB0_12
LBB0_7:
	xorl	%r13d, %r13d
LBB0_12:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_V4L2_FRMIVAL_TYPE_DISCRETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	(%r15), %rax
	movslq	8(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %eax
	movl	%eax, 32(%r12)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_framerate_controls,8,3         ## @framerate_controls
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ## @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DEVICE_STV_672,8,3             ## @DEVICE_STV_672
	.comm	_CPIA2_VP_SENSOR_FLAGS_500,8,3  ## @CPIA2_VP_SENSOR_FLAGS_500
	.comm	_cpia2_framesizes,8,3           ## @cpia2_framesizes
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ## @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_cpia2_enum_frameintervals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpia2_enum_frameintervals
_cpia2_enum_frameintervals:             ; @cpia2_enum_frameintervals
	.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	x19, x2
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x21, _framerate_controls@GOTPAGE
Lloh1:
	ldr	x21, [x21, _framerate_controls@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.1:
	sub	w8, w0, #1
	ldr	x9, [x20, #8]
Lloh8:
	adrp	x10, _DEVICE_STV_672@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DEVICE_STV_672@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x20]
Lloh11:
	adrp	x10, _CPIA2_VP_SENSOR_FLAGS_500@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CPIA2_VP_SENSOR_FLAGS_500@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	sub	w11, w0, #3
	cmp	x9, x10
	csel	w8, w11, w8, eq
LBB0_3:
	ldr	w9, [x19, #8]
	cmp	w9, w8
	b.gt	LBB0_11
; %bb.4:
Lloh14:
	adrp	x20, _cpia2_framesizes@GOTPAGE
Lloh15:
	ldr	x20, [x20, _cpia2_framesizes@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x23, #0
	mov	x22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #24
	cmp	x22, w0, sxtw
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x20]
	ldr	x9, [x0, x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #24]
	add	x9, x0, x23
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.ne	LBB0_6
	b	LBB0_10
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ne	LBB0_13
LBB0_11:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	mov	w0, #0
Lloh19:
	adrp	x8, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	x9, [x21]
	ldrsw	x10, [x19, #8]
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldr	w9, [x9, #16]
	stp	w9, w8, [x19, #32]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_framerate_controls,8,3         ; @framerate_controls
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ; @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DEVICE_STV_672,8,3             ; @DEVICE_STV_672
	.comm	_CPIA2_VP_SENSOR_FLAGS_500,8,3  ; @CPIA2_VP_SENSOR_FLAGS_500
	.comm	_cpia2_framesizes,8,3           ; @cpia2_framesizes
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ; @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_cpia2_enum_frameintervals
.subsections_via_symbols
