	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Name_SetValue             ## -- Begin function HPDF_Name_SetValue
	.p2align	4, 0x90
_HPDF_Name_SetValue:                    ## @HPDF_Name_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_2
## %bb.4:
	movq	_HPDF_LIMIT_MAX_NAME_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	callq	_HPDF_StrLen
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	jle	LBB0_6
## %bb.5:
	movl	8(%r14), %edi
	movq	_HPDF_NAME_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	8(%r14), %edi
	movq	_HPDF_NAME_INVALID_VALUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_6:
	movq	(%r14), %rdi
	addq	%rdi, %rdx
	movq	%rbx, %rsi
	callq	_HPDF_StrCpy
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_NAME_INVALID_VALUE,4,2    ## @HPDF_NAME_INVALID_VALUE
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,8,3    ## @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_NAME_OUT_OF_RANGE,4,2     ## @HPDF_NAME_OUT_OF_RANGE
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Name_SetValue             ; -- Begin function HPDF_Name_SetValue
	.p2align	2
_HPDF_Name_SetValue:                    ; @HPDF_Name_SetValue
	.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, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x21, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x19
	bl	_HPDF_StrLen
	ldr	x8, [x21]
	cmp	x0, x8
	b.le	LBB0_6
; %bb.3:
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _HPDF_NAME_OUT_OF_RANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_NAME_OUT_OF_RANGE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20, #8]
Lloh4:
	adrp	x8, _HPDF_NAME_INVALID_VALUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_NAME_INVALID_VALUE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	w2, #0
	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_SetError
LBB0_6:
	ldr	x0, [x20]
	add	x2, x0, x8
	mov	x1, x19
	bl	_HPDF_StrCpy
Lloh6:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_NAME_INVALID_VALUE,4,2    ; @HPDF_NAME_INVALID_VALUE
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,8,3    ; @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_NAME_OUT_OF_RANGE,4,2     ; @HPDF_NAME_OUT_OF_RANGE
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
.subsections_via_symbols
