	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7322bufavail
_qib_7322bufavail:                      ## @qib_7322bufavail
	.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
	movq	_QIB_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_QIB_BADINTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	(%rsi), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	_kr_intclear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QIB_I_SPIOBUFAVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_qib_write_kreg
	movq	_QIB_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_qib_ib_piobufavail
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_qib_wantpiobuf_7322_intr
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	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_intclear,4,2                ## @kr_intclear
	.comm	_QIB_I_SPIOBUFAVAIL,4,2         ## @QIB_I_SPIOBUFAVAIL
	.comm	_QIB_INITTED,4,2                ## @QIB_INITTED
	.no_dead_strip	_qib_7322bufavail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7322bufavail
_qib_7322bufavail:                      ; @qib_7322bufavail
	.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
	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_4
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	bl	_this_cpu_inc
Lloh6:
	adrp	x8, _kr_intclear@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kr_intclear@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _QIB_I_SPIOBUFAVAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QIB_I_SPIOBUFAVAIL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _QIB_INITTED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QIB_INITTED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bl	_qib_ib_piobufavail
	b	LBB0_4
LBB0_3:
	mov	w1, #0
	bl	_qib_wantpiobuf_7322_intr
LBB0_4:
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_intclear,4,2                ; @kr_intclear
	.comm	_QIB_I_SPIOBUFAVAIL,4,2         ; @QIB_I_SPIOBUFAVAIL
	.comm	_QIB_INITTED,4,2                ; @QIB_INITTED
	.no_dead_strip	_qib_7322bufavail
.subsections_via_symbols
