	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_String_SetValue           ## -- Begin function HPDF_String_SetValue
	.p2align	4, 0x90
_HPDF_String_SetValue:                  ## @HPDF_String_SetValue
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	20(%rbx), %edi
	callq	_HPDF_FreeMem
	movq	$0, (%rbx)
LBB0_2:
	movq	_HPDF_LIMIT_MAX_STRING_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_HPDF_StrLen
	cmpq	(%r13), %rax
	jle	LBB0_3
## %bb.5:
	movl	16(%rbx), %edi
	movq	_HPDF_STRING_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_3:
	movq	%rax, %r12
	movl	20(%rbx), %edi
	leaq	1(%rax), %rsi
	callq	_HPDF_GetMem
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rdx
	addq	%r12, %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_HPDF_StrCpy
	movq	%r12, (%rbx)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	16(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_String_SetValue\n"

	.comm	_HPDF_LIMIT_MAX_STRING_LEN,8,3  ## @HPDF_LIMIT_MAX_STRING_LEN
	.comm	_HPDF_STRING_OUT_OF_RANGE,4,2   ## @HPDF_STRING_OUT_OF_RANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_String_SetValue           ; -- Begin function HPDF_String_SetValue
	.p2align	2
_HPDF_String_SetValue:                  ; @HPDF_String_SetValue
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #20]
	bl	_HPDF_FreeMem
	str	xzr, [x19]
LBB0_2:
Lloh5:
	adrp	x23, _HPDF_LIMIT_MAX_STRING_LEN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HPDF_LIMIT_MAX_STRING_LEN@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x21
	bl	_HPDF_StrLen
	ldr	x8, [x23]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh7:
	adrp	x8, _HPDF_STRING_OUT_OF_RANGE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_STRING_OUT_OF_RANGE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	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	_HPDF_SetError
LBB0_4:
	mov	x22, x0
	ldr	w0, [x19, #20]
	add	x1, x22, #1
	bl	_HPDF_GetMem
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	add	x2, x0, x22
	mov	x1, x21
	bl	_HPDF_StrCpy
	str	x22, [x19]
	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
LBB0_6:
	ldr	w0, [x19, #16]
	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	_HPDF_Error_GetCode
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_String_SetValue\n"

	.comm	_HPDF_LIMIT_MAX_STRING_LEN,8,3  ; @HPDF_LIMIT_MAX_STRING_LEN
	.comm	_HPDF_STRING_OUT_OF_RANGE,4,2   ; @HPDF_STRING_OUT_OF_RANGE
.subsections_via_symbols
