	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcam_vidioc_try_fmt_vid_cap
_mcam_vidioc_try_fmt_vid_cap:           ## @mcam_vidioc_try_fmt_vid_cap
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movl	$0, -40(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%rbx), %edi
	callq	_mcam_find_format
	movq	%rax, %r15
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	8(%r15), %edx
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_fill_mbus_format
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r12, %r8
	callq	_sensor_call
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_v4l2_fill_pix_format
	movl	4(%r15), %ecx
	imull	8(%rbx), %ecx
	movl	%ecx, 4(%rbx)
	movl	(%r15), %edx
	andl	$-2, %edx
	movl	16(%rbx), %eax
	cmpl	$128, %edx
	jne	LBB0_2
## %bb.1:
	imull	%eax, %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	jmp	LBB0_3
LBB0_2:
	imull	%ecx, %eax
LBB0_3:
	movl	%eax, 12(%rbx)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_mcam_vidioc_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcam_vidioc_try_fmt_vid_cap
_mcam_vidioc_try_fmt_vid_cap:           ; @mcam_vidioc_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp]
	ldr	w0, [x19]
	bl	_mcam_find_format
	mov	x21, x0
	ldr	w8, [x0]
	str	w8, [x19]
	ldr	w2, [x0, #8]
	mov	x0, sp
	mov	x1, x19
	bl	_v4l2_fill_mbus_format
Lloh3:
	adrp	x8, _pad@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _set_fmt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	bl	_sensor_call
	mov	x20, x0
	mov	x1, sp
	mov	x0, x19
	bl	_v4l2_fill_pix_format
	ldr	w8, [x19, #8]
	ldp	w10, w9, [x21]
	mul	w8, w9, w8
	str	w8, [x19, #4]
	and	w9, w10, #0xfffffffe
	ldr	w10, [x19, #16]
	mul	w11, w10, w8
	mul	w8, w8, w10
	add	w8, w8, w8, lsl #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w9, #128
	csel	w8, w11, w8, ne
	str	w8, [x19, #12]
Lloh9:
	adrp	x8, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_mcam_vidioc_try_fmt_vid_cap
.subsections_via_symbols
