	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Resize
_Resize:                                ## @Resize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	cmpl	%r14d, (%rbx)
	jge	LBB0_1
## %bb.3:
	movl	20(%rbx), %edi
	leal	(,%r14,8), %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r15
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movl	16(%rbx), %edx
	shll	$3, %edx
	movq	%r15, %rdi
	callq	_HPDF_MemCpy
	movq	8(%rbx), %rsi
	movl	%r14d, 16(%rbx)
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	20(%rbx), %edi
	callq	_HPDF_FreeMem
	jmp	LBB0_8
LBB0_1:
	je	LBB0_9
## %bb.2:
	movq	_HPDF_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	24(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
LBB0_5:
	movl	%r14d, 16(%rbx)
LBB0_8:
	movq	%r15, 8(%rbx)
LBB0_9:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_List_Resize\n"

	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
	.comm	_HPDF_INVALID_PARAMETER,4,2     ## @HPDF_INVALID_PARAMETER
	.no_dead_strip	_Resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Resize
_Resize:                                ; @Resize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w8, [x19]
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.1:
	ldr	w0, [x19, #20]
	lsl	w1, w20, #3
	bl	_HPDF_GetMem
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_8
; %bb.3:
	ldr	w8, [x19, #16]
	lsl	w2, w8, #3
	mov	x0, x21
	bl	_HPDF_MemCpy
	ldr	x1, [x19, #8]
	str	w20, [x19, #16]
	cbz	x1, LBB0_9
; %bb.4:
	ldr	w0, [x19, #20]
	bl	_HPDF_FreeMem
	b	LBB0_9
LBB0_5:
	b.eq	LBB0_10
; %bb.6:
Lloh2:
	adrp	x8, _HPDF_INVALID_PARAMETER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w0, [x19, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_HPDF_Error_GetCode
LBB0_8:
	str	w20, [x19, #16]
LBB0_9:
	str	x21, [x19, #8]
LBB0_10:
Lloh4:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_List_Resize\n"

	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
	.comm	_HPDF_INVALID_PARAMETER,4,2     ; @HPDF_INVALID_PARAMETER
	.no_dead_strip	_Resize
.subsections_via_symbols
