	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reliable_get_buf_output_sequenced ## -- Begin function reliable_get_buf_output_sequenced
	.p2align	4, 0x90
_reliable_get_buf_output_sequenced:     ## @reliable_get_buf_output_sequenced
	.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
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%rbx), %esi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r15), %rdx
	addq	$16, %rbx
	cmpq	%rdx, %r12
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	cmpq	$0, 8(%r14,%rbx)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%rbx), %edi
	movl	%esi, %r13d
	callq	_reliable_pid_min
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %esi
	jmp	LBB0_7
LBB0_9:
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.10:
	movl	4(%r15), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_reliable_pid_in_range1
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	callq	_reliable_get_buf
	movq	%rax, %rbx
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_D_REL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_reliable_print_ids
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dmsg
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_D_REL_LOW,4,2                  ## @D_REL_LOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACK output sequence broken: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reliable_get_buf_output_sequenced ; -- Begin function reliable_get_buf_output_sequenced
	.p2align	2
_reliable_get_buf_output_sequenced:     ; @reliable_get_buf_output_sequenced
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_gc_new
	str	w0, [sp, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	mov	w8, #0
	mov	w20, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w20, [x23, x21]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x2, [x19]
	add	x21, x21, #16
	cmp	x22, x2
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #8]
	add	x9, x23, x21
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23, x21]
	mov	x1, x20
	bl	_reliable_pid_min
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_8:
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_reliable_pid_in_range1
	cbz	x0, LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_reliable_get_buf
	mov	x19, x0
LBB0_11:
	add	x0, sp, #8
	bl	_gc_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh0:
	adrp	x8, _D_REL_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_REL_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_reliable_print_ids
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dmsg
	mov	x19, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_REL_LOW,4,2                  ; @D_REL_LOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACK output sequence broken: %s"

.subsections_via_symbols
