	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_irq_handler
_fimd_irq_handler:                      ## @fimd_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_VIDINTCON1@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	40(%rsi), %rdi
	callq	_readl
	cmpq	$0, 16(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_VIDINTCON1_INT_FRAME@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_VIDINTCON1_INT_I80@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edi
	testl	%eax, %edi
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rsi
	addq	40(%rbx), %rsi
	callq	_writel
LBB0_5:
	cmpl	$0, 32(%rbx)
	je	LBB0_11
## %bb.6:
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	24(%rbx), %rdi
	callq	_drm_crtc_handle_vblank
	cmpq	$0, 16(%rbx)
	je	LBB0_9
LBB0_8:
	addq	$8, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	callq	_wake_up
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDINTCON1,8,3                 ## @VIDINTCON1
	.comm	_VIDINTCON1_INT_I80,4,2         ## @VIDINTCON1_INT_I80
	.comm	_VIDINTCON1_INT_FRAME,4,2       ## @VIDINTCON1_INT_FRAME
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fimd_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_irq_handler
_fimd_irq_handler:                      ; @fimd_irq_handler
	.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
	mov	x19, x1
	ldr	x8, [x1, #40]
Lloh0:
	adrp	x20, _VIDINTCON1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VIDINTCON1@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	mov	x8, x0
	ldr	x9, [x19, #16]
Lloh2:
	adrp	x10, _VIDINTCON1_INT_I80@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VIDINTCON1_INT_I80@GOTPAGEOFF]
Lloh4:
	adrp	x11, _VIDINTCON1_INT_FRAME@GOTPAGE
Lloh5:
	ldr	x11, [x11, _VIDINTCON1_INT_FRAME@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w0, [x9]
	tst	w0, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x0, [x19, #24]
	bl	_drm_crtc_handle_vblank
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
LBB0_5:
	add	x0, x19, #8
	mov	w1, #0
	bl	_atomic_set
LBB0_6:
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	add	x20, x19, #4
	mov	x0, x20
	bl	_atomic_read
	cbz	x0, LBB0_6
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x19
	bl	_wake_up
	b	LBB0_6
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDINTCON1,8,3                 ; @VIDINTCON1
	.comm	_VIDINTCON1_INT_I80,4,2         ; @VIDINTCON1_INT_I80
	.comm	_VIDINTCON1_INT_FRAME,4,2       ; @VIDINTCON1_INT_FRAME
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fimd_irq_handler
.subsections_via_symbols
