	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s3c_camif_irq_handler          ## -- Begin function s3c_camif_irq_handler
	.p2align	4, 0x90
_s3c_camif_irq_handler:                 ## @s3c_camif_irq_handler
	.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	%rsi, %r12
	movq	24(%rsi), %r14
	movq	16(%r14), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_S3C6410_CAMIF_IP_REV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_camif_hw_clear_pending_irq
LBB0_2:
	movq	%r12, %rdi
	callq	_camif_hw_get_status
	movl	%eax, %r15d
	movq	_S3C244X_CAMIF_IP_REV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.3:
	movq	_CISTATUS_OVF_MASK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_camif_hw_clear_fifo_overflow
	jmp	LBB0_24
LBB0_5:
	movl	(%r12), %eax
	movq	_ST_VP_ABORTING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testl	%eax, %edx
	je	LBB0_12
## %bb.6:
	movq	_ST_VP_OFF@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	orl	%edx, %ecx
	movq	_ST_VP_LASTIRQ@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_wake_up
	jmp	LBB0_24
LBB0_8:
	movq	_ST_VP_LASTIRQ@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_camif_hw_disable_capture
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_camif_hw_enable_scaler
	xorl	%esi, %esi
	movq	%r13, %rbx
	jmp	LBB0_11
LBB0_9:
	movl	$1, %esi
LBB0_11:
	movq	%r12, %rdi
	callq	_camif_hw_set_lastirq
	movl	(%rbx), %eax
	orl	%eax, (%r12)
	movq	_ST_VP_ABORTING@GOTPCREL(%rip), %rbx
LBB0_12:
	leaq	12(%r12), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_13
LBB0_17:
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	jne	LBB0_20
## %bb.18:
	movq	_ST_VP_PENDING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	movq	_ST_VP_RUNNING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	jmp	LBB0_20
LBB0_13:
	movq	_ST_VP_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_17
## %bb.14:
	leaq	8(%r12), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movl	%r15d, %edi
	callq	_CISTATUS_FRAMECNT
	movl	%eax, %r15d
	andl	$1, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_camif_active_queue_peek
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	jne	LBB0_20
## %bb.16:
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movq	%rbx, %rdi
	addq	$8, %rdi
	movl	%eax, 8(%rbx)
	movslq	4(%r12), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r12)
	movq	%rax, 16(%rbx)
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vb2_buffer_done
	movq	%r12, %rdi
	callq	_camif_pending_queue_pop
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	leaq	4(%rax), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_camif_hw_set_output_addr
	orl	$2, %r15d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_camif_hw_set_output_addr
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_camif_active_queue_add
LBB0_20:
	movq	_ST_VP_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%r12)
	je	LBB0_24
## %bb.21:
	movq	%r12, %rdi
	callq	_camif_prepare_dma_offset
	movq	%r14, %rdi
	callq	_camif_hw_set_camera_crop
	movq	%r12, %rdi
	callq	_camif_hw_set_scaler
	movq	%r12, %rdi
	callq	_camif_hw_set_flip
	movl	24(%r14), %esi
	movq	%r14, %rdi
	callq	_camif_hw_set_test_pattern
	movq	16(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_23
## %bb.22:
	movl	12(%r14), %esi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	movq	%r14, %rdi
	callq	_camif_hw_set_effect
LBB0_23:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_24:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C6410_CAMIF_IP_REV,4,2       ## @S3C6410_CAMIF_IP_REV
	.comm	_S3C244X_CAMIF_IP_REV,4,2       ## @S3C244X_CAMIF_IP_REV
	.comm	_CISTATUS_OVF_MASK,4,2          ## @CISTATUS_OVF_MASK
	.comm	_ST_VP_ABORTING,4,2             ## @ST_VP_ABORTING
	.comm	_ST_VP_OFF,4,2                  ## @ST_VP_OFF
	.comm	_ST_VP_LASTIRQ,4,2              ## @ST_VP_LASTIRQ
	.comm	_ST_VP_RUNNING,4,2              ## @ST_VP_RUNNING
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.comm	_ST_VP_PENDING,4,2              ## @ST_VP_PENDING
	.comm	_ST_VP_CONFIG,4,2               ## @ST_VP_CONFIG
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s3c_camif_irq_handler          ; -- Begin function s3c_camif_irq_handler
	.p2align	2
_s3c_camif_irq_handler:                 ; @s3c_camif_irq_handler
	.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, x1
	ldr	x19, [x1, #24]
	ldr	x8, [x19, #16]
	ldr	w22, [x8]
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _S3C6410_CAMIF_IP_REV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S3C6410_CAMIF_IP_REV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_camif_hw_clear_pending_irq
LBB0_2:
	mov	x0, x20
	bl	_camif_hw_get_status
	mov	x21, x0
Lloh3:
	adrp	x8, _S3C244X_CAMIF_IP_REV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S3C244X_CAMIF_IP_REV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _CISTATUS_OVF_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CISTATUS_OVF_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_camif_hw_clear_fifo_overflow
	b	LBB0_24
LBB0_5:
	ldr	w8, [x20]
Lloh9:
	adrp	x22, _ST_VP_ABORTING@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ST_VP_ABORTING@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:
Lloh11:
	adrp	x10, _ST_VP_OFF@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ST_VP_OFF@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.7:
Lloh14:
	adrp	x11, _ST_VP_LASTIRQ@GOTPAGE
Lloh15:
	ldr	x11, [x11, _ST_VP_LASTIRQ@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh16:
	ldr	w10, [x11]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x20], #16
	mov	x0, x20
	bl	_wake_up
	b	LBB0_24
LBB0_8:
Lloh17:
	adrp	x23, _ST_VP_LASTIRQ@GOTPAGE
Lloh18:
	ldr	x23, [x23, _ST_VP_LASTIRQ@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_camif_hw_disable_capture
	mov	x0, x20
	mov	w1, #0
	bl	_camif_hw_enable_scaler
	mov	w1, #0
Lloh19:
	adrp	x23, _ST_VP_OFF@GOTPAGE
Lloh20:
	ldr	x23, [x23, _ST_VP_OFF@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	w1, #1
LBB0_11:
	mov	x0, x20
	bl	_camif_hw_set_lastirq
	ldr	w8, [x23]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_12:
	add	x0, x20, #12
	bl	_list_empty
	cbz	w0, LBB0_16
LBB0_13:
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.14:
Lloh21:
	adrp	x9, _ST_VP_PENDING@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ST_VP_PENDING@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.15:
Lloh24:
	adrp	x9, _ST_VP_RUNNING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ST_VP_RUNNING@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_20
LBB0_16:
	ldr	w8, [x20]
Lloh27:
	adrp	x9, _ST_VP_RUNNING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ST_VP_RUNNING@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.17:
	add	x0, x20, #8
	bl	_list_empty
	cbnz	w0, LBB0_13
; %bb.18:
	mov	x0, x21
	bl	_CISTATUS_FRAMECNT
	and	w21, w0, #0x1
	mov	x0, x20
	mov	x1, x21
	bl	_camif_active_queue_peek
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	w0, LBB0_20
; %bb.19:
	bl	_ktime_get_ns
	str	w0, [x22, #8]!
	ldrsw	x8, [x20, #4]
	add	w9, w8, #1
	str	w9, [x20, #4]
	str	x8, [x22, #8]
Lloh30:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_vb2_buffer_done
	mov	x0, x20
	bl	_camif_pending_queue_pop
	mov	x22, x0
	mov	x23, x0
	str	w21, [x23], #4
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_camif_hw_set_output_addr
	orr	w2, w21, #0x2
	mov	x0, x20
	mov	x1, x23
	bl	_camif_hw_set_output_addr
	mov	x0, x20
	mov	x1, x22
	bl	_camif_active_queue_add
LBB0_20:
	ldr	w8, [x20]
Lloh33:
	adrp	x21, _ST_VP_CONFIG@GOTPAGE
Lloh34:
	ldr	x21, [x21, _ST_VP_CONFIG@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.21:
	mov	x0, x20
	bl	_camif_prepare_dma_offset
	mov	x0, x19
	bl	_camif_hw_set_camera_crop
	mov	x0, x20
	bl	_camif_hw_set_scaler
	mov	x0, x20
	bl	_camif_hw_set_flip
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_camif_hw_set_test_pattern
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_23
; %bb.22:
	ldp	w2, w1, [x19, #8]
	ldr	w3, [x19, #4]
	mov	x0, x19
	bl	_camif_hw_set_effect
LBB0_23:
	ldr	w8, [x21]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_24:
	mov	x0, x19
	bl	_spin_unlock
Lloh35:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C6410_CAMIF_IP_REV,4,2       ; @S3C6410_CAMIF_IP_REV
	.comm	_S3C244X_CAMIF_IP_REV,4,2       ; @S3C244X_CAMIF_IP_REV
	.comm	_CISTATUS_OVF_MASK,4,2          ; @CISTATUS_OVF_MASK
	.comm	_ST_VP_ABORTING,4,2             ; @ST_VP_ABORTING
	.comm	_ST_VP_OFF,4,2                  ; @ST_VP_OFF
	.comm	_ST_VP_LASTIRQ,4,2              ; @ST_VP_LASTIRQ
	.comm	_ST_VP_RUNNING,4,2              ; @ST_VP_RUNNING
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.comm	_ST_VP_PENDING,4,2              ; @ST_VP_PENDING
	.comm	_ST_VP_CONFIG,4,2               ; @ST_VP_CONFIG
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
