	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_disable_completion_interrupt
_ql_disable_completion_interrupt:       ## @ql_disable_completion_interrupt
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	_QL_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	setne	%al
	testl	%r14d, %r14d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_likely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%r15), %r12
	movslq	%r14d, %r13
	movq	%r15, %rdi
	callq	_spin_lock
	leaq	(%r12,%r13,8), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_INTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12,%r13,8), %edx
	movq	%r15, %rdi
	callq	_ql_write32
	movq	_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ql_read32
	movl	%eax, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL_MSIX_ENABLED,4,2            ## @QL_MSIX_ENABLED
	.comm	_INTR_EN,4,2                    ## @INTR_EN
	.comm	_STS,4,2                        ## @STS
	.no_dead_strip	_ql_disable_completion_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_disable_completion_interrupt
_ql_disable_completion_interrupt:       ; @ql_disable_completion_interrupt
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QL_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QL_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cmp	w21, #0
	ccmp	x0, #0, #4, ne
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	ldr	x22, [x19, #8]
	mov	x0, x19
	bl	_spin_lock
	add	x20, x22, w21, sxtw #3
	mov	x0, x20
	bl	_atomic_read
	cbz	w0, LBB0_4
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	sxtw	x8, w21
Lloh3:
	adrp	x9, _INTR_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTR_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x8, x22, x8, lsl #3
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_ql_write32
Lloh6:
	adrp	x8, _STS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ql_read32
	mov	x21, x0
LBB0_5:
	mov	x0, x20
	bl	_atomic_inc
	mov	x0, x19
	bl	_spin_unlock
LBB0_6:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QL_MSIX_ENABLED,4,2            ; @QL_MSIX_ENABLED
	.comm	_INTR_EN,4,2                    ; @INTR_EN
	.comm	_STS,4,2                        ; @STS
	.no_dead_strip	_ql_disable_completion_interrupt
.subsections_via_symbols
