	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_csi_get_window             ## -- Begin function ipu_csi_get_window
	.p2align	4, 0x90
_ipu_csi_get_window:                    ## @ipu_csi_get_window
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_CSI_ACT_FRM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipu_csi_read
	movzwl	%ax, %ecx
	incl	%ecx
	movl	%ecx, (%r14)
	shrl	$16, %eax
	incl	%eax
	movl	%eax, 4(%r14)
	movq	_CSI_OUT_FRM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipu_csi_read
	movq	_CSI_HSC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_CSI_HSC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	%edx, 8(%r14)
	movq	_CSI_VSC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CSI_VSC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSI_ACT_FRM_SIZE,4,2           ## @CSI_ACT_FRM_SIZE
	.comm	_CSI_OUT_FRM_CTRL,4,2           ## @CSI_OUT_FRM_CTRL
	.comm	_CSI_HSC_MASK,4,2               ## @CSI_HSC_MASK
	.comm	_CSI_HSC_SHIFT,4,2              ## @CSI_HSC_SHIFT
	.comm	_CSI_VSC_MASK,4,2               ## @CSI_VSC_MASK
	.comm	_CSI_VSC_SHIFT,4,2              ## @CSI_VSC_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_csi_get_window             ; -- Begin function ipu_csi_get_window
	.p2align	2
_ipu_csi_get_window:                    ; @ipu_csi_get_window
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _CSI_ACT_FRM_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSI_ACT_FRM_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ipu_csi_read
	and	w8, w0, #0xffff
	add	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, #1
	stp	w8, w9, [x19]
Lloh3:
	adrp	x8, _CSI_OUT_FRM_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSI_OUT_FRM_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ipu_csi_read
Lloh6:
	adrp	x8, _CSI_HSC_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSI_HSC_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _CSI_HSC_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CSI_HSC_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh12:
	adrp	x9, _CSI_VSC_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CSI_VSC_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _CSI_VSC_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CSI_VSC_SHIFT@GOTPAGEOFF]
	and	w9, w9, w0
Lloh17:
	ldr	w10, [x10]
	asr	w9, w9, w10
	stp	w8, w9, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CSI_ACT_FRM_SIZE,4,2           ; @CSI_ACT_FRM_SIZE
	.comm	_CSI_OUT_FRM_CTRL,4,2           ; @CSI_OUT_FRM_CTRL
	.comm	_CSI_HSC_MASK,4,2               ; @CSI_HSC_MASK
	.comm	_CSI_HSC_SHIFT,4,2              ; @CSI_HSC_SHIFT
	.comm	_CSI_VSC_MASK,4,2               ; @CSI_VSC_MASK
	.comm	_CSI_VSC_SHIFT,4,2              ; @CSI_VSC_SHIFT
.subsections_via_symbols
