	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReorderBufferIterTXNFinish
_ReorderBufferIterTXNFinish:            ## @ReorderBufferIterTXNFinish
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rcx
	movl	(%rcx,%rbx,4), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_CloseTransientFile
	movq	(%r14), %rax
	jmp	LBB0_4
LBB0_5:
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_dlist_is_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_ReorderBufferChange@GOTPCREL(%rip), %rax
	movq	%r12, %rbx
	movl	(%rax), %r12d
	movq	_node@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_dlist_pop_head_node
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dlist_container
	movq	_change@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ReorderBufferReturnChange
	movq	%r15, %rdi
	callq	_dlist_is_empty
	movl	%eax, %edi
	callq	_Assert
LBB0_7:
	movl	8(%r14), %edi
	callq	_binaryheap_free
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ReorderBufferChange,4,2        ## @ReorderBufferChange
	.comm	_change,4,2                     ## @change
	.comm	_node,4,2                       ## @node
	.no_dead_strip	_ReorderBufferIterTXNFinish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReorderBufferIterTXNFinish
_ReorderBufferIterTXNFinish:            ; @ReorderBufferIterTXNFinish
	.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, x1
	mov	x20, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	w0, [x9, x21, lsl #2]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_CloseTransientFile
	ldr	x8, [x19]
	b	LBB0_2
LBB0_5:
	add	x21, x19, #12
	mov	x0, x21
	bl	_dlist_is_empty
	cbnz	w0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _ReorderBufferChange@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ReorderBufferChange@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _node@GOTPAGE
Lloh4:
	ldr	x8, [x8, _node@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_dlist_pop_head_node
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_dlist_container
	mov	x1, x0
Lloh6:
	adrp	x8, _change@GOTPAGE
Lloh7:
	ldr	x8, [x8, _change@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	mov	x0, x20
	bl	_ReorderBufferReturnChange
	mov	x0, x21
	bl	_dlist_is_empty
	bl	_Assert
LBB0_7:
	ldr	w0, [x19, #8]
	bl	_binaryheap_free
	mov	x0, x19
	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
	b	_pfree
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ReorderBufferChange,4,2        ; @ReorderBufferChange
	.comm	_change,4,2                     ; @change
	.comm	_node,4,2                       ; @node
	.no_dead_strip	_ReorderBufferIterTXNFinish
.subsections_via_symbols
