	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_heap_adjust
_lock_heap_adjust:                      ## @lock_heap_adjust
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rsi), %r9d
	cmpl	$2, %edi
	jl	LBB0_5
## %bb.1:
	movq	_LH@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movl	%edi, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%ecx
	movq	(%rdx,%rcx,8), %rax
	cmpl	%r9d, (%rax)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %r10d
	movq	%rax, (%rdx,%r10,8)
	movq	(%r8), %rdx
	movq	(%rdx,%r10,8), %rax
	movl	%edi, 4(%rax)
	cmpl	$3, %edi
	movl	%ecx, %edi
	ja	LBB0_2
	jmp	LBB0_6
LBB0_5:
	movl	%edi, %ecx
LBB0_6:
	movq	_LHN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leal	(%rcx,%rcx), %edx
	cmpl	%r10d, %edx
	jle	LBB0_8
## %bb.7:
	movq	_LH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_14:
	movl	%ecx, %r11d
	jmp	LBB0_15
LBB0_8:
	movq	_LH@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rdi
	cmpl	%r10d, %edx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %r11d
	orl	$1, %r11d
	movslq	%r11d, %rax
	movq	(%rdi,%rax,8), %rax
	movl	(%rax), %eax
	movslq	%edx, %rbx
	movq	(%rdi,%rbx,8), %rbx
	cmpl	(%rbx), %eax
	jl	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %r11d
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%r11d, %rax
	movq	(%rdi,%rax,8), %rdx
	cmpl	%r9d, (%rdx)
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%ecx, %rax
	movq	%rdx, (%rdi,%rax,8)
	movq	(%r8), %rdi
	movq	(%rdi,%rax,8), %rcx
	movl	%eax, 4(%rcx)
	leal	(%r11,%r11), %edx
	movl	%r11d, %ecx
	cmpl	%r10d, %edx
	jle	LBB0_9
LBB0_15:
	movslq	%r11d, %rax
	movq	%rsi, (%rdi,%rax,8)
	movl	%eax, 4(%rsi)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LH,8,3                         ## @LH
	.comm	_LHN,4,2                        ## @LHN
	.no_dead_strip	_lock_heap_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_heap_adjust
_lock_heap_adjust:                      ; @lock_heap_adjust
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w9, [x1]
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x10, _LH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LH@GOTPAGEOFF]
	ldr	x11, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w0, w8, #1
	ldr	x12, [x11, w0, uxtw #3]
	ldr	w13, [x12]
	cmp	w13, w9
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w13, w8
	lsl	x13, x13, #3
	str	x12, [x11, x13]
	ldr	x11, [x10]
	ldr	x12, [x11, x13]
	str	w8, [x12, #4]
	cmp	w8, #3
	mov	x8, x0
	b.hi	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x0, x8
LBB0_5:
Lloh2:
	adrp	x8, _LHN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LHN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
	lsl	w12, w0, #1
	cmp	w12, w10
	b.le	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _LH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LH@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	b	LBB0_14
LBB0_7:
Lloh8:
	adrp	x11, _LH@GOTPAGE
Lloh9:
	ldr	x11, [x11, _LH@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x11]
	cmp	w12, w10
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x13, w12
	orr	x13, x13, #0x1
	ldr	x14, [x8, x13, lsl #3]
	ldr	w14, [x14]
	ldr	x15, [x8, w12, sxtw #3]
	ldr	w15, [x15]
	cmp	w14, w15
	csel	w13, w13, w12, lt
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x13, x12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x12, [x8, w13, sxtw #3]
	ldr	w14, [x12]
	cmp	w14, w9
	b.ge	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	sbfiz	x14, x0, #3, #32
	str	x12, [x8, x14]
	ldr	x8, [x11]
	ldr	x12, [x8, x14]
	str	w0, [x12, #4]
	lsl	w12, w13, #1
	mov	x0, x13
	cmp	w12, w10
	b.le	LBB0_8
; %bb.13:
	mov	x0, x13
LBB0_14:
	str	x1, [x8, w0, sxtw #3]
	str	w0, [x1, #4]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LH,8,3                         ; @LH
	.comm	_LHN,4,2                        ; @LHN
	.no_dead_strip	_lock_heap_adjust
.subsections_via_symbols
