	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrDoPendingDeletes           ## -- Begin function smgrDoPendingDeletes
	.p2align	4, 0x90
_smgrDoPendingDeletes:                  ## @smgrDoPendingDeletes
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_GetCurrentTransactionNestLevel
	movl	%eax, %ebx
	movq	_pendingDeletes@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_20
## %bb.1:
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r15
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r13
	testq	%r14, %r14
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r14
	cmpl	%ebx, (%r13)
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_pendingDeletes@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%r15), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, (%rax)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%r13)
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	leaq	-88(%rbp), %rdi
	callq	_smgropen
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rax,%rax), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	shll	$4, %eax
	leal	(%rax,%rax,2), %esi
	movq	%r12, %rdi
	callq	_repalloc
	movq	%rax, %r12
	movl	-60(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$192, %edi
	callq	_palloc
	movq	%rax, %r12
	movl	$8, %eax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movslq	%ecx, %rax
	incl	%ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	-72(%rbp), %rcx
	movq	%rcx, 16(%r12,%rax,8)
	movups	-88(%rbp), %xmm0
	movups	%xmm0, (%r12,%rax,8)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_pfree
	jmp	LBB0_15
LBB0_16:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_smgrdounlinkall
	movl	%r14d, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r14
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12,%rbx), %rax
	movq	%rax, 16(%rsp)
	movups	(%r12,%rbx), %xmm0
	movups	%xmm0, (%rsp)
	callq	_smgrclose
	addq	$24, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_18
## %bb.19:
	movq	%r12, %rdi
	callq	_pfree
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pendingDeletes,8,3             ## @pendingDeletes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrDoPendingDeletes           ; -- Begin function smgrDoPendingDeletes
	.p2align	2
_smgrDoPendingDeletes:                  ; @smgrDoPendingDeletes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	bl	_GetCurrentTransactionNestLevel
Lloh0:
	adrp	x24, _pendingDeletes@GOTPAGE
Lloh1:
	ldr	x24, [x24, _pendingDeletes@GOTPAGEOFF]
	ldr	x23, [x24]
	cbz	x23, LBB0_15
; %bb.1:
	mov	x22, x0
	mov	x19, #0
	mov	w26, #0
	mov	w20, #0
	mov	x25, #0
	mov	w27, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x23
	mov	x23, x28
	cbz	x28, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x23, #16]
	ldr	w8, [x23]
	cmp	w8, w22
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, #16
	cmp	x25, #0
	csel	x8, x24, x8, eq
	str	x28, [x8]
	ldr	w8, [x23, #4]
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w1, w0, [x23, #8]
	mov	x8, sp
	bl	_smgropen
	cbz	w26, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, w20
	b.gt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w27, w26, #1
	add	w8, w27, w26
	lsl	w1, w8, #4
	mov	x0, x19
	bl	_repalloc
	mov	x19, x0
	mov	x26, x27
	mov	w27, #24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #192
	bl	_palloc
	mov	x19, x0
	mov	w26, #8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	smaddl	x8, w20, w27, x19
	ldr	q0, [sp]
	ldr	x9, [sp, #16]
	add	w20, w20, #1
	str	x9, [x8, #16]
	str	q0, [x8]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_pfree
	mov	x23, x28
	cbnz	x28, LBB0_3
LBB0_11:
	cmp	w20, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_smgrdounlinkall
	mov	x21, #0
	mov	w8, #24
	umull	x20, w20, w8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x21
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	str	q0, [sp]
	mov	x0, sp
	bl	_smgrclose
	add	x21, x21, #24
	cmp	x20, x21
	b.ne	LBB0_13
; %bb.14:
	mov	x0, x19
	bl	_pfree
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pendingDeletes,8,3             ; @pendingDeletes
.subsections_via_symbols
