	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_srq_get_idx
_ocrdma_srq_get_idx:                    ## @ocrdma_srq_get_idx
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movl	$1, %r14d
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	8(%rdi), %rdx
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rbx,8), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addl	$-32, %ecx
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.6:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	bsfq	%rsi, %r14
	subl	%ecx, %r14d
	xorl	%edi, %edi
	cmpl	4(%r15), %r14d
	setge	%dil
	callq	_BUG_ON
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ocrdma_srq_toggle_bit
	incl	%r14d
	movl	(%r15), %eax
LBB0_7:
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_BUG_ON
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ocrdma_srq_get_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_srq_get_idx
_ocrdma_srq_get_idx:                    ; @ocrdma_srq_get_idx
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w9, #0
	mov	x21, #0
	ldr	x10, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x21, lsl #3]
	cbnz	x11, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	sub	w9, w9, #32
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.4:
	mov	w20, #1
	mov	x21, x8
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	rbit	x8, x11
	clz	x8, x8
	ldr	w10, [x19, #4]
	sub	w20, w8, w9
	cmp	w20, w10
	cset	w0, ge
	bl	_BUG_ON
	mov	x0, x19
	mov	x1, x20
	bl	_ocrdma_srq_toggle_bit
	add	w20, w20, #1
	ldr	w8, [x19]
LBB0_7:
	cmp	w21, w8
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ocrdma_srq_get_idx
.subsections_via_symbols
