	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_SetTagName      ## -- Begin function HPDF_TTFontDef_SetTagName
	.p2align	4, 0x90
_HPDF_TTFontDef_SetTagName:             ## @HPDF_TTFontDef_SetTagName
	.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, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	8(%rdi), %r12
	movq	_HPDF_LIMIT_MAX_NAME_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_HPDF_StrLen
	movq	_HPDF_TTF_FONT_TAG_LEN@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.1:
	movq	(%r12), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_HPDF_MemCpy
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movb	$43, (%rax,%rcx)
	movq	%rbx, %r13
	movq	(%rbx), %r10
	cmpq	$-1, %r10
	je	LBB0_8
## %bb.2:
	movq	(%r12), %rsi
	movq	8(%r12), %rdi
	leaq	1(%r10), %rbx
	cmpq	$4, %rbx
	jae	LBB0_11
LBB0_3:
	xorl	%r9d, %r9d
LBB0_4:
	movq	%r9, %rax
	testb	$1, %r10b
	jne	LBB0_6
## %bb.5:
	movl	$0, (%rdi,%r9,8)
	movsbl	(%rsi,%r9), %eax
	movl	%eax, 4(%rdi,%r9,8)
	movq	%r9, %rax
	orq	$1, %rax
LBB0_6:
	cmpq	%r9, %r10
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rdi,%rax,8)
	movsbl	(%rsi,%rax), %ecx
	movl	%ecx, 4(%rdi,%rax,8)
	movl	$0, 8(%rdi,%rax,8)
	movsbl	1(%rsi,%rax), %ecx
	movl	%ecx, 12(%rdi,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %rbx
	jne	LBB0_7
LBB0_8:
	movq	_HPDF_LIMIT_MAX_NAME_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	incl	%edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_HPDF_MemSet
	movq	(%r12), %rsi
	movl	(%r13), %edx
	incl	%edx
	movq	%r15, %rdi
	callq	_HPDF_MemCpy
	movq	(%r13), %rdx
	leaq	(%r15,%rdx,4), %rdi
	addq	$4, %rdi
	movq	(%r14), %rsi
	notl	%edx
	addl	(%rbx), %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_HPDF_MemCpy
	movq	16(%r12), %rdi
	movl	(%rbx), %edx
	incl	%edx
	movq	%r15, %rsi
	callq	_HPDF_MemCpy
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$8, %edx
	movq	%r10, %rax
	mulq	%rdx
	seto	%r8b
	leaq	(%rdi,%rax), %rdx
	xorl	%r9d, %r9d
	cmpq	%rdi, %rdx
	jb	LBB0_4
## %bb.12:
	testb	%r8b, %r8b
	jne	LBB0_4
## %bb.13:
	leaq	4(%rdi), %rdx
	addq	%rdi, %rax
	addq	$4, %rax
	cmpq	%rdx, %rax
	jb	LBB0_4
## %bb.14:
	testb	%r8b, %r8b
	jne	LBB0_4
## %bb.15:
	leaq	(%r10,%rsi), %rax
	incq	%rax
	cmpq	%rdi, %rax
	jbe	LBB0_18
## %bb.16:
	leaq	(%rdi,%r10,8), %rax
	addq	$8, %rax
	cmpq	%rax, %rsi
	jb	LBB0_3
LBB0_18:
	movq	%rbx, %r9
	andq	$-4, %r9
	leaq	-4(%r9), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%r8, %rdx
	andq	$-2, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%rsi,%rax), %ecx
	movd	%ecx, %xmm0
	movzwl	2(%rsi,%rax), %ecx
	movd	%ecx, %xmm1
	pmovsxbd	%xmm0, %xmm0
	pmovsxbd	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	punpckldq	%xmm0, %xmm2            ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movdqu	%xmm2, (%rdi,%rax,8)
	pxor	%xmm0, %xmm0
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	movdqu	%xmm0, 16(%rdi,%rax,8)
	movzwl	4(%rsi,%rax), %ecx
	movd	%ecx, %xmm0
	movzwl	6(%rsi,%rax), %ecx
	movd	%ecx, %xmm1
	pmovsxbd	%xmm0, %xmm0
	pmovsxbd	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	punpckldq	%xmm0, %xmm2            ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movdqu	%xmm2, 32(%rdi,%rax,8)
	pxor	%xmm0, %xmm0
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	movdqu	%xmm0, 48(%rdi,%rax,8)
	addq	$8, %rax
	addq	$-2, %rdx
	jne	LBB0_20
	jmp	LBB0_22
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	testb	$1, %r8b
	je	LBB0_24
## %bb.23:
	movzwl	(%rsi,%rax), %ecx
	movd	%ecx, %xmm0
	movzwl	2(%rsi,%rax), %ecx
	movd	%ecx, %xmm1
	pmovsxbd	%xmm0, %xmm0
	pmovsxbd	%xmm1, %xmm1
	leaq	(,%rax,8), %rcx
	orq	$20, %rcx
	pxor	%xmm2, %xmm2
	pxor	%xmm3, %xmm3
	punpckldq	%xmm0, %xmm3            ## xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1]
	movdqu	%xmm3, (%rdi,%rax,8)
	punpckldq	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
	movdqu	%xmm2, -4(%rdi,%rcx)
LBB0_24:
	cmpq	%r9, %rbx
	jne	LBB0_4
	jmp	LBB0_8
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ## @HPDF_LIMIT_MAX_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFontDef_SetTagName\n"

	.comm	_HPDF_TTF_FONT_TAG_LEN,8,3      ## @HPDF_TTF_FONT_TAG_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_SetTagName      ; -- Begin function HPDF_TTFontDef_SetTagName
	.p2align	2
_HPDF_TTFontDef_SetTagName:             ; @HPDF_TTFontDef_SetTagName
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldrsw	x22, [x0, #8]
Lloh3:
	adrp	x23, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w1, [x23]
	mov	x0, x21
	bl	_HPDF_StrLen
Lloh9:
	adrp	x24, _HPDF_TTF_FONT_TAG_LEN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _HPDF_TTF_FONT_TAG_LEN@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	mov	x2, x0
	ldr	x0, [x22]
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_HPDF_MemCpy
	ldr	x8, [x22]
	ldr	x9, [x24]
	mov	w10, #43
	strb	w10, [x8, x9]
	ldr	x8, [x24]
	cmn	x8, #1
	b.eq	LBB0_6
; %bb.2:
	ldp	x10, x9, [x22]
	add	x12, x8, #1
	cmp	x12, #8
	b.hs	LBB0_9
LBB0_3:
	mov	x11, #0
LBB0_4:
	sub	x8, x8, x11
	add	x8, x8, #1
	add	x10, x10, x11
	add	x9, x9, x11, lsl #3
	add	x9, x9, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x9, #-4]
	ldrsb	w11, [x10], #1
	str	w11, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	w8, [x23]
	add	w2, w8, #1
	mov	x0, x19
	mov	w1, #0
	bl	_HPDF_MemSet
	ldr	x1, [x22]
	ldr	w8, [x24]
	add	w2, w8, #1
	mov	x0, x19
	bl	_HPDF_MemCpy
	ldr	x8, [x24]
	add	x9, x19, x8, lsl #2
	add	x0, x9, #4
	ldr	x1, [x20]
	ldr	w9, [x23]
	mvn	w8, w8
	add	w2, w9, w8
	bl	_HPDF_MemCpy
	ldr	x0, [x22, #16]
	ldr	w8, [x23]
	add	w2, w8, #1
	mov	x1, x19
	bl	_HPDF_MemCpy
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.8:
	sub	sp, x29, #48
	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_9:
	mov	x11, #0
	cmp	xzr, x8, lsr #61
	cset	w13, ne
	lsl	x14, x8, #3
	add	x15, x9, x14
	cmp	x15, x9
	b.lo	LBB0_4
; %bb.10:
	tbnz	w13, #0, LBB0_4
; %bb.11:
	add	x15, x9, #4
	add	x14, x15, x14
	cmp	x14, x15
	b.lo	LBB0_4
; %bb.12:
	tbnz	w13, #0, LBB0_4
; %bb.13:
	add	x11, x8, x10
	add	x11, x11, #1
	cmp	x11, x9
	b.ls	LBB0_15
; %bb.14:
	add	x11, x9, x8, lsl #3
	add	x11, x11, #8
	cmp	x10, x11
	b.lo	LBB0_3
LBB0_15:
	cmp	x12, #32
	b.hs	LBB0_17
; %bb.16:
	mov	x11, #0
	b	LBB0_21
LBB0_17:
	and	x11, x12, #0xffffffffffffffe0
	add	x13, x9, #128
	add	x14, x10, #16
	movi.2d	v0, #0000000000000000
	mov	x15, x11
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x14, #-16]
	sshll2.8h	v4, v2, #0
	sshll2.4s	v6, v4, #0
	sshll.4s	v17, v4, #0
	sshll.8h	v2, v2, #0
	sshll2.4s	v19, v2, #0
	sshll.4s	v1, v2, #0
	sshll.8h	v2, v3, #0
	sshll.4s	v21, v2, #0
	sshll2.4s	v23, v2, #0
	sshll2.8h	v2, v3, #0
	sshll.4s	v4, v2, #0
	sub	x16, x13, #128
	st2.4s	{ v0, v1 }, [x16]
	sub	x16, x13, #96
	mov.16b	v18, v0
	st2.4s	{ v18, v19 }, [x16]
	sub	x16, x13, #64
	mov.16b	v16, v0
	st2.4s	{ v16, v17 }, [x16]
	mov.16b	v20, v0
	mov.16b	v5, v0
	sub	x16, x13, #32
	st2.4s	{ v5, v6 }, [x16]
	mov	x16, x13
	st2.4s	{ v20, v21 }, [x16], #32
	sshll2.4s	v6, v2, #0
	mov.16b	v22, v0
	st2.4s	{ v22, v23 }, [x16]
	mov.16b	v3, v0
	add	x16, x13, #64
	st2.4s	{ v3, v4 }, [x16]
	mov.16b	v5, v0
	add	x16, x13, #96
	st2.4s	{ v5, v6 }, [x16]
	add	x13, x13, #256
	add	x14, x14, #32
	subs	x15, x15, #32
	b.ne	LBB0_18
; %bb.19:
	cmp	x12, x11
	b.eq	LBB0_6
; %bb.20:
	tst	x12, #0x18
	b.eq	LBB0_4
LBB0_21:
	mov	x14, x11
	and	x11, x12, #0xfffffffffffffff8
	add	x15, x9, x14, lsl #3
	add	x13, x10, x14
	sub	x14, x14, x11
	movi.2d	v0, #0000000000000000
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	d2, [x13], #8
	sshll.8h	v2, v2, #0
	sshll2.4s	v4, v2, #0
	sshll.4s	v1, v2, #0
	add	x16, x15, #64
	st2.4s	{ v0, v1 }, [x15], #32
	mov.16b	v3, v0
	st2.4s	{ v3, v4 }, [x15]
	mov	x15, x16
	adds	x14, x14, #8
	b.ne	LBB0_22
; %bb.23:
	cmp	x12, x11
	b.ne	LBB0_4
	b	LBB0_6
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ; @HPDF_LIMIT_MAX_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFontDef_SetTagName\n"

	.comm	_HPDF_TTF_FONT_TAG_LEN,8,3      ; @HPDF_TTF_FONT_TAG_LEN
.subsections_via_symbols
