	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_lite_try_fmt
_fimc_lite_try_fmt:                     ## @fimc_lite_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
	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
	movq	%rsi, %r14
	movq	24(%rsi), %rax
	movl	(%rax), %r15d
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	movq	_FMT_FLAGS_YUV@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	16(%r14), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_fimc_lite_find_format
	movq	%rax, %rbx
LBB0_4:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movq	%rbx, (%r12)
LBB0_7:
	movl	4(%r13), %edi
	movl	8(%r13), %r12d
	callq	_ffs
	leaq	-1(%rax), %rcx
	leaq	4(%r14), %rax
	movl	(%r13), %r10d
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	$8, %esi
	movl	%r12d, %edx
	movq	%rax, %r12
	movq	%rax, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	%r10
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.10:
	shll	$3, %r15d
	movq	8(%rbx), %rcx
	movl	(%rcx), %esi
	movl	%r15d, %eax
	cltd
	idivl	%esi
	movl	(%r14), %edx
	cmpl	%edx, %eax
	jl	LBB0_9
## %bb.11:
	movq	24(%r14), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_14
	jmp	LBB0_13
LBB0_8:
	movl	(%r14), %edx
	movq	8(%rbx), %rcx
	movl	(%rcx), %esi
LBB0_9:
	imull	%edx, %esi
	leal	7(%rsi), %edi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	sarl	$3, %edi
	movq	24(%r14), %rax
	movl	%edi, (%rax)
	cmpl	$0, 4(%rax)
	jne	LBB0_14
LBB0_13:
	imull	(%r12), %edx
	imull	(%rcx), %edx
	leal	7(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	movl	%ecx, 4(%rax)
LBB0_14:
	movl	24(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	20(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 12(%r14)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FMT_FLAGS_YUV,4,2              ## @FMT_FLAGS_YUV
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_fimc_lite_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_lite_try_fmt
_fimc_lite_try_fmt:                     ; @fimc_lite_try_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	ldr	x8, [x1, #24]
	ldr	w23, [x8]
	ldp	x20, x24, [x0]
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w2, [x20]
Lloh0:
	adrp	x8, _FMT_FLAGS_YUV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMT_FLAGS_YUV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_3
; %bb.2:
	add	x0, x19, #16
	mov	x1, #0
	mov	w3, #0
	bl	_fimc_lite_find_format
	mov	x20, x0
LBB0_3:
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
	str	x20, [x21]
LBB0_8:
	ldp	w0, w22, [x24, #4]
	bl	_ffs
	sub	x3, x0, #1
	add	x21, x19, #4
	ldr	w6, [x24]
	str	wzr, [sp]
	mov	x0, x19
	mov	w1, #8
	mov	x2, x22
	mov	x4, x21
	mov	w5, #0
	mov	w7, #0
	bl	_v4l_bound_align_image
	cbz	w23, LBB0_11
; %bb.9:
	lsl	w9, w23, #3
	ldr	x8, [x20, #8]
	ldr	w10, [x8]
	sdiv	w11, w9, w10
	ldr	w9, [x19]
	cmp	w11, w9
	b.lt	LBB0_12
; %bb.10:
	ldr	x10, [x19, #24]
	ldr	w11, [x10, #4]
	cbnz	w11, LBB0_14
	b	LBB0_13
LBB0_11:
	ldr	w9, [x19]
	ldr	x8, [x20, #8]
	ldr	w10, [x8]
LBB0_12:
	mul	w10, w10, w9
	add	w11, w10, #7
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w11, w10, #3
	ldr	x10, [x19, #24]
	str	w11, [x10]
	ldr	w11, [x10, #4]
	cbnz	w11, LBB0_14
LBB0_13:
	ldr	w11, [x21]
	mul	w9, w11, w9
	ldr	w8, [x8]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x10, #4]
LBB0_14:
	mov	w0, #0
	ldr	w8, [x20, #24]
	str	w8, [x19, #20]
	ldr	d0, [x20, #16]
	stur	d0, [x19, #12]
Lloh6:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FMT_FLAGS_YUV,4,2              ; @FMT_FLAGS_YUV
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_fimc_lite_try_fmt
.subsections_via_symbols
