	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shmob_drm_irq
_shmob_drm_irq:                         ## @shmob_drm_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rsi), %r12
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_LDINTR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_lcdc_read
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	_LDINTR_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %edx
	movq	%r12, %rdi
	callq	_lcdc_write
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_LDINTR_VES@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_handle_vblank
	movq	%r12, %rdi
	callq	_shmob_drm_crtc_finish_page_flip
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDINTR,4,2                     ## @LDINTR
	.comm	_LDINTR_STATUS_MASK,4,2         ## @LDINTR_STATUS_MASK
	.comm	_LDINTR_VES,4,2                 ## @LDINTR_VES
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_shmob_drm_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shmob_drm_irq
_shmob_drm_irq:                         ; @shmob_drm_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x19, [x1]
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x23, _LDINTR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDINTR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_lcdc_read
	mov	x22, x0
	ldr	w1, [x23]
Lloh2:
	adrp	x8, _LDINTR_STATUS_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDINTR_STATUS_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	eor	w2, w8, w0
	mov	x0, x19
	bl	_lcdc_write
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x8, _LDINTR_VES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDINTR_VES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_handle_vblank
	mov	x0, x19
	bl	_shmob_drm_crtc_finish_page_flip
LBB0_2:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LDINTR,4,2                     ; @LDINTR
	.comm	_LDINTR_STATUS_MASK,4,2         ; @LDINTR_STATUS_MASK
	.comm	_LDINTR_VES,4,2                 ; @LDINTR_VES
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_shmob_drm_irq
.subsections_via_symbols
