	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function basic_et_adjust
_basic_et_adjust:                       ## @basic_et_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
	cmpl	$2, %esi
	jl	LBB0_5
## %bb.1:
	movq	(%rdi), %r9
	movq	_et_heap@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movl	%esi, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%eax
	movq	(%rdx,%rax,8), %rcx
	cmpq	%r9, (%rcx)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %r10d
	movq	%rcx, (%rdx,%r10,8)
	movq	(%r8), %rdx
	movq	(%rdx,%r10,8), %rcx
	movl	%esi, 8(%rcx)
	cmpl	$3, %esi
	movl	%eax, %esi
	ja	LBB0_2
	jmp	LBB0_6
LBB0_5:
	movl	%esi, %eax
LBB0_6:
	movq	_et_heap_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	leal	(%rax,%rax), %ecx
	cmpl	%r10d, %ecx
	jle	LBB0_8
## %bb.7:
	movq	_et_heap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	jmp	LBB0_15
LBB0_8:
	movq	(%rdi), %r9
	movq	_et_heap@GOTPCREL(%rip), %r8
	movl	%eax, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rdx
	cmpl	%r10d, %ecx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%ecx, %rax
	movq	(%rdx,%rax,8), %rax
	movq	(%rax), %r11
	movl	%ecx, %eax
	orl	$1, %eax
	movslq	%eax, %rbx
	movq	(%rdx,%rbx,8), %rbx
	cmpq	(%rbx), %r11
	jg	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ecx, %eax
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%eax, %rcx
	movq	(%rdx,%rcx,8), %rcx
	cmpq	(%rcx), %r9
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%esi, %rsi
	movq	%rcx, (%rdx,%rsi,8)
	movq	(%r8), %rdx
	movq	(%rdx,%rsi,8), %rcx
	movl	%esi, 8(%rcx)
	leal	(%rax,%rax), %ecx
	movl	%eax, %esi
	cmpl	%r10d, %ecx
	jle	LBB0_9
	jmp	LBB0_15
LBB0_14:
	movl	%esi, %eax
LBB0_15:
	cltq
	movq	%rdi, (%rdx,%rax,8)
	movl	%eax, 8(%rdi)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_et_heap,8,3                    ## @et_heap
	.comm	_et_heap_size,4,2               ## @et_heap_size
	.no_dead_strip	_basic_et_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function basic_et_adjust
_basic_et_adjust:                       ; @basic_et_adjust
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _et_heap@GOTPAGE
Lloh1:
	ldr	x9, [x9, _et_heap@GOTPAGEOFF]
	cmp	w1, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	x10, [x0]
	ldr	x11, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w1, #1
	ldr	x12, [x11, w8, uxtw #3]
	ldr	x13, [x12]
	cmp	x13, x10
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w13, w1
	lsl	x13, x13, #3
	str	x12, [x11, x13]
	ldr	x11, [x9]
	ldr	x12, [x11, x13]
	str	w1, [x12, #8]
	cmp	w1, #3
	mov	x1, x8
	b.hi	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x8, x1
LBB0_5:
Lloh2:
	adrp	x10, _et_heap_size@GOTPAGE
Lloh3:
	ldr	x10, [x10, _et_heap_size@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x10]
	lsl	w13, w8, #1
	cmp	w13, w11
	b.le	LBB0_7
; %bb.6:
	ldr	x10, [x9]
	b	LBB0_14
LBB0_7:
	ldr	x12, [x0]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	w13, w11
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x14, w13
	ldr	x15, [x10, w13, sxtw #3]
	ldr	x15, [x15]
	orr	x14, x14, #0x1
	ldr	x16, [x10, x14, lsl #3]
	ldr	x16, [x16]
	cmp	x15, x16
	csel	w14, w14, w13, gt
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x14, x13
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x13, [x10, w14, sxtw #3]
	ldr	x15, [x13]
	cmp	x12, x15
	b.le	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	sbfiz	x15, x8, #3, #32
	str	x13, [x10, x15]
	ldr	x10, [x9]
	ldr	x13, [x10, x15]
	str	w8, [x13, #8]
	lsl	w13, w14, #1
	mov	x8, x14
	cmp	w13, w11
	b.le	LBB0_8
; %bb.13:
	mov	x8, x14
LBB0_14:
	str	x0, [x10, w8, sxtw #3]
	str	w8, [x0, #8]
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_et_heap,8,3                    ; @et_heap
	.comm	_et_heap_size,4,2               ; @et_heap_size
	.no_dead_strip	_basic_et_adjust
.subsections_via_symbols
