	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_tcon_enable_vblank       ## -- Begin function sun4i_tcon_enable_vblank
	.p2align	4, 0x90
_sun4i_tcon_enable_vblank:              ## @sun4i_tcon_enable_vblank
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	xorl	%edi, %edi
	callq	_SUN4I_TCON_GINT0_VBLANK_ENABLE
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_SUN4I_TCON_GINT0_VBLANK_ENABLE
	orl	%eax, %ebx
	movq	_SUN4I_TCON_GINT0_TCON0_TRI_FINISH_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testl	%r15d, %r15d
	cmovnel	%ebx, %r15d
	movl	(%r14), %edi
	movq	_SUN4I_TCON_GINT0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sabling VBLANK interrupt\n"

L_.str.1:                               ## @.str.1
	.asciz	"En"

L_.str.2:                               ## @.str.2
	.asciz	"Dis"

	.comm	_SUN4I_TCON_GINT0_TCON0_TRI_FINISH_ENABLE,4,2 ## @SUN4I_TCON_GINT0_TCON0_TRI_FINISH_ENABLE
	.comm	_SUN4I_TCON_GINT0_REG,4,2       ## @SUN4I_TCON_GINT0_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_tcon_enable_vblank       ; -- Begin function sun4i_tcon_enable_vblank
	.p2align	2
_sun4i_tcon_enable_vblank:              ; @sun4i_tcon_enable_vblank
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x1, x9, x8, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	w0, #0
	bl	_SUN4I_TCON_GINT0_VBLANK_ENABLE
	mov	x21, x0
	mov	w0, #1
	bl	_SUN4I_TCON_GINT0_VBLANK_ENABLE
	orr	w8, w0, w21
Lloh6:
	adrp	x9, _SUN4I_TCON_GINT0_TCON0_TRI_FINISH_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUN4I_TCON_GINT0_TCON0_TRI_FINISH_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	cmp	w19, #0
	csel	w3, wzr, w2, eq
Lloh9:
	adrp	x8, _SUN4I_TCON_GINT0_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUN4I_TCON_GINT0_REG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh11:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sabling VBLANK interrupt\n"

l_.str.1:                               ; @.str.1
	.asciz	"En"

l_.str.2:                               ; @.str.2
	.asciz	"Dis"

	.comm	_SUN4I_TCON_GINT0_TCON0_TRI_FINISH_ENABLE,4,2 ; @SUN4I_TCON_GINT0_TCON0_TRI_FINISH_ENABLE
	.comm	_SUN4I_TCON_GINT0_REG,4,2       ; @SUN4I_TCON_GINT0_REG
.subsections_via_symbols
