	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_user_mode_idi_ind_ready   ## -- Begin function diva_user_mode_idi_ind_ready
	.p2align	4, 0x90
_diva_user_mode_idi_ind_ready:          ## @diva_user_mode_idi_ind_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-20(%rbp), %rsi
	callq	_diva_os_enter_spin_lock
	movq	16(%rbx), %rax
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_DIVA_UM_IDI_ADAPTER_REMOVED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.4:
	movl	(%rbx), %eax
	movq	_DIVA_UM_IDI_REMOVED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %r14d
	movl	8(%rbx), %ecx
	addl	%r14d, %ecx
	movq	_DIVA_UM_IDI_RC_PENDING@GOTPCREL(%rip), %rdx
	testl	%r14d, %r14d
	cmovnel	%ecx, %r14d
	testl	%eax, (%rdx)
	cmovel	%ecx, %r14d
LBB0_6:
	movq	_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-20(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adapter_lock,4,2               ## @adapter_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ind_ready"

	.comm	_DIVA_UM_IDI_ADAPTER_REMOVED,4,2 ## @DIVA_UM_IDI_ADAPTER_REMOVED
	.comm	_DIVA_UM_IDI_REMOVED,4,2        ## @DIVA_UM_IDI_REMOVED
	.comm	_DIVA_UM_IDI_RC_PENDING,4,2     ## @DIVA_UM_IDI_RC_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_user_mode_idi_ind_ready   ; -- Begin function diva_user_mode_idi_ind_ready
	.p2align	2
_diva_user_mode_idi_ind_ready:          ; @diva_user_mode_idi_ind_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, _adapter_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _adapter_lock@GOTPAGEOFF]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_enter_spin_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _DIVA_UM_IDI_ADAPTER_REMOVED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DIVA_UM_IDI_ADAPTER_REMOVED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _DIVA_UM_IDI_REMOVED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DIVA_UM_IDI_REMOVED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_4:
	mov	w19, #-1
LBB0_5:
Lloh10:
	adrp	x0, _adapter_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _adapter_lock@GOTPAGEOFF]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_leave_spin_lock
	b	LBB0_7
LBB0_6:
	mov	w19, #-1
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldp	w9, w10, [x19, #4]
Lloh14:
	adrp	x11, _DIVA_UM_IDI_RC_PENDING@GOTPAGE
Lloh15:
	ldr	x11, [x11, _DIVA_UM_IDI_RC_PENDING@GOTPAGEOFF]
	add	w10, w10, w9
Lloh16:
	ldr	w11, [x11]
	and	w8, w11, w8
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	csel	w19, wzr, w10, ne
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_adapter_lock,4,2               ; @adapter_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ind_ready"

	.comm	_DIVA_UM_IDI_ADAPTER_REMOVED,4,2 ; @DIVA_UM_IDI_ADAPTER_REMOVED
	.comm	_DIVA_UM_IDI_REMOVED,4,2        ; @DIVA_UM_IDI_REMOVED
	.comm	_DIVA_UM_IDI_RC_PENDING,4,2     ; @DIVA_UM_IDI_RC_PENDING
.subsections_via_symbols
