	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_mask                      ## -- Begin function heap_mask
	.p2align	4, 0x90
_heap_mask:                             ## @heap_mask
	.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	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_mask_page_lsn_and_checksum
	movq	%r15, %rdi
	callq	_mask_page_hint_bits
	movq	%r15, %rdi
	callq	_mask_unused_space
	movq	%r15, %rdi
	callq	_PageGetMaxOffsetNumber
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	xorl	%r12d, %r12d
	movq	_MASK_MARKER@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_PageGetMaxOffsetNumber
	cmpl	%eax, %r12d
	jge	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_PageGetItemId
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_ItemIdGetOffset
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	%r13d, %edi
	callq	_ItemIdIsNormal
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderXminFrozen
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HEAP_XMAX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HEAP_XMAX_COMMITTED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_HEAP_XACT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	notl	%eax
	andl	%eax, 8(%rbx)
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderIsSpeculative
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_ItemPointerSet
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_ItemIdHasStorage
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_ItemIdGetLength
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_MAXALIGN
	subl	%r13d, %eax
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rcx
	addq	%rcx, %rbx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_memset
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_XACT_MASK,4,2             ## @HEAP_XACT_MASK
	.comm	_HEAP_XMAX_INVALID,4,2          ## @HEAP_XMAX_INVALID
	.comm	_HEAP_XMAX_COMMITTED,4,2        ## @HEAP_XMAX_COMMITTED
	.comm	_MASK_MARKER,4,2                ## @MASK_MARKER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_mask                      ; -- Begin function heap_mask
	.p2align	2
_heap_mask:                             ; @heap_mask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	bl	_mask_page_lsn_and_checksum
	mov	x0, x20
	bl	_mask_page_hint_bits
	mov	x0, x20
	bl	_mask_unused_space
	mov	x0, x20
	bl	_PageGetMaxOffsetNumber
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w24, #0
Lloh0:
	adrp	x25, _MASK_MARKER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MASK_MARKER@GOTPAGEOFF]
Lloh2:
	adrp	x26, _HEAP_XACT_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HEAP_XACT_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x27, _HEAP_XMAX_INVALID@GOTPAGE
Lloh5:
	ldr	x27, [x27, _HEAP_XMAX_INVALID@GOTPAGEOFF]
Lloh6:
	adrp	x28, _HEAP_XMAX_COMMITTED@GOTPAGE
Lloh7:
	ldr	x28, [x28, _HEAP_XMAX_COMMITTED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_PageGetMaxOffsetNumber
	add	w24, w24, #1
	cmp	w24, w0
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w24, #1
	mov	x0, x20
	mov	x1, x23
	bl	_PageGetItemId
	mov	x22, x0
	bl	_ItemIdGetOffset
	add	x21, x0, x20
	mov	x0, x22
	bl	_ItemIdIsNormal
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_HeapTupleHeaderXminFrozen
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x21, #8]
	ldr	w10, [x28]
	orr	w8, w8, w10
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x21, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	bic	w8, w9, w8
	str	w8, [x21, #8]
	ldr	w8, [x25]
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_HeapTupleHeaderIsSpeculative
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_ItemPointerSet
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_ItemIdHasStorage
	cbz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_ItemIdGetLength
	mov	x22, x0
	bl	_MAXALIGN
	sub	w2, w0, w22
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x21, w22, sxtw
	ldr	w1, [x25]
	bl	_memset
	b	LBB0_2
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_XACT_MASK,4,2             ; @HEAP_XACT_MASK
	.comm	_HEAP_XMAX_INVALID,4,2          ; @HEAP_XMAX_INVALID
	.comm	_HEAP_XMAX_COMMITTED,4,2        ; @HEAP_XMAX_COMMITTED
	.comm	_MASK_MARKER,4,2                ; @MASK_MARKER
.subsections_via_symbols
