	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m001_s_fmt
_mt9m001_s_fmt:                         ## @mt9m001_s_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %rdi
	callq	_to_mt9m001
	movq	%rax, %r12
	movsd	4(%r15), %xmm0                  ## xmm0 = mem[0],zero
	movsd	16(%rax), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movaps	%xmm0, -64(%rbp)
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mt9m001_set_selection
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	12(%r12), %ecx
	movl	%ecx, 8(%r15)
	movl	8(%r12), %ecx
	movl	%ecx, 4(%r15)
	movq	%r14, (%r12)
	movl	(%r14), %ecx
	movl	%ecx, (%r15)
LBB0_2:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SEL_TGT_CROP,4,2          ## @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_mt9m001_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m001_s_fmt
_mt9m001_s_fmt:                         ; @mt9m001_s_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_v4l2_get_subdevdata
	bl	_to_mt9m001
	mov	x21, x0
	ldur	d0, [x19, #4]
	ldr	d1, [x0, #16]
	mov.d	v0[1], v1[0]
	str	q0, [sp]
Lloh0:
	adrp	x8, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	mov	x2, sp
	mov	x0, x22
	mov	x1, #0
	bl	_mt9m001_set_selection
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	d0, [x21, #8]
	stur	d0, [x19, #4]
	str	x20, [x21]
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_2:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SEL_TGT_CROP,4,2          ; @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_mt9m001_s_fmt
.subsections_via_symbols
