	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_MMgr_New                  ## -- Begin function HPDF_MMgr_New
	.p2align	4, 0x90
_HPDF_MMgr_New:                         ## @HPDF_MMgr_New
	.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	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	$4, %edi
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	callq	*%r12
	jmp	LBB0_3
LBB0_2:
	callq	_InternalGetMem
LBB0_3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HPDF_PTRACE
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.4:
	movl	%r15d, 48(%rbx)
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:
	movq	%r12, 32(%rbx)
	jmp	LBB0_8
LBB0_13:
	movq	_HPDF_FAILD_TO_ALLOC_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HPDF_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_HPDF_SetError
	jmp	LBB0_14
LBB0_7:
	movq	_InternalGetMem@GOTPCREL(%rip), %r12
	movq	%r12, 32(%rbx)
	movq	_InternalFreeMem@GOTPCREL(%rip), %r13
LBB0_8:
	movq	%r13, 24(%rbx)
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:
	leaq	4(%r14), %rdi
	callq	*%r12
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_HPDF_PTRACE
	testq	%r12, %r12
	je	LBB0_16
## %bb.11:
	movq	%r12, 16(%rbx)
	movq	%r12, %rax
	addq	$16, %rax
	movq	%rax, 24(%r12)
	movq	%r14, 16(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	%r14, (%rbx)
	jmp	LBB0_15
LBB0_9:
	movq	$0, 16(%rbx)
	movq	%r14, (%rbx)
	jmp	LBB0_15
LBB0_16:
	movq	_HPDF_FAILD_TO_ALLOC_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HPDF_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_HPDF_SetError
	movq	%rbx, %rdi
	callq	*24(%rbx)
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_MMgr_New\n"

	.comm	_HPDF_FAILD_TO_ALLOC_MEM,4,2    ## @HPDF_FAILD_TO_ALLOC_MEM
	.comm	_HPDF_NOERROR,4,2               ## @HPDF_NOERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_MMgr_New                  ; -- Begin function HPDF_MMgr_New
	.p2align	2
_HPDF_MMgr_New:                         ; @HPDF_MMgr_New
	.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	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	w0, #4
	cbz	x22, LBB0_2
; %bb.1:
	blr	x22
	b	LBB0_3
LBB0_2:
	bl	_InternalGetMem
LBB0_3:
	mov	x20, x0
	bl	_HPDF_PTRACE
	cbz	x20, LBB0_9
; %bb.4:
	str	w21, [x20, #48]
	cbz	x22, LBB0_10
; %bb.5:
	cbz	x23, LBB0_10
; %bb.6:
	str	x22, [x20, #32]
	str	x23, [x20, #24]
	cbz	x19, LBB0_11
LBB0_7:
	add	x0, x19, #4
	blr	x22
	mov	x22, x0
	bl	_HPDF_PTRACE
	cbz	x22, LBB0_12
; %bb.8:
	str	x22, [x20, #16]
	mov	x8, x22
	str	x19, [x8, #16]!
	str	x8, [x22, #24]
	stp	xzr, xzr, [x22]
	str	x19, [x20]
	b	LBB0_13
LBB0_9:
Lloh2:
	adrp	x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _HPDF_NOERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HPDF_NOERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_HPDF_SetError
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x22, _InternalGetMem@GOTPAGE
Lloh9:
	ldr	x22, [x22, _InternalGetMem@GOTPAGEOFF]
	str	x22, [x20, #32]
Lloh10:
	adrp	x23, _InternalFreeMem@GOTPAGE
Lloh11:
	ldr	x23, [x23, _InternalFreeMem@GOTPAGEOFF]
	str	x23, [x20, #24]
	cbnz	x19, LBB0_7
LBB0_11:
	str	xzr, [x20, #16]
	str	x19, [x20]
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _HPDF_NOERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HPDF_NOERROR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_HPDF_SetError
	ldr	x8, [x20, #24]
	mov	x0, x20
	blr	x8
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_MMgr_New\n"

	.comm	_HPDF_FAILD_TO_ALLOC_MEM,4,2    ; @HPDF_FAILD_TO_ALLOC_MEM
	.comm	_HPDF_NOERROR,4,2               ; @HPDF_NOERROR
.subsections_via_symbols
