	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx355_start_streaming
_imx355_start_streaming:                ## @imx355_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	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	_imx355_global_setting@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_imx355_write_regs
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	8(%r14), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_imx355_write_regs
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IMX355_REG_DPGA_USE_GLOBAL_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_imx355_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	callq	___v4l2_ctrl_handler_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	_IMX355_REG_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IMX355_MODE_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_imx355_write_reg               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_imx355_global_setting,8,2      ## @imx355_global_setting
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set global settings"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set mode"

	.comm	_IMX355_REG_DPGA_USE_GLOBAL_GAIN,4,2 ## @IMX355_REG_DPGA_USE_GLOBAL_GAIN
	.comm	_IMX355_REG_MODE_SELECT,4,2     ## @IMX355_REG_MODE_SELECT
	.comm	_IMX355_MODE_STREAMING,4,2      ## @IMX355_MODE_STREAMING
	.no_dead_strip	_imx355_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx355_start_streaming
_imx355_start_streaming:                ; @imx355_start_streaming
	.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	x19, x0
	bl	_v4l2_get_subdevdata
	mov	x21, x0
Lloh0:
	adrp	x8, _imx355_global_setting@GOTPAGE
Lloh1:
	ldr	x8, [x8, _imx355_global_setting@GOTPAGEOFF]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_imx355_write_regs
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_imx355_write_regs
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x21
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
Lloh6:
	adrp	x8, _IMX355_REG_DPGA_USE_GLOBAL_GAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMX355_REG_DPGA_USE_GLOBAL_GAIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	bl	_imx355_write_reg
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	w0, [x19]
	bl	___v4l2_ctrl_handler_setup
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.8:
Lloh9:
	adrp	x8, _IMX355_REG_MODE_SELECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMX355_REG_MODE_SELECT@GOTPAGEOFF]
Lloh11:
	adrp	x9, _IMX355_MODE_STREAMING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IMX355_MODE_STREAMING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w3, [x9]
	mov	x0, x19
	mov	w2, #1
	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
	b	_imx355_write_reg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_imx355_global_setting,8,2      ; @imx355_global_setting
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set global settings"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set mode"

	.comm	_IMX355_REG_DPGA_USE_GLOBAL_GAIN,4,2 ; @IMX355_REG_DPGA_USE_GLOBAL_GAIN
	.comm	_IMX355_REG_MODE_SELECT,4,2     ; @IMX355_REG_MODE_SELECT
	.comm	_IMX355_MODE_STREAMING,4,2      ; @IMX355_MODE_STREAMING
	.no_dead_strip	_imx355_start_streaming
.subsections_via_symbols
