	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_divas_um_idi_entity_start_remove ## -- Begin function divas_um_idi_entity_start_remove
	.p2align	4, 0x90
_divas_um_idi_entity_start_remove:      ## @divas_um_idi_entity_start_remove
	.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
	movq	%rdi, %rbx
	movq	_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-28(%rbp), %rsi
	callq	_diva_os_enter_spin_lock
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	32(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	_DIVA_UM_IDI_REMOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_8
## %bb.3:
	movq	_DIVA_UM_IDI_ADAPTER_REMOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-28(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %r14d
	cmpq	$0, 40(%rbx)
	jne	LBB0_9
## %bb.5:
	cmpl	$0, 28(%rbx)
	je	LBB0_8
## %bb.6:
	movq	_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	$1, 40(%rbx)
	movq	8(%rbx), %rax
	movslq	(%rax), %rdi
	callq	_DBG_TRC
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	*%rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_adapter_lock,4,2               ## @adapter_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start_remove"

	.comm	_DIVA_UM_IDI_REMOVED,4,2        ## @DIVA_UM_IDI_REMOVED
	.comm	_DIVA_UM_IDI_ADAPTER_REMOVED,4,2 ## @DIVA_UM_IDI_ADAPTER_REMOVED
	.comm	_REMOVE,4,2                     ## @REMOVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_divas_um_idi_entity_start_remove ; -- Begin function divas_um_idi_entity_start_remove
	.p2align	2
_divas_um_idi_entity_start_remove:      ; @divas_um_idi_entity_start_remove
	.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
	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
	cbz	x19, LBB0_5
; %bb.1:
	ldr	x20, [x19, #32]
	cbz	x20, LBB0_4
; %bb.2:
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _DIVA_UM_IDI_REMOVED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DIVA_UM_IDI_REMOVED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _DIVA_UM_IDI_ADAPTER_REMOVED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DIVA_UM_IDI_ADAPTER_REMOVED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	mov	w19, #0
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
	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_6:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w19, #1
	b	LBB0_5
LBB0_8:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_4
; %bb.9:
Lloh14:
	adrp	x8, _REMOVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REMOVE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
	mov	w8, #1
	str	x8, [x19, #40]
	ldr	x8, [x19, #8]
	ldrsw	x0, [x8]
	bl	_DBG_TRC
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.10:
	add	x0, x19, #8
	blr	x8
	b	LBB0_4
	.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	"start_remove"

	.comm	_DIVA_UM_IDI_REMOVED,4,2        ; @DIVA_UM_IDI_REMOVED
	.comm	_DIVA_UM_IDI_ADAPTER_REMOVED,4,2 ; @DIVA_UM_IDI_ADAPTER_REMOVED
	.comm	_REMOVE,4,2                     ; @REMOVE
.subsections_via_symbols
