	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5695_set_fmt
_ov5695_set_fmt:                        ## @ov5695_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_to_ov5695
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_ov5695_find_best_fit
	movq	%rax, %r15
	movq	_MEDIA_BUS_FMT_SBGGR10_1X10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	16(%r15), %rax
	movq	%rax, 24(%rbx)
	movq	(%r15), %rcx
	movq	%rcx, 16(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	(%rbx), %rcx
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	%r15, 16(%r14)
	movq	24(%r15), %rdx
	subq	%rax, %rdx
	movl	8(%r14), %edi
	movq	%rdx, %rsi
	movl	$1, %ecx
	movq	%rdx, %r8
	callq	___v4l2_ctrl_modify_range
	movq	(%r15), %rax
	movq	8(%r15), %rsi
	subq	%rax, %rsi
	movl	4(%r14), %edi
	movq	_OV5695_VTS_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rax, %rdx
	movl	$1, %ecx
	movq	%rsi, %r8
	callq	___v4l2_ctrl_modify_range
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_BUS_FMT_SBGGR10_1X10,4,2 ## @MEDIA_BUS_FMT_SBGGR10_1X10
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_OV5695_VTS_MAX,8,3             ## @OV5695_VTS_MAX
	.no_dead_strip	_ov5695_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5695_set_fmt
_ov5695_set_fmt:                        ; @ov5695_set_fmt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	bl	_to_ov5695
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x21
	bl	_ov5695_find_best_fit
Lloh0:
	adrp	x8, _MEDIA_BUS_FMT_SBGGR10_1X10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_BUS_FMT_SBGGR10_1X10@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	stp	x9, x8, [x21, #16]
Lloh3:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x21, #8]
	ldr	x9, [x21]
Lloh6:
	adrp	x10, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #16]
	ldr	x9, [x0, #24]
	sub	x1, x9, x8
	ldr	w0, [x19, #8]
	mov	x2, x1
	mov	w3, #1
	mov	x4, x1
	bl	___v4l2_ctrl_modify_range
	ldp	x9, x8, [x20]
	sub	x1, x8, x9
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _OV5695_VTS_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OV5695_VTS_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x2, x8, x9
	mov	w3, #1
	mov	x4, x1
	bl	___v4l2_ctrl_modify_range
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_BUS_FMT_SBGGR10_1X10,4,2 ; @MEDIA_BUS_FMT_SBGGR10_1X10
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_OV5695_VTS_MAX,8,3             ; @OV5695_VTS_MAX
	.no_dead_strip	_ov5695_set_fmt
.subsections_via_symbols
