	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_enable_vblank
_fimd_enable_vblank:                    ## @fimd_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
	movq	(%rdi), %r14
	cmpq	$0, 24(%r14)
	je	LBB0_2
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	leaq	16(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_VIDINTCON0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_VIDINTCON0_INT_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.4:
	movq	_VIDINTCON0_INT_I80IFDONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDINTCON0_INT_SYSMAINCON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDINTCON0_INT_SYSSUBCON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	jmp	LBB0_6
LBB0_5:
	movq	_VIDINTCON0_INT_FRAME@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDINTCON0_FRAMESEL0_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_VIDINTCON0_FRAMESEL0_FRONTPORCH@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_VIDINTCON0_FRAMESEL1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%ecx, %edi
	movq	_VIDINTCON0_FRAMESEL1_NONE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
LBB0_6:
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_writel
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_VIDINTCON0,8,3                 ## @VIDINTCON0
	.comm	_VIDINTCON0_INT_ENABLE,4,2      ## @VIDINTCON0_INT_ENABLE
	.comm	_VIDINTCON0_INT_I80IFDONE,4,2   ## @VIDINTCON0_INT_I80IFDONE
	.comm	_VIDINTCON0_INT_SYSMAINCON,4,2  ## @VIDINTCON0_INT_SYSMAINCON
	.comm	_VIDINTCON0_INT_SYSSUBCON,4,2   ## @VIDINTCON0_INT_SYSSUBCON
	.comm	_VIDINTCON0_INT_FRAME,4,2       ## @VIDINTCON0_INT_FRAME
	.comm	_VIDINTCON0_FRAMESEL0_MASK,4,2  ## @VIDINTCON0_FRAMESEL0_MASK
	.comm	_VIDINTCON0_FRAMESEL0_FRONTPORCH,4,2 ## @VIDINTCON0_FRAMESEL0_FRONTPORCH
	.comm	_VIDINTCON0_FRAMESEL1_MASK,4,2  ## @VIDINTCON0_FRAMESEL1_MASK
	.comm	_VIDINTCON0_FRAMESEL1_NONE,4,2  ## @VIDINTCON0_FRAMESEL1_NONE
	.no_dead_strip	_fimd_enable_vblank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_enable_vblank
_fimd_enable_vblank:                    ; @fimd_enable_vblank
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	add	x1, x19, #16
	mov	w0, #0
	bl	_test_and_set_bit
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_7
; %bb.3:
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _VIDINTCON0@GOTPAGE
Lloh4:
	ldr	x20, [x20, _VIDINTCON0@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _VIDINTCON0_INT_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VIDINTCON0_INT_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_5
; %bb.4:
Lloh8:
	adrp	x9, _VIDINTCON0_INT_I80IFDONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VIDINTCON0_INT_I80IFDONE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _VIDINTCON0_INT_SYSMAINCON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VIDINTCON0_INT_SYSMAINCON@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _VIDINTCON0_INT_SYSSUBCON@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VIDINTCON0_INT_SYSSUBCON@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w0, w8, w9
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x9, _VIDINTCON0_INT_FRAME@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VIDINTCON0_INT_FRAME@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _VIDINTCON0_FRAMESEL0_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VIDINTCON0_FRAMESEL0_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh23:
	adrp	x9, _VIDINTCON0_FRAMESEL0_FRONTPORCH@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VIDINTCON0_FRAMESEL0_FRONTPORCH@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _VIDINTCON0_FRAMESEL1_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VIDINTCON0_FRAMESEL1_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh29:
	adrp	x9, _VIDINTCON0_FRAMESEL1_NONE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VIDINTCON0_FRAMESEL1_NONE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_VIDINTCON0,8,3                 ; @VIDINTCON0
	.comm	_VIDINTCON0_INT_ENABLE,4,2      ; @VIDINTCON0_INT_ENABLE
	.comm	_VIDINTCON0_INT_I80IFDONE,4,2   ; @VIDINTCON0_INT_I80IFDONE
	.comm	_VIDINTCON0_INT_SYSMAINCON,4,2  ; @VIDINTCON0_INT_SYSMAINCON
	.comm	_VIDINTCON0_INT_SYSSUBCON,4,2   ; @VIDINTCON0_INT_SYSSUBCON
	.comm	_VIDINTCON0_INT_FRAME,4,2       ; @VIDINTCON0_INT_FRAME
	.comm	_VIDINTCON0_FRAMESEL0_MASK,4,2  ; @VIDINTCON0_FRAMESEL0_MASK
	.comm	_VIDINTCON0_FRAMESEL0_FRONTPORCH,4,2 ; @VIDINTCON0_FRAMESEL0_FRONTPORCH
	.comm	_VIDINTCON0_FRAMESEL1_MASK,4,2  ; @VIDINTCON0_FRAMESEL1_MASK
	.comm	_VIDINTCON0_FRAMESEL1_NONE,4,2  ; @VIDINTCON0_FRAMESEL1_NONE
	.no_dead_strip	_fimd_enable_vblank
.subsections_via_symbols
