	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Hunk_AllocateTempMemory        ## -- Begin function Hunk_AllocateTempMemory
	.p2align	4, 0x90
_Hunk_AllocateTempMemory:               ## @Hunk_AllocateTempMemory
	.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
	movl	%edi, %ebx
	movq	_s_hunkData@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	callq	_Hunk_SwapBanks
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_PAD
	movl	%eax, %r15d
	addl	$8, %r15d
	movq	_hunk_temp@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_hunk_permanent@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx), %rcx
	movslq	%r15d, %rbx
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	addq	%rcx, %rdx
	movq	_s_hunkTotal@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdx
	jle	LBB0_3
## %bb.2:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_Com_Error
	movq	(%r12), %rax
LBB0_3:
	cmpq	_hunk_low@GOTPCREL(%rip), %rax
	je	LBB0_4
## %bb.5:
	addq	(%rax), %rbx
	movq	%rbx, (%rax)
	movq	(%r13), %rcx
	shlq	$2, %rcx
	addq	(%r14), %rcx
	leaq	(,%rbx,4), %rdx
	subq	%rdx, %rcx
	cmpq	%rbx, 8(%rax)
	jae	LBB0_8
LBB0_7:
	movq	%rbx, 8(%rax)
LBB0_8:
	leaq	8(%rcx), %rax
	movq	_HUNK_MAGIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rcx)
	movl	%r15d, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Z_Malloc                       ## TAILCALL
LBB0_4:
	movq	_hunk_low@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(,%rsi,4), %rcx
	addq	(%r14), %rcx
	addq	%rsi, %rbx
	movq	%rbx, (%rdx)
	cmpq	%rbx, 8(%rax)
	jb	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_s_hunkData,8,3                 ## @s_hunkData
	.comm	_hunk_temp,8,3                  ## @hunk_temp
	.comm	_hunk_permanent,8,3             ## @hunk_permanent
	.comm	_s_hunkTotal,8,3                ## @s_hunkTotal
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hunk_AllocateTempMemory: failed on %i"

	.comm	_hunk_low,16,3                  ## @hunk_low
	.comm	_HUNK_MAGIC,4,2                 ## @HUNK_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Hunk_AllocateTempMemory        ; -- Begin function Hunk_AllocateTempMemory
	.p2align	2
_Hunk_AllocateTempMemory:               ; @Hunk_AllocateTempMemory
	.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, x0
Lloh0:
	adrp	x20, _s_hunkData@GOTPAGE
Lloh1:
	ldr	x20, [x20, _s_hunkData@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
	bl	_Hunk_SwapBanks
	mov	x0, x19
	mov	w1, #8
	bl	_PAD
	add	w19, w0, #8
Lloh2:
	adrp	x23, _hunk_temp@GOTPAGE
Lloh3:
	ldr	x23, [x23, _hunk_temp@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x8]
Lloh4:
	adrp	x10, _hunk_permanent@GOTPAGE
Lloh5:
	ldr	x10, [x10, _hunk_permanent@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	ldrsw	x10, [x10]
	sxtw	x21, w19
	add	x9, x9, x21
	add	x9, x9, x10
Lloh7:
	adrp	x22, _s_hunkTotal@GOTPAGE
Lloh8:
	ldr	x22, [x22, _s_hunkTotal@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x9, x10
	b.le	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_Com_Error
	ldr	x8, [x23]
LBB0_3:
Lloh14:
	adrp	x11, _hunk_low@GOTPAGE
Lloh15:
	ldr	x11, [x11, _hunk_low@GOTPAGEOFF]
	cmp	x8, x11
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x8]
	add	x10, x9, x21
	str	x10, [x8]
	ldr	x9, [x20]
	ldr	x11, [x22]
	add	x9, x9, x11, lsl #2
	sub	x9, x9, x10, lsl #2
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	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
	b	_Z_Malloc
LBB0_6:
	ldr	x9, [x20]
	ldr	x10, [x11]
	add	x9, x9, x10, lsl #2
	add	x10, x10, x21
	str	x10, [x11]
LBB0_7:
	ldr	x11, [x8, #8]
	cmp	x11, x10
	b.hs	LBB0_9
; %bb.8:
	str	x10, [x8, #8]
LBB0_9:
	add	x0, x9, #8
Lloh16:
	adrp	x8, _HUNK_MAGIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HUNK_MAGIC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w19, w8, [x9]
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_s_hunkData,8,3                 ; @s_hunkData
	.comm	_hunk_temp,8,3                  ; @hunk_temp
	.comm	_hunk_permanent,8,3             ; @hunk_permanent
	.comm	_s_hunkTotal,8,3                ; @s_hunkTotal
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hunk_AllocateTempMemory: failed on %i"

	.comm	_hunk_low,16,3                  ; @hunk_low
	.comm	_HUNK_MAGIC,4,2                 ; @HUNK_MAGIC
.subsections_via_symbols
