	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_try_fmt_internal
_ov7670_try_fmt_internal:               ## @ov7670_try_fmt_internal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_N_OV7670_FMTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_ov7670_formats@GOTPCREL(%rip), %r8
	movq	(%r8), %r9
	testl	%r10d, %r10d
	jle	LBB0_4
## %bb.1:
	movq	(%rsi), %r11
	xorl	%edi, %edi
	movq	%r9, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r11, (%rax)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	addq	$16, %rax
	cmpq	%rdi, %r10
	jne	LBB0_2
LBB0_4:
	movq	(%r9), %rax
	movq	%rax, (%rsi)
	xorl	%edi, %edi
LBB0_5:
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	%rdi, %rax
	shlq	$4, %rax
	addq	%rax, %r9
	movq	%r9, (%rdx)
LBB0_7:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rsi)
	movq	_ov7670_win_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_N_WIN_SIZES@GOTPCREL(%rip), %rax
	movslq	(%rax), %r11
	movq	$-1, %r9
	testq	%r11, %r11
	jle	LBB0_13
## %bb.8:
	shlq	$4, %r11
	addq	%rdx, %r11
	movq	8(%rsi), %r10
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jae	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdx), %r10
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rsi), %rax
	cmpq	8(%rdx), %rax
	jl	LBB0_12
## %bb.11:
	xorl	%r9d, %r9d
LBB0_13:
	shlq	$4, %r9
	addq	%rdx, %r9
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movq	%r9, (%rcx)
LBB0_15:
	movups	(%r9), %xmm0
	movups	%xmm0, 8(%rsi)
	movq	(%r8), %rax
	shlq	$4, %rdi
	movl	8(%rax,%rdi), %eax
	movl	%eax, 24(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_N_OV7670_FMTS,4,2              ## @N_OV7670_FMTS
	.comm	_ov7670_formats,8,3             ## @ov7670_formats
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_ov7670_win_sizes,8,3           ## @ov7670_win_sizes
	.comm	_N_WIN_SIZES,4,2                ## @N_WIN_SIZES
	.no_dead_strip	_ov7670_try_fmt_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7670_try_fmt_internal
_ov7670_try_fmt_internal:               ; @ov7670_try_fmt_internal
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _N_OV7670_FMTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _N_OV7670_FMTS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
Lloh3:
	adrp	x8, _ov7670_formats@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ov7670_formats@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x12, [x1]
	mov	x13, x10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	cmp	x14, x12
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x13, x13, #16
	cmp	x11, x9
	b.ne	LBB0_2
LBB0_4:
	mov	x9, #0
	ldr	x11, [x10]
	str	x11, [x1]
LBB0_5:
	cbz	x2, LBB0_7
; %bb.6:
	add	x10, x10, x9, lsl #4
	str	x10, [x2]
LBB0_7:
Lloh5:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _ov7670_win_sizes@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ov7670_win_sizes@GOTPAGEOFF]
	str	w10, [x1, #28]
Lloh10:
	ldr	x10, [x11]
Lloh11:
	adrp	x11, _N_WIN_SIZES@GOTPAGE
Lloh12:
	ldr	x11, [x11, _N_WIN_SIZES@GOTPAGEOFF]
Lloh13:
	ldrsw	x11, [x11]
	cmp	w11, #1
	b.lt	LBB0_13
; %bb.8:
	add	x11, x10, x11, lsl #4
	ldr	x12, [x1, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #16
	cmp	x10, x11
	b.hs	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	cmp	x12, x13
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x13, [x1, #16]
	ldr	x14, [x10, #8]
	cmp	x13, x14
	b.lt	LBB0_9
; %bb.12:
	mov	x11, #0
	add	x10, x10, x11, lsl #4
	cbnz	x3, LBB0_14
	b	LBB0_15
LBB0_13:
	mov	x11, #-1
	add	x10, x10, x11, lsl #4
	cbz	x3, LBB0_15
LBB0_14:
	str	x10, [x3]
LBB0_15:
	ldr	q0, [x10]
	stur	q0, [x1, #8]
	ldr	x8, [x8]
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [x1, #24]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_N_OV7670_FMTS,4,2              ; @N_OV7670_FMTS
	.comm	_ov7670_formats,8,3             ; @ov7670_formats
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_ov7670_win_sizes,8,3           ; @ov7670_win_sizes
	.comm	_N_WIN_SIZES,4,2                ; @N_WIN_SIZES
	.no_dead_strip	_ov7670_try_fmt_internal
.subsections_via_symbols
