	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx214_start_streaming
_imx214_start_streaming:                ## @imx214_start_streaming
	.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	%rdi, %r14
	callq	_mutex_lock
	movq	_mode_table_common@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_imx214_write_table
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_imx214_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	_width@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_height@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	16(%r14), %r9d
	movl	20(%r14), %r8d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_v4l2_find_nearest_size
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_imx214_write_table
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	leaq	12(%r14), %rdi
	callq	___v4l2_ctrl_handler_setup
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	8(%r14), %edi
	movl	$256, %esi                      ## imm = 0x100
	movl	$1, %edx
	callq	_regmap_write
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_mode_table_common,4,2          ## @mode_table_common
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not sent common table %d\n"

	.comm	_imx214_modes,4,2               ## @imx214_modes
	.comm	_width,4,2                      ## @width
	.comm	_height,4,2                     ## @height
L_.str.1:                               ## @.str.1
	.asciz	"could not sent mode table %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not sync v4l2 controls\n"

L_.str.3:                               ## @.str.3
	.asciz	"could not sent start table %d\n"

	.no_dead_strip	_imx214_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx214_start_streaming
_imx214_start_streaming:                ; @imx214_start_streaming
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _mode_table_common@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mode_table_common@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_imx214_write_table
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _imx214_modes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _imx214_modes@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
Lloh6:
	adrp	x8, _width@GOTPAGE
Lloh7:
	ldr	x8, [x8, _width@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _height@GOTPAGE
Lloh10:
	ldr	x8, [x8, _height@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldp	w5, w4, [x19, #16]
	mov	x0, x20
	bl	_v4l2_find_nearest_size
	ldr	w1, [x0]
	mov	x0, x19
	bl	_imx214_write_table
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	x0, x19, #12
	bl	___v4l2_ctrl_handler_setup
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x19, #8]
	mov	w1, #256
	mov	w2, #1
	bl	_regmap_write
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	w20, #0
	b	LBB0_10
LBB0_5:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_6:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_8:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_mode_table_common,4,2          ; @mode_table_common
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not sent common table %d\n"

	.comm	_imx214_modes,4,2               ; @imx214_modes
	.comm	_width,4,2                      ; @width
	.comm	_height,4,2                     ; @height
l_.str.1:                               ; @.str.1
	.asciz	"could not sent mode table %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not sync v4l2 controls\n"

l_.str.3:                               ; @.str.3
	.asciz	"could not sent start table %d\n"

	.no_dead_strip	_imx214_start_streaming
.subsections_via_symbols
