	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gomp_ordered_next              ## -- Begin function gomp_ordered_next
	.p2align	4, 0x90
_gomp_ordered_next:                     ## @gomp_ordered_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_gomp_thread
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.1:
	movl	(%rcx), %esi
	cmpl	$1, %esi
	jne	LBB0_2
LBB0_9:
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rax), %rdx
	movl	$-1, (%rdx)
	movl	4(%rdx), %edi
	cmpl	$1, %edi
	jne	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_4:
	cmpl	%esi, %edi
	jge	LBB0_5
## %bb.6:
	addl	8(%rdx), %edi
	xorl	%r8d, %r8d
	cmpl	%esi, %edi
	cmovael	%esi, %r8d
	subl	%r8d, %edi
	movl	(%rax), %esi
	movq	16(%rdx), %r8
	movl	%esi, (%r8,%rdi,4)
	movl	(%rcx), %esi
	jmp	LBB0_7
LBB0_5:
	movq	16(%rdx), %r8
LBB0_7:
	movl	8(%rdx), %edi
	incl	%edi
	xorl	%eax, %eax
	cmpl	%esi, %edi
	cmovnel	%edi, %eax
	movl	%eax, 8(%rdx)
	movl	(%r8,%rax,4), %eax
LBB0_8:
	shlq	$2, %rax
	addq	8(%rcx), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_gomp_sem_post                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gomp_ordered_next              ; -- Begin function gomp_ordered_next
	.p2align	2
_gomp_ordered_next:                     ; @gomp_ordered_next
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_gomp_thread
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w10, [x8]
	cmp	w10, #1
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x9, [x0, #8]
	mov	w11, #-1
	str	w11, [x9]
	ldr	w11, [x9, #4]
	cmp	w11, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x8, #8]
	ldr	x9, [x0]
	b	LBB0_9
LBB0_5:
	cmp	w11, w10
	b.ge	LBB0_7
; %bb.6:
	ldr	w12, [x9, #8]
	add	w11, w12, w11
	cmp	w11, w10
	csel	w10, wzr, w10, lo
	sub	w10, w11, w10
	ldr	x12, [x0]
	ldr	x11, [x9, #16]
	str	w12, [x11, w10, uxtw #2]
	ldr	w10, [x8]
	b	LBB0_8
LBB0_7:
	ldr	x11, [x9, #16]
LBB0_8:
	ldr	w12, [x9, #8]
	add	w13, w12, #1
	cmp	w13, w10
	csinc	w10, wzr, w12, eq
	str	w10, [x9, #8]
	ldr	w9, [x11, w10, uxtw #2]
	ldr	x8, [x8, #8]
LBB0_9:
	add	x8, x8, x9, lsl #2
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_gomp_sem_post
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
