	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_bad_intrstatus             ## -- Begin function qib_bad_intrstatus
	.p2align	4, 0x90
_qib_bad_intrstatus:                    ## @qib_bad_intrstatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rsi
	movq	%rdi, %rbx
	callq	_qib_dev_err
	movl	_qib_bad_intrstatus.allbits(%rip), %ecx
	leal	1(%rcx), %eax
	movl	%eax, _qib_bad_intrstatus.allbits(%rip)
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$2, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*16(%rdi)
	movl	_qib_bad_intrstatus.allbits(%rip), %eax
LBB0_3:
	cmpl	$3, %eax
	jne	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_qib_dev_err
	movq	_QIB_BADINTR@GOTPCREL(%rip), %rax
	movl	8(%rbx), %ecx
	orl	(%rax), %ecx
	movq	_QIB_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movq	%rbx, %rdi
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*(%rdi)                         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_qib_bad_intrstatus.allbits,4,2 ## @qib_bad_intrstatus.allbits
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read of chip interrupt status failed disabling interrupts\n"

L_.str.1:                               ## @.str.1
	.asciz	"2nd bad interrupt status, unregistering interrupts\n"

	.comm	_QIB_BADINTR,4,2                ## @QIB_BADINTR
	.comm	_QIB_INITTED,4,2                ## @QIB_INITTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_bad_intrstatus             ; -- Begin function qib_bad_intrstatus
	.p2align	2
_qib_bad_intrstatus:                    ; @qib_bad_intrstatus
	.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, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_qib_dev_err
	adrp	x20, _qib_bad_intrstatus.allbits@PAGE
	ldr	w9, [x20, _qib_bad_intrstatus.allbits@PAGEOFF]
	add	w8, w9, #1
	str	w8, [x20, _qib_bad_intrstatus.allbits@PAGEOFF]
	cbz	w9, LBB0_5
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	w8, [x20, _qib_bad_intrstatus.allbits@PAGEOFF]
LBB0_3:
	cmp	w8, #3
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
Lloh4:
	adrp	x8, _QIB_BADINTR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QIB_BADINTR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
Lloh7:
	adrp	x10, _QIB_INITTED@GOTPAGE
Lloh8:
	ldr	x10, [x10, _QIB_INITTED@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh9:
	ldr	w9, [x10]
	bic	w8, w8, w9
	str	w8, [x19, #8]
	ldr	x1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_qib_bad_intrstatus.allbits,4,2 ; @qib_bad_intrstatus.allbits
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read of chip interrupt status failed disabling interrupts\n"

l_.str.1:                               ; @.str.1
	.asciz	"2nd bad interrupt status, unregistering interrupts\n"

	.comm	_QIB_BADINTR,4,2                ; @QIB_BADINTR
	.comm	_QIB_INITTED,4,2                ; @QIB_INITTED
.subsections_via_symbols
