	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tabstat_entry
_get_tabstat_entry:                     ## @get_tabstat_entry
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, -44(%rbp)
	movq	_pgStatTabHash@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movabsq	$34359738372, %rax              ## imm = 0x800000004
	movq	%rax, -56(%rbp)
	movq	_TABSTAT_QUANTUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HASH_ELEM@GOTPCREL(%rip), %rax
	movq	_HASH_BLOBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	callq	_hash_create
	movq	%rax, %rdi
	movq	%rax, (%rbx)
LBB0_2:
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %r15
	cmpl	$0, -56(%rbp)
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_5
LBB0_3:
	movq	$0, (%r15)
LBB0_5:
	movq	_pgStatTabList@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.6:
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$24, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, %rbx
	movq	%rax, (%r12)
LBB0_7:
	movq	(%rbx), %rdx
	movq	_TABSTAT_QUANTUM@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_9
## %bb.8:
	movq	%rbx, %rax
LBB0_13:
	movq	8(%rax), %rcx
	leaq	1(%rdx), %rsi
	movq	%rsi, (%rax)
	leaq	(%rcx,%rdx,8), %rax
	movl	-44(%rbp), %esi
	movl	%esi, 4(%rcx,%rdx,8)
	movl	%r14d, (%rcx,%rdx,8)
	movq	%rax, (%r15)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_TopMemoryContext@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rax), %rdx
	movq	%rax, %rbx
	cmpq	%rcx, %rdx
	jl	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %edi
	movl	$24, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, 16(%rbx)
	movq	(%r12), %rcx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_pgStatTabHash,8,3              ## @pgStatTabHash
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pgstat TabStatusArray lookup hash table"

	.comm	_TABSTAT_QUANTUM,8,3            ## @TABSTAT_QUANTUM
	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ## @HASH_BLOBS
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_pgStatTabList,8,3              ## @pgStatTabList
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.no_dead_strip	_get_tabstat_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function get_tabstat_entry
lCPI0_0:
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_get_tabstat_entry:                     ; @get_tabstat_entry
	.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, x1
	str	w0, [sp, #12]
Lloh0:
	adrp	x20, _pgStatTabHash@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pgStatTabHash@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp]
Lloh4:
	adrp	x8, _TABSTAT_QUANTUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TABSTAT_QUANTUM@GOTPAGEOFF]
Lloh6:
	adrp	x9, _HASH_ELEM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HASH_ELEM@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _HASH_BLOBS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HASH_BLOBS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, sp
	bl	_hash_create
	str	x0, [x20]
LBB0_2:
Lloh15:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x3, sp
	bl	_hash_search
	mov	x20, x0
	ldr	w8, [sp]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	cbnz	x0, LBB0_10
	b	LBB0_5
LBB0_4:
	str	xzr, [x20]
LBB0_5:
Lloh18:
	adrp	x22, _pgStatTabList@GOTPAGE
Lloh19:
	ldr	x22, [x22, _pgStatTabList@GOTPAGEOFF]
	ldr	x21, [x22]
	cbnz	x21, LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #24
	bl	_MemoryContextAllocZero
	mov	x21, x0
	str	x0, [x22]
LBB0_7:
	ldr	x9, [x21]
Lloh23:
	adrp	x22, _TABSTAT_QUANTUM@GOTPAGE
Lloh24:
	ldr	x22, [x22, _TABSTAT_QUANTUM@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x9, x8
	b.ge	LBB0_11
; %bb.8:
	mov	x0, x21
LBB0_9:
	ldr	x8, [x0, #8]
	add	x10, x9, #1
	str	x10, [x0]
	add	x0, x8, x9, lsl #3
	ldr	w8, [sp, #12]
	stp	w19, w8, [x0]
	str	x0, [x20]
LBB0_10:
	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_11:
Lloh25:
	adrp	x23, _TopMemoryContext@GOTPAGE
Lloh26:
	ldr	x23, [x23, _TopMemoryContext@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x0]
	mov	x21, x0
	cmp	x9, x8
	b.lt	LBB0_9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x23]
	mov	w1, #24
	bl	_MemoryContextAllocZero
	str	x0, [x21, #16]
	ldr	x8, [x22]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_pgStatTabHash,8,3              ; @pgStatTabHash
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pgstat TabStatusArray lookup hash table"

	.comm	_TABSTAT_QUANTUM,8,3            ; @TABSTAT_QUANTUM
	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ; @HASH_BLOBS
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_pgStatTabList,8,3              ; @pgStatTabList
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.no_dead_strip	_get_tabstat_entry
.subsections_via_symbols
