	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_tcon_handler
_sun4i_tcon_handler:                    ## @sun4i_tcon_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %r15
	movq	16(%rsi), %r12
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	movq	_SUN4I_TCON_GINT0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	-44(%rbp), %r14d
	xorl	%edi, %edi
	callq	_SUN4I_TCON_GINT0_VBLANK_INT
	movl	%eax, %r13d
	movl	$1, %edi
	callq	_SUN4I_TCON_GINT0_VBLANK_INT
	orl	%r13d, %eax
	movq	_SUN4I_TCON_GINT0_TCON0_TRI_FINISH_INT@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	testl	%r14d, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_drm_crtc_handle_vblank
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sun4i_tcon_finish_page_flip
	movl	(%rbx), %r12d
	movq	_SUN4I_TCON_GINT0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_SUN4I_TCON_GINT0_VBLANK_INT
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_SUN4I_TCON_GINT0_VBLANK_INT
	orl	%eax, %ebx
	orl	(%r13), %ebx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	callq	*%rcx
	jmp	LBB0_4
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4I_TCON_GINT0_REG,4,2       ## @SUN4I_TCON_GINT0_REG
	.comm	_SUN4I_TCON_GINT0_TCON0_TRI_FINISH_INT,4,2 ## @SUN4I_TCON_GINT0_TCON0_TRI_FINISH_INT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sun4i_tcon_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_tcon_handler
_sun4i_tcon_handler:                    ; @sun4i_tcon_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldp	x22, x21, [x1, #8]
	ldr	x19, [x22, #8]
	ldr	w0, [x1]
Lloh0:
	adrp	x24, _SUN4I_TCON_GINT0_REG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SUN4I_TCON_GINT0_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w25, [sp, #12]
	mov	w0, #0
	bl	_SUN4I_TCON_GINT0_VBLANK_INT
	mov	x23, x0
	mov	w0, #1
	bl	_SUN4I_TCON_GINT0_VBLANK_INT
	orr	w8, w0, w23
Lloh2:
	adrp	x23, _SUN4I_TCON_GINT0_TCON0_TRI_FINISH_INT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SUN4I_TCON_GINT0_TCON0_TRI_FINISH_INT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
	tst	w8, w25
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_drm_crtc_handle_vblank
	mov	x0, x21
	mov	x1, x22
	bl	_sun4i_tcon_finish_page_flip
	ldr	w20, [x20]
	ldr	w21, [x24]
	mov	w0, #0
	bl	_SUN4I_TCON_GINT0_VBLANK_INT
	mov	x22, x0
	mov	w0, #1
	bl	_SUN4I_TCON_GINT0_VBLANK_INT
	orr	w8, w0, w22
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4I_TCON_GINT0_REG,4,2       ; @SUN4I_TCON_GINT0_REG
	.comm	_SUN4I_TCON_GINT0_TCON0_TRI_FINISH_INT,4,2 ; @SUN4I_TCON_GINT0_TCON0_TRI_FINISH_INT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sun4i_tcon_handler
.subsections_via_symbols
