	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flite_hw_set_camera_bus        ## -- Begin function flite_hw_set_camera_bus
	.p2align	4, 0x90
_flite_hw_set_camera_bus:               ## @flite_hw_set_camera_bus
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_FLITE_REG_CIGCTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	8(%r14), %rcx
	movq	_FIMC_BUS_TYPE_MIPI_CSI2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_FLITE_REG_CIGCTRL_SELCAM_MIPI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	jmp	LBB0_3
LBB0_1:
	movl	(%r14), %edi
	movq	_FLITE_REG_CIGCTRL_SELCAM_MIPI@GOTPCREL(%rip), %rcx
	movq	_FLITE_REG_CIGCTRL_INVPOLPCLK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	movq	_FLITE_REG_CIGCTRL_INVPOLVSYNC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_FLITE_REG_CIGCTRL_INVPOLHREF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movl	%r8d, %esi
	orl	%r9d, %esi
	orl	%ecx, %esi
	notl	%esi
	andl	%esi, %eax
	movq	_V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	cmovnel	%edx, %ecx
	orl	%eax, %ecx
	movq	_V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmovnel	%r8d, %eax
	movq	_V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	andl	(%rdx), %edi
	cmovnel	%r9d, %edi
	orl	%eax, %edi
	orl	%ecx, %edi
LBB0_3:
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flite_hw_set_camera_port       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLITE_REG_CIGCTRL,8,3          ## @FLITE_REG_CIGCTRL
	.comm	_FIMC_BUS_TYPE_MIPI_CSI2,8,3    ## @FIMC_BUS_TYPE_MIPI_CSI2
	.comm	_FLITE_REG_CIGCTRL_SELCAM_MIPI,4,2 ## @FLITE_REG_CIGCTRL_SELCAM_MIPI
	.comm	_FLITE_REG_CIGCTRL_INVPOLPCLK,4,2 ## @FLITE_REG_CIGCTRL_INVPOLPCLK
	.comm	_FLITE_REG_CIGCTRL_INVPOLVSYNC,4,2 ## @FLITE_REG_CIGCTRL_INVPOLVSYNC
	.comm	_FLITE_REG_CIGCTRL_INVPOLHREF,4,2 ## @FLITE_REG_CIGCTRL_INVPOLHREF
	.comm	_V4L2_MBUS_PCLK_SAMPLE_FALLING,4,2 ## @V4L2_MBUS_PCLK_SAMPLE_FALLING
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ## @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,4,2 ## @V4L2_MBUS_HSYNC_ACTIVE_LOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flite_hw_set_camera_bus        ; -- Begin function flite_hw_set_camera_bus
	.p2align	2
_flite_hw_set_camera_bus:               ; @flite_hw_set_camera_bus
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _FLITE_REG_CIGCTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FLITE_REG_CIGCTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _FIMC_BUS_TYPE_MIPI_CSI2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FIMC_BUS_TYPE_MIPI_CSI2@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _FLITE_REG_CIGCTRL_SELCAM_MIPI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLITE_REG_CIGCTRL_SELCAM_MIPI@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _FLITE_REG_CIGCTRL_SELCAM_MIPI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FLITE_REG_CIGCTRL_SELCAM_MIPI@GOTPAGEOFF]
Lloh10:
	adrp	x10, _FLITE_REG_CIGCTRL_INVPOLPCLK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _FLITE_REG_CIGCTRL_INVPOLPCLK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh14:
	adrp	x11, _FLITE_REG_CIGCTRL_INVPOLVSYNC@GOTPAGE
Lloh15:
	ldr	x11, [x11, _FLITE_REG_CIGCTRL_INVPOLVSYNC@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w9, w9, w11
Lloh17:
	adrp	x12, _FLITE_REG_CIGCTRL_INVPOLHREF@GOTPAGE
Lloh18:
	ldr	x12, [x12, _FLITE_REG_CIGCTRL_INVPOLHREF@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	orr	w9, w9, w12
	bic	w9, w0, w9
Lloh20:
	adrp	x13, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh21:
	ldr	x13, [x13, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
	tst	w13, w8
	csel	w10, wzr, w10, eq
	orr	w9, w10, w9
Lloh23:
	adrp	x10, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh24:
	ldr	x10, [x10, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh26:
	adrp	x10, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh27:
	ldr	x10, [x10, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w8
	csel	w8, wzr, w12, eq
	orr	w0, w9, w8
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	w1, [x20, #16]
	mov	x0, x19
	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	_flite_hw_set_camera_port
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FLITE_REG_CIGCTRL,8,3          ; @FLITE_REG_CIGCTRL
	.comm	_FIMC_BUS_TYPE_MIPI_CSI2,8,3    ; @FIMC_BUS_TYPE_MIPI_CSI2
	.comm	_FLITE_REG_CIGCTRL_SELCAM_MIPI,4,2 ; @FLITE_REG_CIGCTRL_SELCAM_MIPI
	.comm	_FLITE_REG_CIGCTRL_INVPOLPCLK,4,2 ; @FLITE_REG_CIGCTRL_INVPOLPCLK
	.comm	_FLITE_REG_CIGCTRL_INVPOLVSYNC,4,2 ; @FLITE_REG_CIGCTRL_INVPOLVSYNC
	.comm	_FLITE_REG_CIGCTRL_INVPOLHREF,4,2 ; @FLITE_REG_CIGCTRL_INVPOLHREF
	.comm	_V4L2_MBUS_PCLK_SAMPLE_FALLING,4,2 ; @V4L2_MBUS_PCLK_SAMPLE_FALLING
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ; @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,4,2 ; @V4L2_MBUS_HSYNC_ACTIVE_LOW
.subsections_via_symbols
