	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_6120intr
_qib_6120intr:                          ## @qib_6120intr
	.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	_QIB_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_QIB_BADINTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	(%rsi), %ecx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpl	%eax, %ecx
	jne	LBB0_24
## %bb.1:
	movq	%rsi, %r15
	movq	_kr_intstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qib_read_kreg32
	movl	%eax, %r12d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.2:
	xorl	%edi, %edi
	cmpl	$-1, %r12d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_qib_bad_intrstatus
	jmp	LBB0_25
LBB0_4:
	movq	_qib_stats@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	4(%r15), %eax
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	incl	%eax
	movl	%eax, 4(%r15)
LBB0_6:
	movq	_QLOGIC_IB_I_BITSEXTANT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	movq	_QLOGIC_IB_I_GPIO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_QLOGIC_IB_I_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_unlikely_6120_intr
LBB0_8:
	movq	_kr_intclear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_qib_write_kreg
	movq	_QLOGIC_IB_I_RCVAVAIL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QLOGIC_IB_I_RCVAVAIL_SHIFT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	_QLOGIC_IB_I_RCVURG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_QLOGIC_IB_I_RCVURG_SHIFT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
	andl	%r12d, %ebx
	je	LBB0_21
## %bb.9:
	movl	8(%r15), %edx
	testl	%edx, %edx
	je	LBB0_20
## %bb.10:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	btsl	%eax, %r12d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	addl	%r12d, %r12d
	incq	%r14
	movl	%edx, %eax
	cmpq	%rax, %r14
	jae	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %r12d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, %eax
	notl	%eax
	andl	%eax, %ebx
	movq	16(%r15), %rsi
	movq	24(%r15), %rax
	movl	(%rax,%r14,4), %edi
	xorl	%edx, %edx
	callq	_qib_kreceive
	addl	%eax, %r13d
	movl	8(%r15), %edx
	jmp	LBB0_13
LBB0_14:
	testl	%r13d, %r13d
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_19
## %bb.15:
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	addl	%ecx, %r13d
	je	LBB0_19
## %bb.16:
	cmpl	4(%rax), %r13d
	jle	LBB0_18
## %bb.17:
	movl	$0, (%rax)
	incl	8(%rax)
	jmp	LBB0_19
LBB0_18:
	addl	%ecx, %r13d
	movl	%r13d, (%rax)
LBB0_19:
	testl	%ebx, %ebx
	movq	_QLOGIC_IB_I_RCVAVAIL_SHIFT@GOTPCREL(%rip), %rsi
	movq	_QLOGIC_IB_I_RCVURG_SHIFT@GOTPCREL(%rip), %rdi
	je	LBB0_21
LBB0_20:
	movb	(%rsi), %cl
	movl	%ebx, %eax
	sarl	%cl, %eax
	movb	(%rdi), %cl
	sarl	%cl, %ebx
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_qib_handle_urcv
LBB0_21:
	movq	_QLOGIC_IB_I_SPIOBUFAVAIL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_24
## %bb.22:
	movq	_QIB_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_qib_ib_piobufavail
LBB0_24:
	movq	%r14, %rbx
LBB0_25:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_PRESENT,4,2                ## @QIB_PRESENT
	.comm	_QIB_BADINTR,4,2                ## @QIB_BADINTR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_kr_intstatus,4,2               ## @kr_intstatus
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_qib_stats,4,2                  ## @qib_stats
	.comm	_QLOGIC_IB_I_BITSEXTANT,4,2     ## @QLOGIC_IB_I_BITSEXTANT
	.comm	_QLOGIC_IB_I_GPIO,4,2           ## @QLOGIC_IB_I_GPIO
	.comm	_QLOGIC_IB_I_ERROR,4,2          ## @QLOGIC_IB_I_ERROR
	.comm	_kr_intclear,4,2                ## @kr_intclear
	.comm	_QLOGIC_IB_I_RCVAVAIL_MASK,4,2  ## @QLOGIC_IB_I_RCVAVAIL_MASK
	.comm	_QLOGIC_IB_I_RCVAVAIL_SHIFT,4,2 ## @QLOGIC_IB_I_RCVAVAIL_SHIFT
	.comm	_QLOGIC_IB_I_RCVURG_MASK,4,2    ## @QLOGIC_IB_I_RCVURG_MASK
	.comm	_QLOGIC_IB_I_RCVURG_SHIFT,4,2   ## @QLOGIC_IB_I_RCVURG_SHIFT
	.comm	_QLOGIC_IB_I_SPIOBUFAVAIL,4,2   ## @QLOGIC_IB_I_SPIOBUFAVAIL
	.comm	_QIB_INITTED,4,2                ## @QIB_INITTED
	.no_dead_strip	_qib_6120intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_6120intr
_qib_6120intr:                          ; @qib_6120intr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _QIB_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _QIB_BADINTR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QIB_BADINTR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w10, w10, w9
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.1:
	mov	x19, x1
Lloh6:
	adrp	x8, _kr_intstatus@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kr_intstatus@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_read_kreg32
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.2:
	cmn	w20, #1
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_qib_bad_intrstatus
LBB0_4:
Lloh9:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_26
LBB0_5:
Lloh11:
	adrp	x8, _qib_stats@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qib_stats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.6:
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_7:
Lloh13:
	adrp	x8, _QLOGIC_IB_I_BITSEXTANT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QLOGIC_IB_I_BITSEXTANT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _QLOGIC_IB_I_GPIO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _QLOGIC_IB_I_GPIO@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orn	w8, w9, w8
Lloh19:
	adrp	x9, _QLOGIC_IB_I_ERROR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _QLOGIC_IB_I_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_unlikely_6120_intr
LBB0_9:
Lloh22:
	adrp	x8, _kr_intclear@GOTPAGE
Lloh23:
	ldr	x8, [x8, _kr_intclear@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_qib_write_kreg
Lloh25:
	adrp	x8, _QLOGIC_IB_I_RCVAVAIL_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QLOGIC_IB_I_RCVAVAIL_MASK@GOTPAGEOFF]
Lloh27:
	adrp	x21, _QLOGIC_IB_I_RCVAVAIL_SHIFT@GOTPAGE
Lloh28:
	ldr	x21, [x21, _QLOGIC_IB_I_RCVAVAIL_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x21]
	lsl	w8, w8, w9
Lloh30:
	adrp	x10, _QLOGIC_IB_I_RCVURG_MASK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _QLOGIC_IB_I_RCVURG_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x10]
Lloh33:
	adrp	x22, _QLOGIC_IB_I_RCVURG_SHIFT@GOTPAGE
Lloh34:
	ldr	x22, [x22, _QLOGIC_IB_I_RCVURG_SHIFT@GOTPAGEOFF]
	ldr	w10, [x22]
	lsl	w11, w11, w10
	orr	w8, w11, w8
	ands	w23, w8, w20
	b.eq	LBB0_22
; %bb.10:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_21
; %bb.11:
	mov	x25, #0
	mov	w24, #0
	mov	w11, #1
	lsl	w10, w11, w10
	lsl	w9, w11, w9
	orr	w26, w10, w9
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	lsl	w26, w26, #1
	add	x25, x25, #1
	cmp	x25, w8, uxtw
	b.hs	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	tst	w26, w23
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bic	w23, w23, w26
	ldp	x1, x8, [x19, #16]
	ldr	w0, [x8, x25, lsl #2]
	mov	x2, #0
	bl	_qib_kreceive
	add	w24, w0, w24
	ldr	w8, [x19, #8]
	b	LBB0_12
LBB0_15:
	cbz	w24, LBB0_20
; %bb.16:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	adds	w10, w9, w24
	b.eq	LBB0_20
; %bb.17:
	ldr	w11, [x8, #4]
	cmp	w10, w11
	b.le	LBB0_19
; %bb.18:
	str	wzr, [x8]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_20
LBB0_19:
	add	w9, w10, w9
	str	w9, [x8]
LBB0_20:
	cbz	w23, LBB0_22
LBB0_21:
	ldr	w8, [x21]
	asr	w8, w23, w8
	ldr	w9, [x22]
	asr	w9, w23, w9
	orr	w1, w9, w8
	mov	x0, x19
	bl	_qib_handle_urcv
LBB0_22:
Lloh35:
	adrp	x8, _QLOGIC_IB_I_SPIOBUFAVAIL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _QLOGIC_IB_I_SPIOBUFAVAIL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.23:
	ldr	w8, [x19]
Lloh38:
	adrp	x9, _QIB_INITTED@GOTPAGE
Lloh39:
	ldr	x9, [x9, _QIB_INITTED@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_qib_ib_piobufavail
LBB0_25:
Lloh41:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_PRESENT,4,2                ; @QIB_PRESENT
	.comm	_QIB_BADINTR,4,2                ; @QIB_BADINTR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_kr_intstatus,4,2               ; @kr_intstatus
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_qib_stats,4,2                  ; @qib_stats
	.comm	_QLOGIC_IB_I_BITSEXTANT,4,2     ; @QLOGIC_IB_I_BITSEXTANT
	.comm	_QLOGIC_IB_I_GPIO,4,2           ; @QLOGIC_IB_I_GPIO
	.comm	_QLOGIC_IB_I_ERROR,4,2          ; @QLOGIC_IB_I_ERROR
	.comm	_kr_intclear,4,2                ; @kr_intclear
	.comm	_QLOGIC_IB_I_RCVAVAIL_MASK,4,2  ; @QLOGIC_IB_I_RCVAVAIL_MASK
	.comm	_QLOGIC_IB_I_RCVAVAIL_SHIFT,4,2 ; @QLOGIC_IB_I_RCVAVAIL_SHIFT
	.comm	_QLOGIC_IB_I_RCVURG_MASK,4,2    ; @QLOGIC_IB_I_RCVURG_MASK
	.comm	_QLOGIC_IB_I_RCVURG_SHIFT,4,2   ; @QLOGIC_IB_I_RCVURG_SHIFT
	.comm	_QLOGIC_IB_I_SPIOBUFAVAIL,4,2   ; @QLOGIC_IB_I_SPIOBUFAVAIL
	.comm	_QIB_INITTED,4,2                ; @QIB_INITTED
	.no_dead_strip	_qib_6120intr
.subsections_via_symbols
