	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ceu_try_fmt
___ceu_try_fmt:                         ## @__ceu_try_fmt
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rax), %r12
	movq	$0, -56(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	leal	-128(%rdi), %edx
	cmpl	$7, %edx
	ja	LBB0_5
## %bb.1:
	movq	_MEDIA_BUS_FMT_YUYV8_2X8@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_3:
	movq	_MEDIA_BUS_FMT_YVYU8_2X8@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movl	$134, (%rbx)
	movl	$134, %edi
LBB0_6:
	movq	%rax, %rcx
LBB0_7:
	movq	(%rcx), %r13
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_get_ceu_fmt_from_fourcc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rdi
	movq	_CEU_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%rbx), %r8
	movq	_CEU_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	$2, %esi
	movl	$4, %ecx
	movl	$4, %r9d
	pushq	$0
	pushq	$4
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_fill_mbus_format_mplane
	movq	%r13, -56(%rbp)
	movq	_pad@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_set_fmt@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_11
## %bb.9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -56(%rbp)
	movl	(%r13), %esi
	movl	(%r15), %edx
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r12, %rdi
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_fill_pix_format_mplane
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_ceu_calc_plane_sizes
	movq	-56(%rbp), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MEDIA_BUS_FMT_VYUY8_2X8@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,8,3    ## @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,8,3    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_MEDIA_BUS_FMT_YVYU8_2X8,8,3    ## @MEDIA_BUS_FMT_YVYU8_2X8
	.comm	_MEDIA_BUS_FMT_VYUY8_2X8,8,3    ## @MEDIA_BUS_FMT_VYUY8_2X8
	.comm	_CEU_MAX_WIDTH,4,2              ## @CEU_MAX_WIDTH
	.comm	_CEU_MAX_HEIGHT,4,2             ## @CEU_MAX_HEIGHT
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___ceu_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ceu_try_fmt
___ceu_try_fmt:                         ; @__ceu_try_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x22, [x8, #8]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #16]
	ldr	x24, [x8]
	ldr	w0, [x1]
	sub	w10, w0, #128
	cmp	w10, #7
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGEOFF]
Lloh5:
	adrp	x11, lJTI0_0@PAGE
Lloh6:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh7:
	adrp	x9, _MEDIA_BUS_FMT_YVYU8_2X8@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MEDIA_BUS_FMT_YVYU8_2X8@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w0, #134
	str	w0, [x20]
LBB0_4:
	mov	x9, x8
LBB0_5:
	ldr	x25, [x9]
	bl	_get_ceu_fmt_from_fourcc
	mov	x23, x0
Lloh9:
	adrp	x8, _CEU_MAX_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CEU_MAX_WIDTH@GOTPAGEOFF]
	add	x0, x20, #8
Lloh11:
	ldr	w2, [x8]
	add	x4, x20, #4
Lloh12:
	adrp	x8, _CEU_MAX_HEIGHT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEU_MAX_HEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	w1, #2
	mov	w3, #4
	mov	w5, #4
	mov	w7, #4
	bl	_v4l_bound_align_image
	add	x0, sp, #8
	mov	x1, x20
	bl	_v4l2_fill_mbus_format_mplane
	str	x25, [sp, #8]
Lloh15:
	adrp	x25, _pad@GOTPAGE
Lloh16:
	ldr	x25, [x25, _pad@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh17:
	adrp	x26, _set_fmt@GOTPAGE
Lloh18:
	ldr	x26, [x26, _set_fmt@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x3, sp, #24
	add	x4, sp, #8
	mov	x0, x22
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_8
; %bb.6:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.7:
	str	x24, [sp, #8]
	ldr	w1, [x25]
	ldr	w2, [x26]
	add	x3, sp, #24
	add	x4, sp, #8
	mov	x0, x22
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_9
LBB0_8:
	add	x1, sp, #8
	mov	x0, x20
	bl	_v4l2_fill_pix_format_mplane
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_ceu_calc_plane_sizes
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh22:
	adrp	x9, _MEDIA_BUS_FMT_VYUY8_2X8@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MEDIA_BUS_FMT_VYUY8_2X8@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
Lloh24:
	adrp	x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,8,3    ; @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,8,3    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_MEDIA_BUS_FMT_YVYU8_2X8,8,3    ; @MEDIA_BUS_FMT_YVYU8_2X8
	.comm	_MEDIA_BUS_FMT_VYUY8_2X8,8,3    ; @MEDIA_BUS_FMT_VYUY8_2X8
	.comm	_CEU_MAX_WIDTH,4,2              ; @CEU_MAX_WIDTH
	.comm	_CEU_MAX_HEIGHT,4,2             ; @CEU_MAX_HEIGHT
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___ceu_try_fmt
.subsections_via_symbols
