	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_start_streaming
_smiapp_start_streaming:                ## @smiapp_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %rdi
	addq	$8, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	leaq	16(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_SMIAPP_REG_U16_CSI_DATA_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%r12), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	orl	4(%rax), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.1:
	movq	%r12, %rdi
	callq	_smiapp_pll_configure
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.2:
	movq	_SMIAPP_REG_U16_X_ADDR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	_SMIAPP_PA_PAD_SRC@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.3:
	movq	_SMIAPP_REG_U16_Y_ADDR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	4(%rax,%rcx), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.4:
	movq	_SMIAPP_REG_U16_X_ADDR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movl	8(%rax,%rcx), %eax
	addl	%eax, %edx
	decl	%edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.5:
	movq	_SMIAPP_REG_U16_Y_ADDR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	4(%rax,%rcx), %edx
	movl	12(%rax,%rcx), %eax
	addl	%eax, %edx
	decl	%edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.6:
	movq	(%r12), %rax
	movq	_SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_12
## %bb.7:
	movq	_SMIAPP_REG_U16_DIGITAL_CROP_X_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.8:
	movq	_SMIAPP_REG_U16_DIGITAL_CROP_Y_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	4(%rax,%rcx), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.9:
	movq	_SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.10:
	movq	_SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	12(%rax,%rcx), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.11:
	movq	(%r12), %rax
LBB0_12:
	movq	_SMIAPP_LIMIT_SCALING_CAPABILITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_SMIAPP_SCALING_CAPABILITY_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.13:
	movq	_SMIAPP_REG_U16_SCALING_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.14:
	movq	_SMIAPP_REG_U16_SCALE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r12), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
LBB0_15:
	movq	_SMIAPP_REG_U16_X_OUTPUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movq	_SMIAPP_PAD_SRC@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	(%rax,%rcx,8), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.16:
	movq	_SMIAPP_REG_U16_Y_OUTPUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movl	4(%rax,%rcx,8), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
	testl	%eax, %eax
	js	LBB0_24
## %bb.17:
	movq	(%r12), %rax
	movq	_SMIAPP_LIMIT_FLASH_MODE_CAPABILITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE@GOTPCREL(%rip), %rdx
	movq	_SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%esi, (%rax,%rcx,4)
	je	LBB0_21
## %bb.18:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_smiapp_setup_flash_strobe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
LBB0_21:
	movq	_pre_streamon@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_smiapp_call_quirk
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_25
LBB0_23:
	movq	_SMIAPP_REG_U8_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMIAPP_MODE_SELECT_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_smiapp_write
LBB0_24:
	movl	%eax, %ebx
LBB0_25:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_REG_U16_CSI_DATA_FORMAT,4,2 ## @SMIAPP_REG_U16_CSI_DATA_FORMAT
	.comm	_SMIAPP_REG_U16_X_ADDR_START,4,2 ## @SMIAPP_REG_U16_X_ADDR_START
	.comm	_SMIAPP_PA_PAD_SRC,8,3          ## @SMIAPP_PA_PAD_SRC
	.comm	_SMIAPP_REG_U16_Y_ADDR_START,4,2 ## @SMIAPP_REG_U16_Y_ADDR_START
	.comm	_SMIAPP_REG_U16_X_ADDR_END,4,2  ## @SMIAPP_REG_U16_X_ADDR_END
	.comm	_SMIAPP_REG_U16_Y_ADDR_END,4,2  ## @SMIAPP_REG_U16_Y_ADDR_END
	.comm	_SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY,8,3 ## @SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY
	.comm	_SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP,4,2 ## @SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_X_OFFSET,4,2 ## @SMIAPP_REG_U16_DIGITAL_CROP_X_OFFSET
	.comm	_SMIAPP_PAD_SINK,8,3            ## @SMIAPP_PAD_SINK
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_Y_OFFSET,4,2 ## @SMIAPP_REG_U16_DIGITAL_CROP_Y_OFFSET
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_WIDTH,4,2 ## @SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_WIDTH
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_HEIGHT,4,2 ## @SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_HEIGHT
	.comm	_SMIAPP_LIMIT_SCALING_CAPABILITY,8,3 ## @SMIAPP_LIMIT_SCALING_CAPABILITY
	.comm	_SMIAPP_SCALING_CAPABILITY_NONE,4,2 ## @SMIAPP_SCALING_CAPABILITY_NONE
	.comm	_SMIAPP_REG_U16_SCALING_MODE,4,2 ## @SMIAPP_REG_U16_SCALING_MODE
	.comm	_SMIAPP_REG_U16_SCALE_M,4,2     ## @SMIAPP_REG_U16_SCALE_M
	.comm	_SMIAPP_REG_U16_X_OUTPUT_SIZE,4,2 ## @SMIAPP_REG_U16_X_OUTPUT_SIZE
	.comm	_SMIAPP_PAD_SRC,8,3             ## @SMIAPP_PAD_SRC
	.comm	_SMIAPP_REG_U16_Y_OUTPUT_SIZE,4,2 ## @SMIAPP_REG_U16_Y_OUTPUT_SIZE
	.comm	_SMIAPP_LIMIT_FLASH_MODE_CAPABILITY,8,3 ## @SMIAPP_LIMIT_FLASH_MODE_CAPABILITY
	.comm	_SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE,4,2 ## @SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE
	.comm	_SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE,4,2 ## @SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE
	.comm	_pre_streamon,4,2               ## @pre_streamon
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pre_streamon quirks failed\n"

	.comm	_SMIAPP_REG_U8_MODE_SELECT,4,2  ## @SMIAPP_REG_U8_MODE_SELECT
	.comm	_SMIAPP_MODE_SELECT_STREAMING,4,2 ## @SMIAPP_MODE_SELECT_STREAMING
	.no_dead_strip	_smiapp_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_start_streaming
_smiapp_start_streaming:                ; @smiapp_start_streaming
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x8, [x0, #32]
	add	x0, x8, #8
	bl	_v4l2_get_subdevdata
	mov	x21, x0
	add	x19, x20, #16
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SMIAPP_REG_U16_CSI_DATA_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMIAPP_REG_U16_CSI_DATA_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x20, #56]
	ldp	w9, w8, [x8]
	orr	w2, w8, w9, lsl #8
	mov	x0, x20
	bl	_smiapp_write
	mov	x22, x0
	cbnz	w0, LBB0_25
; %bb.1:
	mov	x0, x20
	bl	_smiapp_pll_configure
	mov	x22, x0
	cbnz	w0, LBB0_25
; %bb.2:
Lloh3:
	adrp	x8, _SMIAPP_REG_U16_X_ADDR_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMIAPP_REG_U16_X_ADDR_START@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
Lloh6:
	adrp	x23, _SMIAPP_PA_PAD_SRC@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SMIAPP_PA_PAD_SRC@GOTPAGEOFF]
	ldr	x9, [x23]
	lsl	x9, x9, #4
	ldr	w2, [x8, x9]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.3:
Lloh8:
	adrp	x8, _SMIAPP_REG_U16_Y_ADDR_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMIAPP_REG_U16_Y_ADDR_START@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.4:
Lloh11:
	adrp	x8, _SMIAPP_REG_U16_X_ADDR_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMIAPP_REG_U16_X_ADDR_END@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8]
	ldr	w8, [x8, #8]
	add	w8, w9, w8
	sub	w2, w8, #1
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.5:
Lloh14:
	adrp	x8, _SMIAPP_REG_U16_Y_ADDR_END@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMIAPP_REG_U16_Y_ADDR_END@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8, #4]
	ldr	w8, [x8, #12]
	add	w8, w9, w8
	sub	w2, w8, #1
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.6:
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh20:
	adrp	x10, _SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.7:
Lloh23:
	adrp	x8, _SMIAPP_REG_U16_DIGITAL_CROP_X_OFFSET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SMIAPP_REG_U16_DIGITAL_CROP_X_OFFSET@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
Lloh26:
	adrp	x23, _SMIAPP_PAD_SINK@GOTPAGE
Lloh27:
	ldr	x23, [x23, _SMIAPP_PAD_SINK@GOTPAGEOFF]
	ldr	x9, [x23]
	lsl	x9, x9, #4
	ldr	w2, [x8, x9]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.8:
Lloh28:
	adrp	x8, _SMIAPP_REG_U16_DIGITAL_CROP_Y_OFFSET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SMIAPP_REG_U16_DIGITAL_CROP_Y_OFFSET@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.9:
Lloh31:
	adrp	x8, _SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_WIDTH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_WIDTH@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.10:
Lloh34:
	adrp	x8, _SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_HEIGHT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_HEIGHT@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	ldr	w2, [x8, #12]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.11:
	ldr	x8, [x20]
LBB0_12:
Lloh37:
	adrp	x9, _SMIAPP_LIMIT_SCALING_CAPABILITY@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SMIAPP_LIMIT_SCALING_CAPABILITY@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh40:
	adrp	x9, _SMIAPP_SCALING_CAPABILITY_NONE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SMIAPP_SCALING_CAPABILITY_NONE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.13:
Lloh43:
	adrp	x8, _SMIAPP_REG_U16_SCALING_MODE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SMIAPP_REG_U16_SCALING_MODE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.14:
Lloh46:
	adrp	x8, _SMIAPP_REG_U16_SCALE_M@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SMIAPP_REG_U16_SCALE_M@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
LBB0_15:
Lloh49:
	adrp	x8, _SMIAPP_REG_U16_X_OUTPUT_SIZE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SMIAPP_REG_U16_X_OUTPUT_SIZE@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
Lloh52:
	adrp	x23, _SMIAPP_PAD_SRC@GOTPAGE
Lloh53:
	ldr	x23, [x23, _SMIAPP_PAD_SRC@GOTPAGEOFF]
	ldr	x9, [x23]
	lsl	x9, x9, #3
	ldr	w2, [x8, x9]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.16:
Lloh54:
	adrp	x8, _SMIAPP_REG_U16_Y_OUTPUT_SIZE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SMIAPP_REG_U16_Y_OUTPUT_SIZE@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #3
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_smiapp_write
	tbnz	w0, #31, LBB0_24
; %bb.17:
Lloh57:
	adrp	x8, _SMIAPP_LIMIT_FLASH_MODE_CAPABILITY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SMIAPP_LIMIT_FLASH_MODE_CAPABILITY@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh59:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh60:
	adrp	x9, _SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
Lloh63:
	adrp	x10, _SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE@GOTPAGE
Lloh64:
	ldr	x10, [x10, _SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_21
; %bb.18:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.19:
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_smiapp_setup_flash_strobe
	mov	x22, x0
	cbnz	w0, LBB0_25
LBB0_21:
Lloh66:
	adrp	x8, _pre_streamon@GOTPAGE
Lloh67:
	ldr	x8, [x8, _pre_streamon@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_smiapp_call_quirk
	cbz	w0, LBB0_23
; %bb.22:
	mov	x22, x0
Lloh69:
	adrp	x1, l_.str@PAGE
Lloh70:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_25
LBB0_23:
Lloh71:
	adrp	x8, _SMIAPP_REG_U8_MODE_SELECT@GOTPAGE
Lloh72:
	ldr	x8, [x8, _SMIAPP_REG_U8_MODE_SELECT@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
Lloh74:
	adrp	x8, _SMIAPP_MODE_SELECT_STREAMING@GOTPAGE
Lloh75:
	ldr	x8, [x8, _SMIAPP_MODE_SELECT_STREAMING@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_smiapp_write
LBB0_24:
	mov	x22, x0
LBB0_25:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_REG_U16_CSI_DATA_FORMAT,4,2 ; @SMIAPP_REG_U16_CSI_DATA_FORMAT
	.comm	_SMIAPP_REG_U16_X_ADDR_START,4,2 ; @SMIAPP_REG_U16_X_ADDR_START
	.comm	_SMIAPP_PA_PAD_SRC,8,3          ; @SMIAPP_PA_PAD_SRC
	.comm	_SMIAPP_REG_U16_Y_ADDR_START,4,2 ; @SMIAPP_REG_U16_Y_ADDR_START
	.comm	_SMIAPP_REG_U16_X_ADDR_END,4,2  ; @SMIAPP_REG_U16_X_ADDR_END
	.comm	_SMIAPP_REG_U16_Y_ADDR_END,4,2  ; @SMIAPP_REG_U16_Y_ADDR_END
	.comm	_SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY,8,3 ; @SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY
	.comm	_SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP,4,2 ; @SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_X_OFFSET,4,2 ; @SMIAPP_REG_U16_DIGITAL_CROP_X_OFFSET
	.comm	_SMIAPP_PAD_SINK,8,3            ; @SMIAPP_PAD_SINK
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_Y_OFFSET,4,2 ; @SMIAPP_REG_U16_DIGITAL_CROP_Y_OFFSET
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_WIDTH,4,2 ; @SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_WIDTH
	.comm	_SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_HEIGHT,4,2 ; @SMIAPP_REG_U16_DIGITAL_CROP_IMAGE_HEIGHT
	.comm	_SMIAPP_LIMIT_SCALING_CAPABILITY,8,3 ; @SMIAPP_LIMIT_SCALING_CAPABILITY
	.comm	_SMIAPP_SCALING_CAPABILITY_NONE,4,2 ; @SMIAPP_SCALING_CAPABILITY_NONE
	.comm	_SMIAPP_REG_U16_SCALING_MODE,4,2 ; @SMIAPP_REG_U16_SCALING_MODE
	.comm	_SMIAPP_REG_U16_SCALE_M,4,2     ; @SMIAPP_REG_U16_SCALE_M
	.comm	_SMIAPP_REG_U16_X_OUTPUT_SIZE,4,2 ; @SMIAPP_REG_U16_X_OUTPUT_SIZE
	.comm	_SMIAPP_PAD_SRC,8,3             ; @SMIAPP_PAD_SRC
	.comm	_SMIAPP_REG_U16_Y_OUTPUT_SIZE,4,2 ; @SMIAPP_REG_U16_Y_OUTPUT_SIZE
	.comm	_SMIAPP_LIMIT_FLASH_MODE_CAPABILITY,8,3 ; @SMIAPP_LIMIT_FLASH_MODE_CAPABILITY
	.comm	_SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE,4,2 ; @SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE
	.comm	_SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE,4,2 ; @SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE
	.comm	_pre_streamon,4,2               ; @pre_streamon
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pre_streamon quirks failed\n"

	.comm	_SMIAPP_REG_U8_MODE_SELECT,4,2  ; @SMIAPP_REG_U8_MODE_SELECT
	.comm	_SMIAPP_MODE_SELECT_STREAMING,4,2 ; @SMIAPP_MODE_SELECT_STREAMING
	.no_dead_strip	_smiapp_start_streaming
.subsections_via_symbols
