	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_csi_is_interlaced          ## -- Begin function ipu_csi_is_interlaced
	.p2align	4, 0x90
_ipu_csi_is_interlaced:                 ## @ipu_csi_is_interlaced
	.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
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_CSI_SENS_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ipu_csi_read
	movl	%eax, %ebx
	movq	_CSI_SENS_CONF_SENS_PRTCL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_CSI_SENS_CONF_SENS_PRTCL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	addl	$-128, %ebx
	cmpl	$8, %ebx
	jae	LBB0_1
## %bb.2:
	movslq	%ebx, %rax
	leaq	l_switch.table.ipu_csi_is_interlaced(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_3
LBB0_1:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSI_SENS_CONF,4,2              ## @CSI_SENS_CONF
	.comm	_CSI_SENS_CONF_SENS_PRTCL_MASK,4,2 ## @CSI_SENS_CONF_SENS_PRTCL_MASK
	.comm	_CSI_SENS_CONF_SENS_PRTCL_SHIFT,4,2 ## @CSI_SENS_CONF_SENS_PRTCL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSI %d sensor protocol unsupported\n"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ipu_csi_is_interlaced
l_switch.table.ipu_csi_is_interlaced:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_csi_is_interlaced          ; -- Begin function ipu_csi_is_interlaced
	.p2align	2
_ipu_csi_is_interlaced:                 ; @ipu_csi_is_interlaced
	.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
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _CSI_SENS_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSI_SENS_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipu_csi_read
Lloh3:
	adrp	x8, _CSI_SENS_CONF_SENS_PRTCL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSI_SENS_CONF_SENS_PRTCL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _CSI_SENS_CONF_SENS_PRTCL_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSI_SENS_CONF_SENS_PRTCL_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w21, w8, w9
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	sub	w8, w21, #128
	cmp	w8, #8
	b.hs	LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, l_switch.table.ipu_csi_is_interlaced@PAGE
Lloh10:
	add	x9, x9, l_switch.table.ipu_csi_is_interlaced@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CSI_SENS_CONF,4,2              ; @CSI_SENS_CONF
	.comm	_CSI_SENS_CONF_SENS_PRTCL_MASK,4,2 ; @CSI_SENS_CONF_SENS_PRTCL_MASK
	.comm	_CSI_SENS_CONF_SENS_PRTCL_SHIFT,4,2 ; @CSI_SENS_CONF_SENS_PRTCL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSI %d sensor protocol unsupported\n"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ipu_csi_is_interlaced
l_switch.table.ipu_csi_is_interlaced:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
