	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viacam_enum_frameintervals
_viacam_enum_frameintervals:            ## @viacam_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movl	$0, -32(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movl	(%rax), %ecx
	movl	%ecx, -24(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -20(%rbp)
	movl	8(%rax), %ecx
	movl	%ecx, -16(%rbp)
	movl	32(%rbx), %ecx
	movl	%ecx, -12(%rbp)
	movq	_N_VIA_FMTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	(%rbx), %rdx
	movq	_via_formats@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rsi,%rdi,8), %rdx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movq	8(%rbx), %rcx
	movq	_QCIF_WIDTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_8
## %bb.5:
	movq	_VGA_WIDTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_8
## %bb.6:
	movq	16(%rbx), %rcx
	movq	_QCIF_HEIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_8
## %bb.7:
	movq	_VGA_HEIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_8
## %bb.9:
	movq	_pad@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_enum_frame_interval@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-32(%rbp), %r8
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_sensor_call
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_V4L2_FRMIVAL_TYPE_DISCRETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	-32(%rbp), %eax
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_N_VIA_FMTS,4,2                 ## @N_VIA_FMTS
	.comm	_via_formats,8,3                ## @via_formats
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QCIF_WIDTH,8,3                 ## @QCIF_WIDTH
	.comm	_VGA_WIDTH,8,3                  ## @VGA_WIDTH
	.comm	_QCIF_HEIGHT,8,3                ## @QCIF_HEIGHT
	.comm	_VGA_HEIGHT,8,3                 ## @VGA_HEIGHT
	.comm	_pad,4,2                        ## @pad
	.comm	_enum_frame_interval,4,2        ## @enum_frame_interval
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ## @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_viacam_enum_frameintervals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viacam_enum_frameintervals
_viacam_enum_frameintervals:            ; @viacam_enum_frameintervals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x2
	bl	_video_drvdata
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	ldr	d0, [x0]
	str	d0, [sp, #16]
	ldr	w8, [x0, #8]
	ldr	w9, [x19, #32]
	stp	w8, w9, [sp, #24]
Lloh3:
	adrp	x8, _N_VIA_FMTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _N_VIA_FMTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x9, [x19]
Lloh6:
	adrp	x10, _via_formats@GOTPAGE
Lloh7:
	ldr	x10, [x10, _via_formats@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x9, x11
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _QCIF_WIDTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QCIF_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _VGA_WIDTH@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VGA_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.gt	LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _QCIF_HEIGHT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QCIF_HEIGHT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _VGA_HEIGHT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VGA_HEIGHT@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh24:
	adrp	x8, _pad@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _enum_frame_interval@GOTPAGE
Lloh28:
	ldr	x8, [x8, _enum_frame_interval@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x3, #0
	bl	_sensor_call
	cbnz	w0, LBB0_7
; %bb.9:
Lloh30:
	adrp	x8, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	stp	w9, w8, [x19, #24]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_N_VIA_FMTS,4,2                 ; @N_VIA_FMTS
	.comm	_via_formats,8,3                ; @via_formats
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QCIF_WIDTH,8,3                 ; @QCIF_WIDTH
	.comm	_VGA_WIDTH,8,3                  ; @VGA_WIDTH
	.comm	_QCIF_HEIGHT,8,3                ; @QCIF_HEIGHT
	.comm	_VGA_HEIGHT,8,3                 ; @VGA_HEIGHT
	.comm	_pad,4,2                        ; @pad
	.comm	_enum_frame_interval,4,2        ; @enum_frame_interval
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ; @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_viacam_enum_frameintervals
.subsections_via_symbols
