	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_idi_ind
_process_idi_ind:                       ## @process_idi_ind
	.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
	cmpl	$2, 8(%rdi)
	jne	LBB0_1
## %bb.4:
	movl	%esi, %r14d
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %r15
	callq	_DBG_TRC
	movq	_DIVA_UM_IDI_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%r15)
	movl	%r14d, -12(%r15)
	movl	32(%rbx), %eax
	movl	%eax, -16(%r15)
	movq	24(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rsi, -24(%r15)
	leaq	48(%rbx), %rdi
	addl	$24, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_diva_data_q_ack_segment4write
	jmp	LBB0_5
LBB0_1:
	leaq	48(%rbx), %r14
	movq	%r14, %rdi
	callq	_diva_data_q_get_segment4write
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, 12(%rbx)
	addq	$24, %rax
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%r14, %rdi
	callq	_diva_data_q_get_max_length
	movslq	%eax, %rdi
	addq	$-24, %rdi
	movq	24(%rbx), %rax
	movq	%rdi, (%rax)
	callq	_DBG_TRC
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movslq	32(%rbx), %rdi
	callq	_DBG_TRC
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 12(%rbx)
LBB0_5:
	movl	$1, %eax
LBB0_6:
	movq	_DIVA_UM_IDI_RC_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_8
## %bb.7:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	cmovel	%ecx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIVA_UM_IDI_IND,4,2            ## @DIVA_UM_IDI_IND
	.comm	_DIVA_UM_IDI_RC_PENDING,4,2     ## @DIVA_UM_IDI_RC_PENDING
	.no_dead_strip	_process_idi_ind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function process_idi_ind
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_process_idi_ind:                       ; @process_idi_ind
	.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
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	x8, [x19, #24]
	ldp	x0, x21, [x8]
	bl	_DBG_TRC
Lloh0:
	adrp	x8, _DIVA_UM_IDI_IND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIVA_UM_IDI_IND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x21, #-8]
	ldr	w8, [x19, #32]
	stp	w8, w20, [x21, #-16]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	stur	x8, [x21, #-24]
	add	x0, x19, #48
	add	w1, w8, #24
	bl	_diva_data_q_ack_segment4write
	b	LBB0_5
LBB0_2:
	add	x20, x19, #48
	mov	x0, x20
	bl	_diva_data_q_get_segment4write
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #12]
	add	x8, x0, #24
	ldr	x9, [x19, #24]
	str	x8, [x9, #8]
	mov	x0, x20
	bl	_diva_data_q_get_max_length
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x0, x8, #24
	ldr	x8, [x19, #24]
	str	x0, [x8]
	bl	_DBG_TRC
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldrsw	x0, [x19, #32]
	bl	_DBG_TRC
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #12]
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _DIVA_UM_IDI_RC_PENDING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DIVA_UM_IDI_RC_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	csel	w0, wzr, w0, eq
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DIVA_UM_IDI_IND,4,2            ; @DIVA_UM_IDI_IND
	.comm	_DIVA_UM_IDI_RC_PENDING,4,2     ; @DIVA_UM_IDI_RC_PENDING
	.no_dead_strip	_process_idi_ind
.subsections_via_symbols
