	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_ctxt
_find_ctxt:                             ## @find_ctxt
	.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, %r13d
	movq	%rdi, %r12
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	xorl	%r14d, %r14d
	cmpl	%ecx, %eax
	jae	LBB0_10
## %bb.1:
	movq	16(%r12), %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpl	%eax, %ecx
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	cmpl	%r13d, %esi
	ja	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	4(%rbx), %esi
	cmpl	%r13d, %esi
	jbe	LBB0_9
## %bb.5:
	movq	16(%rbx), %rsi
	movl	$1, %r14d
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.6:
	movq	__QIB_EVENT_DISARM_BUFS_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_bit
	cmpl	$2, 8(%rbx)
	jl	LBB0_10
## %bb.7:
	movl	$1, %r13d
	movl	$4, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	__QIB_EVENT_DISARM_BUFS_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	addq	%r12, %rsi
	callq	_set_bit
	incq	%r13
	movslq	8(%rbx), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jl	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__QIB_EVENT_DISARM_BUFS_BIT,4,2 ## @_QIB_EVENT_DISARM_BUFS_BIT
	.no_dead_strip	_find_ctxt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_ctxt
_find_ctxt:                             ; @find_ctxt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock
	ldp	w9, w10, [x21]
	cmp	w9, w10
	b.hs	LBB0_11
; %bb.1:
	ldr	x8, [x21, #16]
	add	x8, x8, x9, lsl #3
	sub	w9, w10, w9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #8
	subs	w9, w9, #1
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8]
	cbz	x21, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x21]
	cmp	w10, w20
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x21, #4]
	add	w10, w11, w10
	cmp	w10, w20
	b.ls	LBB0_2
; %bb.6:
	ldr	x1, [x21, #16]
	cbz	x1, LBB0_10
; %bb.7:
Lloh0:
	adrp	x20, __QIB_EVENT_DISARM_BUFS_BIT@GOTPAGE
Lloh1:
	ldr	x20, [x20, __QIB_EVENT_DISARM_BUFS_BIT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_set_bit
	ldr	w8, [x21, #8]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.8:
	mov	w22, #1
	mov	w23, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [x21, #16]
	add	x1, x8, x23
	bl	_set_bit
	add	x22, x22, #1
	ldrsw	x8, [x21, #8]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_9
LBB0_10:
	mov	w20, #1
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__QIB_EVENT_DISARM_BUFS_BIT,4,2 ; @_QIB_EVENT_DISARM_BUFS_BIT
	.no_dead_strip	_find_ctxt
.subsections_via_symbols
