	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_heap_getinfo             ## -- Begin function __lwp_heap_getinfo
	.p2align	4, 0x90
___lwp_heap_getinfo:                    ## @__lwp_heap_getinfo
	.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, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsi)
	movups	%xmm0, (%rsi)
	xorl	%eax, %eax
	callq	___sys_state_get
	movl	%eax, %edi
	callq	___sys_state_up
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %r13
	movq	(%r13), %rax
	movq	_HEAP_DUMMY_FLAG@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.2:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	___lwp_heap_blockfree
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	shlq	$4, %rbx
	incq	8(%r14,%rbx)
	movq	%r13, %rdi
	callq	___lwp_heap_blocksize
	addq	%rax, (%r14,%rbx)
	movq	8(%r13), %rax
	cmpq	(%r12), %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	___lwp_heap_nextblock
	movq	8(%r13), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	cmpq	(%r12), %rcx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_8:
	movl	$2, %r15d
	jmp	LBB0_9
LBB0_6:
	movl	$1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_DUMMY_FLAG,8,3            ## @HEAP_DUMMY_FLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_heap_getinfo             ; -- Begin function __lwp_heap_getinfo
	.p2align	2
___lwp_heap_getinfo:                    ; @__lwp_heap_getinfo
	.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
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x1]
	bl	___sys_state_get
	bl	___sys_state_up
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x20, [x20]
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _HEAP_DUMMY_FLAG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HEAP_DUMMY_FLAG@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	w22, #24
	mov	w23, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___lwp_heap_blockfree
	cmp	x0, #0
	csel	x8, x23, x22, eq
	cset	w9, ne
	lsl	x24, x9, #4
	ldr	x9, [x19, x8]
	add	x9, x9, #1
	str	x9, [x19, x8]
	mov	x0, x20
	bl	___lwp_heap_blocksize
	ldr	x8, [x19, x24]
	add	x8, x8, x0
	str	x8, [x19, x24]
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	___lwp_heap_nextblock
	ldr	x8, [x20, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	mov	x20, x0
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	w0, #2
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_DUMMY_FLAG,8,3            ; @HEAP_DUMMY_FLAG
.subsections_via_symbols
