	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stack_push
_stack_push:                            ## @stack_push
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.4:
	movq	8(%rbx), %rax
	cmpl	4(%rbx), %esi
	jne	LBB0_8
## %bb.5:
	shll	$3, %esi
	movq	%rax, %rdi
	callq	_heap_realloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, 8(%rbx)
	movl	(%rbx), %ecx
	addl	%ecx, %ecx
	jmp	LBB0_7
LBB0_1:
	movl	$64, %edi
	callq	_heap_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$16, %ecx
LBB0_7:
	movl	%ecx, (%rbx)
LBB0_8:
	movslq	4(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 4(%rbx)
	movl	%r14d, (%rax,%rcx,4)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movl	%r14d, %edi
	callq	_jsval_release
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_stack_push
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stack_push
_stack_push:                            ; @stack_push
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w9, [x20, #4]
	ldr	x0, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.2:
	lsl	w1, w8, #3
	bl	_heap_realloc
	cbz	x0, LBB0_8
; %bb.3:
	str	x0, [x20, #8]
	ldr	w8, [x20]
	lsl	w8, w8, #1
	b	LBB0_6
LBB0_4:
	mov	w0, #64
	bl	_heap_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.5:
	mov	w8, #16
LBB0_6:
	str	w8, [x20]
LBB0_7:
	ldrsw	x8, [x20, #4]
	add	w9, w8, #1
	str	w9, [x20, #4]
	str	w19, [x0, x8, lsl #2]
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_jsval_release
LBB0_9:
Lloh2:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_stack_push
.subsections_via_symbols
