	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsc_handle_irq
_gsc_handle_irq:                        ## @gsc_handle_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_DRM_DEV_DEBUG_KMS
	movq	_GSC_IRQ@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_gsc_read
	movq	_GSC_IRQ_OR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_GSC_IRQ_FRMDONE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%edx, %esi
	orl	%ecx, %esi
	orl	%eax, %esi
	movq	_GSC_IRQ_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %eax
	orl	%esi, %eax
	notl	%edi
	andl	%esi, %edi
	testl	%ebx, %ebx
	cmovnel	%eax, %edi
	movl	%edx, %eax
	notl	%eax
	andl	%edi, %eax
	orl	%edx, %edi
	testl	%r15d, %r15d
	cmovnel	%eax, %edi
	movl	%ecx, %eax
	notl	%eax
	andl	%edi, %eax
	orl	%ecx, %edi
	testl	%r14d, %r14d
	cmovnel	%eax, %edi
	movl	(%r12), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gsc_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable[%d]overflow[%d]level[%d]\n"

	.comm	_GSC_IRQ,4,2                    ## @GSC_IRQ
	.comm	_GSC_IRQ_OR_MASK,4,2            ## @GSC_IRQ_OR_MASK
	.comm	_GSC_IRQ_FRMDONE_MASK,4,2       ## @GSC_IRQ_FRMDONE_MASK
	.comm	_GSC_IRQ_ENABLE,4,2             ## @GSC_IRQ_ENABLE
	.no_dead_strip	_gsc_handle_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsc_handle_irq
_gsc_handle_irq:                        ; @gsc_handle_irq
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_DRM_DEV_DEBUG_KMS
Lloh2:
	adrp	x22, _GSC_IRQ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GSC_IRQ@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_gsc_read
Lloh4:
	adrp	x8, _GSC_IRQ_OR_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GSC_IRQ_OR_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _GSC_IRQ_FRMDONE_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GSC_IRQ_FRMDONE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w10, w8, w0
	orr	w10, w10, w9
Lloh10:
	adrp	x11, _GSC_IRQ_ENABLE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _GSC_IRQ_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	orr	w12, w11, w10
	bic	w10, w10, w11
	cmp	w21, #0
	csel	w10, w10, w12, eq
	bic	w11, w10, w8
	orr	w8, w10, w8
	cmp	w20, #0
	csel	w8, w8, w11, eq
	bic	w10, w8, w9
	orr	w8, w8, w9
	cmp	w19, #0
	csel	w0, w8, w10, eq
	ldr	w1, [x22]
	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	_gsc_write
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable[%d]overflow[%d]level[%d]\n"

	.comm	_GSC_IRQ,4,2                    ; @GSC_IRQ
	.comm	_GSC_IRQ_OR_MASK,4,2            ; @GSC_IRQ_OR_MASK
	.comm	_GSC_IRQ_FRMDONE_MASK,4,2       ; @GSC_IRQ_FRMDONE_MASK
	.comm	_GSC_IRQ_ENABLE,4,2             ; @GSC_IRQ_ENABLE
	.no_dead_strip	_gsc_handle_irq
.subsections_via_symbols
