	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_handle_irq_errors
_dsi_handle_irq_errors:                 ## @dsi_handle_irq_errors
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	_DSI_IRQ_ERROR_MASK@GOTPCREL(%rip), %r14
	testl	%esi, (%r14)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DSSERR
	movl	%ebx, %edi
	callq	_print_irq_status
	leaq	4(%r12), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	andl	(%r14), %ebx
	orl	%ebx, (%r12)
	movq	%r13, %rdi
	callq	_spin_unlock
	jmp	LBB0_4
LBB0_2:
	movq	_debug_irq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_print_irq_status
LBB0_4:
	movl	(%r15), %edx
	movq	_DSI_VC_IRQ_ERROR_MASK@GOTPCREL(%rip), %rbx
	testl	%edx, (%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_DSSERR
	movl	(%r15), %edx
	jmp	LBB0_7
LBB0_6:
	movq	_debug_irq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
LBB0_7:
	xorl	%edi, %edi
	movl	%edx, %esi
	callq	_print_irq_status_vc
LBB0_8:
	movl	4(%r15), %edx
	testl	%edx, (%rbx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_DSSERR
	movl	4(%r15), %edx
	jmp	LBB0_11
LBB0_10:
	movq	_debug_irq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
LBB0_11:
	movl	$1, %edi
	movl	%edx, %esi
	callq	_print_irq_status_vc
LBB0_12:
	movl	8(%r15), %edx
	testl	%edx, (%rbx)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	callq	_DSSERR
	movl	8(%r15), %edx
	jmp	LBB0_15
LBB0_14:
	movq	_debug_irq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
LBB0_15:
	movl	$2, %edi
	movl	%edx, %esi
	callq	_print_irq_status_vc
LBB0_16:
	movl	12(%r15), %edx
	testl	%edx, (%rbx)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	movl	$3, %esi
	xorl	%eax, %eax
	callq	_DSSERR
	movl	12(%r15), %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_18:
	movq	_debug_irq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_20
LBB0_19:
	movl	$3, %edi
	movl	%edx, %esi
	callq	_print_irq_status_vc
LBB0_20:
	movq	_DSI_CIO_IRQ_ERROR_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_23
## %bb.21:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DSSERR
	jmp	LBB0_22
LBB0_23:
	movq	_debug_irq@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
LBB0_22:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_irq_status_cio           ## TAILCALL
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_IRQ_ERROR_MASK,4,2         ## @DSI_IRQ_ERROR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DSI error, irqstatus %x\n"

	.comm	_debug_irq,8,3                  ## @debug_irq
	.comm	_DSI_VC_IRQ_ERROR_MASK,4,2      ## @DSI_VC_IRQ_ERROR_MASK
L_.str.1:                               ## @.str.1
	.asciz	"DSI VC(%d) error, vc irqstatus %x\n"

	.comm	_DSI_CIO_IRQ_ERROR_MASK,4,2     ## @DSI_CIO_IRQ_ERROR_MASK
L_.str.2:                               ## @.str.2
	.asciz	"DSI CIO error, cio irqstatus %x\n"

	.no_dead_strip	_dsi_handle_irq_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_handle_irq_errors
_dsi_handle_irq_errors:                 ; @dsi_handle_irq_errors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x24, _DSI_IRQ_ERROR_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DSI_IRQ_ERROR_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DSSERR
	mov	x0, x21
	bl	_print_irq_status
	add	x23, x22, #4
	mov	x0, x23
	bl	_spin_lock
	ldr	w8, [x24]
	and	w8, w8, w21
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x23
	bl	_spin_unlock
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _debug_irq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _debug_irq@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_print_irq_status
LBB0_4:
	ldr	w1, [x20]
Lloh7:
	adrp	x21, _DSI_VC_IRQ_ERROR_MASK@GOTPAGE
Lloh8:
	ldr	x21, [x21, _DSI_VC_IRQ_ERROR_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_6
; %bb.5:
	str	x1, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_DSSERR
	ldr	w1, [x20]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _debug_irq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _debug_irq@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_7:
	mov	w0, #0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_print_irq_status_vc
LBB0_8:
	ldr	w1, [x20, #4]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_10
; %bb.9:
	str	x1, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_DSSERR
	ldr	w1, [x20, #4]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _debug_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _debug_irq@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
LBB0_11:
	mov	w0, #1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_print_irq_status_vc
LBB0_12:
	ldr	w1, [x20, #8]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_14
; %bb.13:
	str	x1, [sp]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #2
	bl	_DSSERR
	ldr	w1, [x20, #8]
	b	LBB0_15
LBB0_14:
Lloh21:
	adrp	x8, _debug_irq@GOTPAGE
Lloh22:
	ldr	x8, [x8, _debug_irq@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
LBB0_15:
	mov	w0, #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_print_irq_status_vc
LBB0_16:
	ldr	w1, [x20, #12]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_18
; %bb.17:
	str	x1, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #3
	bl	_DSSERR
	ldr	w1, [x20, #12]
	b	LBB0_19
LBB0_18:
Lloh26:
	adrp	x8, _debug_irq@GOTPAGE
Lloh27:
	ldr	x8, [x8, _debug_irq@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
LBB0_19:
	mov	w0, #3
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_print_irq_status_vc
LBB0_20:
Lloh29:
	adrp	x8, _DSI_CIO_IRQ_ERROR_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DSI_CIO_IRQ_ERROR_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_22
; %bb.21:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_DSSERR
	b	LBB0_23
LBB0_22:
Lloh34:
	adrp	x8, _debug_irq@GOTPAGE
Lloh35:
	ldr	x8, [x8, _debug_irq@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbz	x8, LBB0_24
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_print_irq_status_cio
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_IRQ_ERROR_MASK,4,2         ; @DSI_IRQ_ERROR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DSI error, irqstatus %x\n"

	.comm	_debug_irq,8,3                  ; @debug_irq
	.comm	_DSI_VC_IRQ_ERROR_MASK,4,2      ; @DSI_VC_IRQ_ERROR_MASK
l_.str.1:                               ; @.str.1
	.asciz	"DSI VC(%d) error, vc irqstatus %x\n"

	.comm	_DSI_CIO_IRQ_ERROR_MASK,4,2     ; @DSI_CIO_IRQ_ERROR_MASK
l_.str.2:                               ; @.str.2
	.asciz	"DSI CIO error, cio irqstatus %x\n"

	.no_dead_strip	_dsi_handle_irq_errors
.subsections_via_symbols
