	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mipid02_stream_enable
_mipid02_stream_enable:                 ## @mipid02_stream_enable
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	40(%rdi), %r14
	cmpl	$0, 36(%rdi)
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_mipid02_configure_from_rx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	callq	_mipid02_configure_from_tx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:
	movq	%r15, %rdi
	callq	_mipid02_configure_from_code
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.6:
	movq	_MIPID02_CLK_LANE_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:
	movq	_MIPID02_CLK_LANE_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLK_MIPI_CSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.8:
	movq	_MIPID02_DATA_LANE0_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	movq	_MIPID02_DATA_LANE0_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DATA_MIPI_CSI@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.10:
	movq	_MIPID02_DATA_LANE1_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.11:
	movq	_MIPID02_DATA_LANE1_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.12:
	movq	_MIPID02_MODE_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MODE_NO_BYPASS@GOTPCREL(%rip), %rax
	movl	12(%r15), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.13:
	movq	_MIPID02_MODE_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.14:
	movq	_MIPID02_DATA_ID_RREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.15:
	movq	_MIPID02_DATA_SELECTION_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.16:
	movq	_MIPID02_PIX_WIDTH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.17:
	movq	_MIPID02_PIX_WIDTH_CTRL_EMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %edx
	movq	%r15, %rdi
	callq	_mipid02_write_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	%r15, %rdi
	callq	_mipid02_stream_disable
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIPID02_CLK_LANE_REG1,4,2      ## @MIPID02_CLK_LANE_REG1
	.comm	_MIPID02_CLK_LANE_REG3,4,2      ## @MIPID02_CLK_LANE_REG3
	.comm	_CLK_MIPI_CSI,4,2               ## @CLK_MIPI_CSI
	.comm	_MIPID02_DATA_LANE0_REG1,4,2    ## @MIPID02_DATA_LANE0_REG1
	.comm	_MIPID02_DATA_LANE0_REG2,4,2    ## @MIPID02_DATA_LANE0_REG2
	.comm	_DATA_MIPI_CSI,4,2              ## @DATA_MIPI_CSI
	.comm	_MIPID02_DATA_LANE1_REG1,4,2    ## @MIPID02_DATA_LANE1_REG1
	.comm	_MIPID02_DATA_LANE1_REG2,4,2    ## @MIPID02_DATA_LANE1_REG2
	.comm	_MIPID02_MODE_REG1,4,2          ## @MIPID02_MODE_REG1
	.comm	_MODE_NO_BYPASS,4,2             ## @MODE_NO_BYPASS
	.comm	_MIPID02_MODE_REG2,4,2          ## @MIPID02_MODE_REG2
	.comm	_MIPID02_DATA_ID_RREG,4,2       ## @MIPID02_DATA_ID_RREG
	.comm	_MIPID02_DATA_SELECTION_CTRL,4,2 ## @MIPID02_DATA_SELECTION_CTRL
	.comm	_MIPID02_PIX_WIDTH_CTRL,4,2     ## @MIPID02_PIX_WIDTH_CTRL
	.comm	_MIPID02_PIX_WIDTH_CTRL_EMB,4,2 ## @MIPID02_PIX_WIDTH_CTRL_EMB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to stream on %d"

	.no_dead_strip	_mipid02_stream_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mipid02_stream_enable
_mipid02_stream_enable:                 ; @mipid02_stream_enable
	.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
	ldr	x20, [x0, #40]
	ldr	w8, [x0, #36]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	mov	x0, x19
	bl	_mipid02_configure_from_rx
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.2:
	mov	x0, x19
	bl	_mipid02_configure_from_tx
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.3:
	mov	x0, x19
	bl	_mipid02_configure_from_code
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.4:
Lloh0:
	adrp	x8, _MIPID02_CLK_LANE_REG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPID02_CLK_LANE_REG1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.5:
Lloh3:
	adrp	x8, _MIPID02_CLK_LANE_REG3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPID02_CLK_LANE_REG3@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CLK_MIPI_CSI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLK_MIPI_CSI@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.6:
Lloh9:
	adrp	x8, _MIPID02_DATA_LANE0_REG1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MIPID02_DATA_LANE0_REG1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.7:
Lloh12:
	adrp	x8, _MIPID02_DATA_LANE0_REG2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIPID02_DATA_LANE0_REG2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x22, _DATA_MIPI_CSI@GOTPAGE
Lloh16:
	ldr	x22, [x22, _DATA_MIPI_CSI@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.8:
Lloh17:
	adrp	x8, _MIPID02_DATA_LANE1_REG1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MIPID02_DATA_LANE1_REG1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.9:
Lloh20:
	adrp	x8, _MIPID02_DATA_LANE1_REG2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MIPID02_DATA_LANE1_REG2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.10:
Lloh23:
	adrp	x8, _MIPID02_MODE_REG1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MIPID02_MODE_REG1@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _MODE_NO_BYPASS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MODE_NO_BYPASS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.11:
Lloh29:
	adrp	x8, _MIPID02_MODE_REG2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MIPID02_MODE_REG2@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.12:
Lloh32:
	adrp	x8, _MIPID02_DATA_ID_RREG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MIPID02_DATA_ID_RREG@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x19, #20]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.13:
Lloh35:
	adrp	x8, _MIPID02_DATA_SELECTION_CTRL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MIPID02_DATA_SELECTION_CTRL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.14:
Lloh38:
	adrp	x8, _MIPID02_PIX_WIDTH_CTRL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MIPID02_PIX_WIDTH_CTRL@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	w2, [x19, #28]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.15:
Lloh41:
	adrp	x8, _MIPID02_PIX_WIDTH_CTRL_EMB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MIPID02_PIX_WIDTH_CTRL_EMB@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	w2, [x19, #32]
	mov	x0, x19
	bl	_mipid02_write_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
	b	LBB0_18
LBB0_16:
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_17:
Lloh47:
	adrp	x1, l_.str@PAGE
Lloh48:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	mov	x0, x19
	bl	_mipid02_stream_disable
LBB0_18:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIPID02_CLK_LANE_REG1,4,2      ; @MIPID02_CLK_LANE_REG1
	.comm	_MIPID02_CLK_LANE_REG3,4,2      ; @MIPID02_CLK_LANE_REG3
	.comm	_CLK_MIPI_CSI,4,2               ; @CLK_MIPI_CSI
	.comm	_MIPID02_DATA_LANE0_REG1,4,2    ; @MIPID02_DATA_LANE0_REG1
	.comm	_MIPID02_DATA_LANE0_REG2,4,2    ; @MIPID02_DATA_LANE0_REG2
	.comm	_DATA_MIPI_CSI,4,2              ; @DATA_MIPI_CSI
	.comm	_MIPID02_DATA_LANE1_REG1,4,2    ; @MIPID02_DATA_LANE1_REG1
	.comm	_MIPID02_DATA_LANE1_REG2,4,2    ; @MIPID02_DATA_LANE1_REG2
	.comm	_MIPID02_MODE_REG1,4,2          ; @MIPID02_MODE_REG1
	.comm	_MODE_NO_BYPASS,4,2             ; @MODE_NO_BYPASS
	.comm	_MIPID02_MODE_REG2,4,2          ; @MIPID02_MODE_REG2
	.comm	_MIPID02_DATA_ID_RREG,4,2       ; @MIPID02_DATA_ID_RREG
	.comm	_MIPID02_DATA_SELECTION_CTRL,4,2 ; @MIPID02_DATA_SELECTION_CTRL
	.comm	_MIPID02_PIX_WIDTH_CTRL,4,2     ; @MIPID02_PIX_WIDTH_CTRL
	.comm	_MIPID02_PIX_WIDTH_CTRL_EMB,4,2 ; @MIPID02_PIX_WIDTH_CTRL_EMB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to stream on %d"

	.no_dead_strip	_mipid02_stream_enable
.subsections_via_symbols
