	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_GetMem                    ## -- Begin function HPDF_GetMem
	.p2align	4, 0x90
_HPDF_GetMem:                           ## @HPDF_GetMem
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rax), %edx
	movslq	4(%rax), %rcx
	subl	%ecx, %edx
	cmpl	%r15d, %edx
	jge	LBB0_2
## %bb.3:
	movl	(%r14), %ebx
	cmpl	%r15d, %ebx
	cmovlel	%r15d, %ebx
	leal	4(%rbx), %edi
	callq	*16(%r14)
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_HPDF_PTRACE
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:
	movl	%ebx, (%r12)
	movq	24(%r14), %rax
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	%rax, 16(%r12)
	movq	%r12, 24(%r14)
	movl	%r15d, 4(%r12)
	movq	%rbx, 8(%r12)
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %edi
	callq	*16(%r14)
	movq	%rax, %rbx
	movslq	%r15d, %rdi
	callq	_HPDF_PTRACE
	testq	%rbx, %rbx
	jne	LBB0_7
LBB0_6:
	movl	8(%r14), %edi
	movq	_HPDF_FAILD_TO_ALLOC_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HPDF_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_SetError
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	%rcx, %rbx
	shlq	$2, %rbx
	addq	8(%rax), %rbx
	addl	%ecx, %r15d
	movl	%r15d, 4(%rax)
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_FAILD_TO_ALLOC_MEM,4,2    ## @HPDF_FAILD_TO_ALLOC_MEM
	.comm	_HPDF_NOERROR,4,2               ## @HPDF_NOERROR
	.comm	_HPDF_ALINMENT_SIZ,4,2          ## @HPDF_ALINMENT_SIZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_GetMem                    ; -- Begin function HPDF_GetMem
	.p2align	2
_HPDF_GetMem:                           ; @HPDF_GetMem
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldp	w10, w9, [x8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	sub	w10, w10, w9
	cmp	w10, w20
	b.ge	LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w20
	csel	w23, w8, w20, gt
	ldr	x8, [x19, #16]
	add	w0, w23, #4
	blr	x8
	mov	x22, x0
	bl	_HPDF_PTRACE
	cbz	x22, LBB0_7
; %bb.3:
	ldr	x8, [x19, #24]
	mov	x21, x22
	str	x8, [x21, #16]!
	str	x22, [x19, #24]
	stp	w23, w20, [x22]
	str	x21, [x22, #8]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #16]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	sxtw	x0, w20
	bl	_HPDF_PTRACE
	cbnz	x21, LBB0_8
; %bb.5:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HPDF_NOERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPDF_NOERROR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_HPDF_SetError
	b	LBB0_8
LBB0_6:
	ldr	x10, [x8, #8]
	add	x21, x10, x9, lsl #2
	add	w9, w9, w20
	str	w9, [x8, #4]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HPDF_NOERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_NOERROR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_HPDF_SetError
	mov	x21, #0
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_FAILD_TO_ALLOC_MEM,4,2    ; @HPDF_FAILD_TO_ALLOC_MEM
	.comm	_HPDF_NOERROR,4,2               ; @HPDF_NOERROR
	.comm	_HPDF_ALINMENT_SIZ,4,2          ; @HPDF_ALINMENT_SIZ
.subsections_via_symbols
