	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9t112_s_stream
_mt9t112_s_stream:                      ## @mt9t112_s_stream
	.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
	movl	%esi, %ebx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_to_mt9t112
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_MT9T112_FLAG_PCLK_RISING_EDGE@GOTPCREL(%rip), %rax
	movq	24(%r14), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	andl	(%rax), %ecx
	setne	%bl
	movq	%r15, %rdi
	callq	_mt9t112_init_camera
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ECHECKER
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	$15392, %edx                    ## imm = 0x3C20
	movl	%ebx, %ecx
	callq	_mt9t112_reg_write
	movl	$5, %edi
	callq	_mdelay
	movl	$1, (%r14)
LBB0_4:
	movl	$26, %edi
	movl	$7, %esi
	callq	_VAR
	movq	16(%r14), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_mt9t112_mcu_write
	movl	$26, %edi
	movl	$9, %esi
	callq	_VAR
	movq	16(%r14), %rcx
	movl	4(%rcx), %ecx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_mt9t112_mcu_write
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_VAR8
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	$6, %ecx
	callq	_mt9t112_mcu_write
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	%r15, %rdi
	callq	_mt9t112_set_a_frame_size
	movq	%r15, %rdi
	callq	_mt9t112_auto_focus_trigger
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ECHECKER
	movq	16(%r14), %rax
	movl	8(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EXT_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CLOCK_INFO
	jmp	LBB0_5
LBB0_1:
	movq	_VGA_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VGA_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mt9t112_set_a_frame_size
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_WIDTH,4,2                  ## @VGA_WIDTH
	.comm	_VGA_HEIGHT,4,2                 ## @VGA_HEIGHT
	.comm	_MT9T112_FLAG_PCLK_RISING_EDGE,4,2 ## @MT9T112_FLAG_PCLK_RISING_EDGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format : %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"size   : %d x %d\n"

	.comm	_EXT_CLOCK,4,2                  ## @EXT_CLOCK
	.no_dead_strip	_mt9t112_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9t112_s_stream
_mt9t112_s_stream:                      ; @mt9t112_s_stream
	.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	x21, x1
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	bl	_to_mt9t112
	cbz	w21, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _MT9T112_FLAG_PCLK_RISING_EDGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9T112_FLAG_PCLK_RISING_EDGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
	tst	w9, w8
	cset	w21, ne
	mov	x0, x19
	bl	_mt9t112_init_camera
	mov	x1, x0
	mov	w0, #0
	bl	_ECHECKER
	mov	w0, #0
	mov	x1, x19
	mov	w2, #15392
	mov	x3, x21
	bl	_mt9t112_reg_write
	mov	w0, #5
	bl	_mdelay
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	mov	w0, #26
	mov	w1, #7
	bl	_VAR
	mov	x2, x0
	ldr	x8, [x20, #16]
	ldr	w3, [x8]
	mov	w0, #0
	mov	x1, x19
	bl	_mt9t112_mcu_write
	mov	w0, #26
	mov	w1, #9
	bl	_VAR
	mov	x2, x0
	ldr	x8, [x20, #16]
	ldr	w3, [x8, #4]
	mov	w0, #0
	mov	x1, x19
	bl	_mt9t112_mcu_write
	mov	w0, #1
	mov	w1, #0
	bl	_VAR8
	mov	x2, x0
	mov	w0, #0
	mov	x1, x19
	mov	w3, #6
	bl	_mt9t112_mcu_write
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	bl	_mt9t112_set_a_frame_size
	mov	x0, x19
	bl	_mt9t112_auto_focus_trigger
	mov	x1, x0
	mov	w0, #0
	bl	_ECHECKER
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	w8, w2, [x20, #4]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh7:
	adrp	x8, _EXT_CLOCK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXT_CLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CLOCK_INFO
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _VGA_WIDTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VGA_WIDTH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _VGA_HEIGHT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VGA_HEIGHT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt9t112_set_a_frame_size
LBB0_5:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_WIDTH,4,2                  ; @VGA_WIDTH
	.comm	_VGA_HEIGHT,4,2                 ; @VGA_HEIGHT
	.comm	_MT9T112_FLAG_PCLK_RISING_EDGE,4,2 ; @MT9T112_FLAG_PCLK_RISING_EDGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format : %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"size   : %d x %d\n"

	.comm	_EXT_CLOCK,4,2                  ; @EXT_CLOCK
	.no_dead_strip	_mt9t112_s_stream
.subsections_via_symbols
