	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_camera_polarity    ## -- Begin function fimc_hw_set_camera_polarity
	.p2align	4, 0x90
_fimc_hw_set_camera_polarity:           ## @fimc_hw_set_camera_polarity
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	_FIMC_REG_CIGCTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_FIMC_REG_CIGCTRL_INVPOLPCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_FIMC_REG_CIGCTRL_INVPOLVSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r9d, %edi
	orl	%edx, %edi
	movq	_FIMC_REG_CIGCTRL_INVPOLHREF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_FIMC_REG_CIGCTRL_INVPOLHSYNC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%ebx, %ecx
	orl	%esi, %ecx
	orl	%edi, %ecx
	movq	_FIMC_REG_CIGCTRL_INVPOLFIELD@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	orl	%r8d, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r12), %edi
	movq	_V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmovnel	%edx, %eax
	movq	_V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%edi, %edx
	cmovnel	%r9d, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movq	_V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmovel	%eax, %ebx
	cmovnel	%esi, %eax
	orl	%ebx, %eax
	movq	_V4L2_MBUS_FIELD_EVEN_LOW@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	cmovnel	%r8d, %edi
	orl	%eax, %edi
	orl	%edx, %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_writel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_REG_CIGCTRL,8,3           ## @FIMC_REG_CIGCTRL
	.comm	_FIMC_REG_CIGCTRL_INVPOLPCLK,4,2 ## @FIMC_REG_CIGCTRL_INVPOLPCLK
	.comm	_FIMC_REG_CIGCTRL_INVPOLVSYNC,4,2 ## @FIMC_REG_CIGCTRL_INVPOLVSYNC
	.comm	_FIMC_REG_CIGCTRL_INVPOLHREF,4,2 ## @FIMC_REG_CIGCTRL_INVPOLHREF
	.comm	_FIMC_REG_CIGCTRL_INVPOLHSYNC,4,2 ## @FIMC_REG_CIGCTRL_INVPOLHSYNC
	.comm	_FIMC_REG_CIGCTRL_INVPOLFIELD,4,2 ## @FIMC_REG_CIGCTRL_INVPOLFIELD
	.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
	.comm	_V4L2_MBUS_FIELD_EVEN_LOW,4,2   ## @V4L2_MBUS_FIELD_EVEN_LOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_camera_polarity    ; -- Begin function fimc_hw_set_camera_polarity
	.p2align	2
_fimc_hw_set_camera_polarity:           ; @fimc_hw_set_camera_polarity
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _FIMC_REG_CIGCTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FIMC_REG_CIGCTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _FIMC_REG_CIGCTRL_INVPOLPCLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIMC_REG_CIGCTRL_INVPOLPCLK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _FIMC_REG_CIGCTRL_INVPOLVSYNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FIMC_REG_CIGCTRL_INVPOLVSYNC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _FIMC_REG_CIGCTRL_INVPOLHREF@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FIMC_REG_CIGCTRL_INVPOLHREF@GOTPAGEOFF]
	orr	w11, w9, w8
Lloh10:
	ldr	w10, [x10]
	orr	w11, w11, w10
Lloh11:
	adrp	x12, _FIMC_REG_CIGCTRL_INVPOLHSYNC@GOTPAGE
Lloh12:
	ldr	x12, [x12, _FIMC_REG_CIGCTRL_INVPOLHSYNC@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh14:
	adrp	x13, _FIMC_REG_CIGCTRL_INVPOLFIELD@GOTPAGE
Lloh15:
	ldr	x13, [x13, _FIMC_REG_CIGCTRL_INVPOLFIELD@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
	orr	w11, w11, w13
	bic	w11, w0, w11
	ldr	w14, [x19]
Lloh17:
	adrp	x15, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh18:
	ldr	x15, [x15, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh19:
	ldr	w15, [x15]
	tst	w15, w14
	csel	w8, wzr, w8, eq
	orr	w8, w8, w11
Lloh20:
	adrp	x11, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh21:
	ldr	x11, [x11, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	tst	w11, w14
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w14
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	csel	w9, wzr, w12, eq
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _V4L2_MBUS_FIELD_EVEN_LOW@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_MBUS_FIELD_EVEN_LOW@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w14
	csel	w9, wzr, w13, eq
	orr	w0, w8, w9
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	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	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_REG_CIGCTRL,8,3           ; @FIMC_REG_CIGCTRL
	.comm	_FIMC_REG_CIGCTRL_INVPOLPCLK,4,2 ; @FIMC_REG_CIGCTRL_INVPOLPCLK
	.comm	_FIMC_REG_CIGCTRL_INVPOLVSYNC,4,2 ; @FIMC_REG_CIGCTRL_INVPOLVSYNC
	.comm	_FIMC_REG_CIGCTRL_INVPOLHREF,4,2 ; @FIMC_REG_CIGCTRL_INVPOLHREF
	.comm	_FIMC_REG_CIGCTRL_INVPOLHSYNC,4,2 ; @FIMC_REG_CIGCTRL_INVPOLHSYNC
	.comm	_FIMC_REG_CIGCTRL_INVPOLFIELD,4,2 ; @FIMC_REG_CIGCTRL_INVPOLFIELD
	.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
	.comm	_V4L2_MBUS_FIELD_EVEN_LOW,4,2   ; @V4L2_MBUS_FIELD_EVEN_LOW
.subsections_via_symbols
