	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_dst_set_buf_seq
_fimc_dst_set_buf_seq:                  ## @fimc_dst_set_buf_seq
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_DRM_DEV_DEBUG_KMS
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_EXYNOS_CIFCNTSEQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_fimc_read
	movl	%eax, %ebx
	btsl	%r12d, %ebx
	btrl	%r12d, %eax
	testl	%r14d, %r14d
	cmovel	%eax, %ebx
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_fimc_write
	movl	%ebx, %edi
	callq	_hweight32
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_FIMC_BUF_START@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	cmpl	(%rcx), %eax
	jge	LBB0_4
LBB0_2:
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.3:
	movq	_FIMC_BUF_STOP@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	jg	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_fimc_mask_irq
LBB0_5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buf_id[%d]enqueu[%d]\n"

	.comm	_EXYNOS_CIFCNTSEQ,4,2           ## @EXYNOS_CIFCNTSEQ
	.comm	_FIMC_BUF_START,4,2             ## @FIMC_BUF_START
	.comm	_FIMC_BUF_STOP,4,2              ## @FIMC_BUF_STOP
	.no_dead_strip	_fimc_dst_set_buf_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_dst_set_buf_seq
_fimc_dst_set_buf_seq:                  ; @fimc_dst_set_buf_seq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	bl	_DRM_DEV_DEBUG_KMS
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x23, _EXYNOS_CIFCNTSEQ@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EXYNOS_CIFCNTSEQ@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_fimc_read
	mov	w21, #1
	lsl	w8, w21, w22
	orr	w9, w0, w8
	bic	w8, w0, w8
	cmp	w20, #0
	csel	w22, w8, w9, eq
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_fimc_write
	mov	x0, x22
	bl	_hweight32
	cbz	w20, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _FIMC_BUF_START@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FIMC_BUF_START@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_5
LBB0_2:
	cbnz	w20, LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _FIMC_BUF_STOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FIMC_BUF_STOP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_6
; %bb.4:
	mov	w21, #0
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_fimc_mask_irq
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buf_id[%d]enqueu[%d]\n"

	.comm	_EXYNOS_CIFCNTSEQ,4,2           ; @EXYNOS_CIFCNTSEQ
	.comm	_FIMC_BUF_START,4,2             ; @FIMC_BUF_START
	.comm	_FIMC_BUF_STOP,4,2              ; @FIMC_BUF_STOP
	.no_dead_strip	_fimc_dst_set_buf_seq
.subsections_via_symbols
