	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_user_event_ack
_qib_user_event_ack:                    ## @qib_user_event_ack
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)
	movq	__QIB_MAX_EVENT_BIT@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	js	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movslq	%esi, %rax
	xorl	%r12d, %r12d
	movl	$-1, %ebx
	leaq	-56(%rbp), %r15
	shlq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rsi
	addq	-48(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	%ebx, %edi
	callq	_clear_bit
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r13), %ebx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	__QIB_EVENT_DISARM_BUFS_BIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_qib_disarm_piobufs_ifneeded
	movq	%r14, %rdi
	callq	_disarm_req_delay
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_1:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__QIB_MAX_EVENT_BIT,4,2         ## @_QIB_MAX_EVENT_BIT
	.comm	__QIB_EVENT_DISARM_BUFS_BIT,4,2 ## @_QIB_EVENT_DISARM_BUFS_BIT
	.no_dead_strip	_qib_user_event_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_user_event_ack
_qib_user_event_ack:                    ; @qib_user_event_ack
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	str	x2, [sp, #8]
Lloh0:
	adrp	x22, __QIB_MAX_EVENT_BIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, __QIB_MAX_EVENT_BIT@GOTPAGEOFF]
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	sxtw	x23, w1
	mov	w20, #-1
Lloh2:
	adrp	x24, __QIB_EVENT_DISARM_BUFS_BIT@GOTPAGE
Lloh3:
	ldr	x24, [x24, __QIB_EVENT_DISARM_BUFS_BIT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x1, x8, x23, lsl #2
	mov	x0, x20
	bl	_clear_bit
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	add	x1, sp, #8
	mov	x0, x20
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_qib_disarm_piobufs_ifneeded
	mov	x0, x19
	bl	_disarm_req_delay
	mov	x21, x0
	b	LBB0_3
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	__QIB_MAX_EVENT_BIT,4,2         ; @_QIB_MAX_EVENT_BIT
	.comm	__QIB_EVENT_DISARM_BUFS_BIT,4,2 ; @_QIB_EVENT_DISARM_BUFS_BIT
	.no_dead_strip	_qib_user_event_ack
.subsections_via_symbols
