	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_blwritepage
__bt_blwritepage:                       ## @_bt_blwritepage
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_RelationOpenSmgr
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	movl	$1, %r8d
	callq	_log_newpage
LBB0_2:
	movl	8(%rbx), %edx
	cmpl	%r15d, %edx
	jge	LBB0_7
## %bb.3:
	movq	_BLCKSZ@GOTPCREL(%rip), %r12
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	leal	1(%rdx), %eax
	movl	%eax, 8(%rbx)
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$1, %r8d
	callq	_smgrextend
	movl	8(%rbx), %edx
	cmpl	%r15d, %edx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	callq	_palloc0
	movq	%rax, %rcx
	movq	%rax, 16(%rbx)
	movl	8(%rbx), %edx
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_PageSetChecksumInplace
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%r15d, 8(%rbx)
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %edx
	movq	%r14, %rcx
	movl	$1, %r8d
	callq	_smgrextend
	incl	8(%rbx)
	jmp	LBB0_10
LBB0_9:
	movl	%r15d, %edx
	movq	%r14, %rcx
	movl	$1, %r8d
	callq	_smgrwrite
LBB0_10:
	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	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.no_dead_strip	__bt_blwritepage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_blwritepage
__bt_blwritepage:                       ; @_bt_blwritepage
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_RelationOpenSmgr
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x22, _MAIN_FORKNUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAIN_FORKNUM@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	add	x0, x8, #4
	ldr	w1, [x22]
	mov	x2, x20
	mov	x3, x19
	mov	w4, #1
	bl	_log_newpage
LBB0_2:
	ldr	w2, [x21, #8]
	cmp	w2, w20
	b.ge	LBB0_7
; %bb.3:
Lloh2:
	adrp	x23, _BLCKSZ@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BLCKSZ@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	w1, [x22]
	add	w8, w2, #1
	str	w8, [x21, #8]
	mov	w4, #1
	bl	_smgrextend
	ldr	w2, [x21, #8]
	cmp	w2, w20
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x21, #16]
	cbnz	x3, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	bl	_palloc0
	mov	x3, x0
	str	x0, [x21, #16]
	ldr	w2, [x21, #8]
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_PageSetChecksumInplace
	ldr	w8, [x21, #8]
	ldr	x9, [x21]
	ldr	w0, [x9]
	ldr	w1, [x22]
	mov	x2, x20
	mov	x3, x19
	mov	w4, #1
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.8:
	bl	_smgrextend
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	b	LBB0_10
LBB0_9:
	bl	_smgrwrite
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.no_dead_strip	__bt_blwritepage
.subsections_via_symbols
