	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_csi_isr
_sun6i_csi_isr:                         ## @sun6i_csi_isr
	.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	%rsi, %r14
	movq	8(%rsi), %rbx
	movq	_CSI_CH_INT_STA_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	movl	-28(%rbp), %edx
	testb	%dl, %dl
	je	LBB0_1
## %bb.2:
	movq	_CSI_CH_INT_STA_FIFO0_OF_PD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	_CSI_CH_INT_STA_FIFO1_OF_PD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_CSI_CH_INT_STA_FIFO2_OF_PD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_CSI_CH_INT_STA_HB_OF_PD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_7
LBB0_6:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_regmap_write
	movq	_CSI_EN_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CSI_EN_CSI_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	(%r14), %esi
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_regmap_update_bits
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_CSI_CH_INT_STA_FD_PD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_sun6i_video_frame_done
	movl	-28(%rbp), %edx
LBB0_9:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_regmap_write
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CSI_CH_INT_STA_REG,4,2         ## @CSI_CH_INT_STA_REG
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CSI_CH_INT_STA_FIFO0_OF_PD,4,2 ## @CSI_CH_INT_STA_FIFO0_OF_PD
	.comm	_CSI_CH_INT_STA_FIFO1_OF_PD,4,2 ## @CSI_CH_INT_STA_FIFO1_OF_PD
	.comm	_CSI_CH_INT_STA_FIFO2_OF_PD,4,2 ## @CSI_CH_INT_STA_FIFO2_OF_PD
	.comm	_CSI_CH_INT_STA_HB_OF_PD,4,2    ## @CSI_CH_INT_STA_HB_OF_PD
	.comm	_CSI_EN_REG,4,2                 ## @CSI_EN_REG
	.comm	_CSI_EN_CSI_EN,4,2              ## @CSI_EN_CSI_EN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_CSI_CH_INT_STA_FD_PD,4,2       ## @CSI_CH_INT_STA_FD_PD
	.no_dead_strip	_sun6i_csi_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun6i_csi_isr
_sun6i_csi_isr:                         ; @sun6i_csi_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x21, _CSI_CH_INT_STA_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CSI_CH_INT_STA_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_regmap_read
	ldr	w2, [sp, #12]
	tst	w2, #0xff
	b.eq	LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _CSI_CH_INT_STA_FIFO0_OF_PD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSI_CH_INT_STA_FIFO0_OF_PD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _CSI_CH_INT_STA_FIFO1_OF_PD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSI_CH_INT_STA_FIFO1_OF_PD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _CSI_CH_INT_STA_FIFO2_OF_PD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSI_CH_INT_STA_FIFO2_OF_PD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _CSI_CH_INT_STA_HB_OF_PD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSI_CH_INT_STA_HB_OF_PD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_9
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_regmap_write
Lloh14:
	adrp	x20, _CSI_EN_REG@GOTPAGE
Lloh15:
	ldr	x20, [x20, _CSI_EN_REG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh16:
	adrp	x21, _CSI_EN_CSI_EN@GOTPAGE
Lloh17:
	ldr	x21, [x21, _CSI_EN_CSI_EN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_6:
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
Lloh22:
	adrp	x8, _CSI_CH_INT_STA_FD_PD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CSI_CH_INT_STA_FD_PD@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_sun6i_video_frame_done
	ldr	w2, [sp, #12]
LBB0_11:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_regmap_write
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CSI_CH_INT_STA_REG,4,2         ; @CSI_CH_INT_STA_REG
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CSI_CH_INT_STA_FIFO0_OF_PD,4,2 ; @CSI_CH_INT_STA_FIFO0_OF_PD
	.comm	_CSI_CH_INT_STA_FIFO1_OF_PD,4,2 ; @CSI_CH_INT_STA_FIFO1_OF_PD
	.comm	_CSI_CH_INT_STA_FIFO2_OF_PD,4,2 ; @CSI_CH_INT_STA_FIFO2_OF_PD
	.comm	_CSI_CH_INT_STA_HB_OF_PD,4,2    ; @CSI_CH_INT_STA_HB_OF_PD
	.comm	_CSI_EN_REG,4,2                 ; @CSI_EN_REG
	.comm	_CSI_EN_CSI_EN,4,2              ; @CSI_EN_CSI_EN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_CSI_CH_INT_STA_FD_PD,4,2       ; @CSI_CH_INT_STA_FD_PD
	.no_dead_strip	_sun6i_csi_isr
.subsections_via_symbols
