	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k6aa_try_format
_s5k6aa_try_format:                     ## @s5k6aa_try_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rsi), %rdi
	movq	_S5K6AA_WIN_WIDTH_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S5K6AA_WIN_WIDTH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	12(%rbx), %r8
	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
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movl	8(%rbx), %ecx
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_3
## %bb.2:
	movl	%eax, 8(%rbx)
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_s5k6aa_get_pixfmt_index
	movq	_s5k6aa_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	4(%rcx,%rax,8), %edx
	movl	%edx, 8(%rbx)
	movl	(%rcx,%rax,8), %eax
	movl	%eax, 4(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_COLORSPACE_REC709,4,2     ## @V4L2_COLORSPACE_REC709
	.comm	_s5k6aa_formats,8,3             ## @s5k6aa_formats
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_s5k6aa_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k6aa_try_format
_s5k6aa_try_format:                     ; @s5k6aa_try_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _S5K6AA_WIN_WIDTH_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5K6AA_WIN_WIDTH_MIN@GOTPAGEOFF]
	add	x0, x1, #16
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _S5K6AA_WIN_WIDTH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S5K6AA_WIN_WIDTH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, x19, #12
Lloh6:
	adrp	x8, _S5K6AA_WIN_HEIGHT_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5K6AA_WIN_HEIGHT_MIN@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _S5K6AA_WIN_HEIGHT_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S5K6AA_WIN_HEIGHT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	w3, #1
	mov	w7, #1
	bl	_v4l_bound_align_image
	ldr	w9, [x19, #8]
Lloh12:
	adrp	x8, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh16:
	ldr	x10, [x10, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w9, w10, #4, ne
	b.eq	LBB0_2
; %bb.1:
	str	w8, [x19, #8]
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_s5k6aa_get_pixfmt_index
Lloh18:
	adrp	x8, _s5k6aa_formats@GOTPAGE
Lloh19:
	ldr	x8, [x8, _s5k6aa_formats@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	d0, [x8, w0, uxtw #3]
	stur	d0, [x19, #4]
Lloh21:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_COLORSPACE_REC709,4,2     ; @V4L2_COLORSPACE_REC709
	.comm	_s5k6aa_formats,8,3             ; @s5k6aa_formats
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_s5k6aa_try_format
.subsections_via_symbols
