	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_wait_for_clean_oq          ## -- Begin function lio_wait_for_clean_oq
	.p2align	4, 0x90
_lio_wait_for_clean_oq:                 ## @lio_wait_for_clean_oq
	.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
	movq	%rdi, %r15
	movl	$100, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, %rdi
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	movq	%r15, %rdi
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r15), %r13d
	movl	%ebx, %edi
	callq	_BIT_ULL
	testl	%r13d, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_atomic_read
	addl	%eax, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	$-1, %r12d
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_1
	jmp	LBB0_11
LBB0_2:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_wait_for_clean_oq          ; -- Begin function lio_wait_for_clean_oq
	.p2align	2
_lio_wait_for_clean_oq:                 ; @lio_wait_for_clean_oq
	.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	x19, x0
	mov	w22, #100
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x19
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, #0
	mov	w20, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x21, x21, #1
	mov	x0, x19
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	x21, w0, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x19, #8]
	mov	x0, x21
	bl	_BIT_ULL
	tst	w0, w23
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	bl	_atomic_read
	add	w20, w20, w0
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	subs	w22, w22, #1
	b.lo	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w20, LBB0_1
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
