	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9t031_s_fmt
_mt9t031_s_fmt:                         ## @mt9t031_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_mt9t031
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-36(%rbp), %rdi
	movl	12(%rbx), %esi
	movq	_MT9T031_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mt9t031_skip
	movl	%eax, %r15d
	movl	8(%rbx), %esi
	movq	_MT9T031_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_mt9t031_skip
	movq	_V4L2_MBUS_FMT_SBGGR10_1X10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_mt9t031_set_params
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9T031_MAX_WIDTH,4,2          ## @MT9T031_MAX_WIDTH
	.comm	_MT9T031_MAX_HEIGHT,4,2         ## @MT9T031_MAX_HEIGHT
	.comm	_V4L2_MBUS_FMT_SBGGR10_1X10,4,2 ## @V4L2_MBUS_FMT_SBGGR10_1X10
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_mt9t031_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9t031_s_fmt
_mt9t031_s_fmt:                         ; @mt9t031_s_fmt
	.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, x1
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	bl	_to_mt9t031
	ldr	x8, [x0]
	str	x8, [sp, #8]
	add	x8, sp, #8
	orr	x0, x8, #0x4
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x8, _MT9T031_MAX_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9T031_MAX_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_mt9t031_skip
	mov	x21, x0
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x8, _MT9T031_MAX_HEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT9T031_MAX_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_mt9t031_skip
	mov	x3, x0
Lloh6:
	adrp	x8, _V4L2_MBUS_FMT_SBGGR10_1X10@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_MBUS_FMT_SBGGR10_1X10@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_mt9t031_set_params
	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	_MT9T031_MAX_WIDTH,4,2          ; @MT9T031_MAX_WIDTH
	.comm	_MT9T031_MAX_HEIGHT,4,2         ; @MT9T031_MAX_HEIGHT
	.comm	_V4L2_MBUS_FMT_SBGGR10_1X10,4,2 ; @V4L2_MBUS_FMT_SBGGR10_1X10
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_mt9t031_s_fmt
.subsections_via_symbols
