	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_get_buf_id
_fimc_get_buf_id:                       ## @fimc_get_buf_id
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_EXYNOS_CISTATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fimc_read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_PRESENT
	movl	%eax, %r15d
LBB0_2:
	movl	(%r14), %r12d
	movl	%ebx, %edi
	callq	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_PRESENT
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	decl	%r15d
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movl	%r15d, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DRM_DEV_ERROR
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS_CISTATUS2,4,2           ## @EXYNOS_CISTATUS2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"present[%d]before[%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get frame count.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"buf_id[%d]\n"

	.no_dead_strip	_fimc_get_buf_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_get_buf_id
_fimc_get_buf_id:                       ; @fimc_get_buf_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _EXYNOS_CISTATUS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXYNOS_CISTATUS2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fimc_read
	mov	x21, x0
	bl	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_PRESENT
	mov	x20, x0
LBB0_2:
	ldr	w22, [x19]
	mov	x0, x21
	bl	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_PRESENT
	mov	x23, x0
	mov	x0, x21
	bl	_EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_DRM_DEV_DEBUG_KMS
	cbz	w20, LBB0_4
; %bb.3:
	sub	w20, w20, #1
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_DEBUG_KMS
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_ERROR
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS_CISTATUS2,4,2           ; @EXYNOS_CISTATUS2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"present[%d]before[%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get frame count.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"buf_id[%d]\n"

	.no_dead_strip	_fimc_get_buf_id
.subsections_via_symbols
