	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_PadOrTrancatePasswd       ## -- Begin function HPDF_PadOrTrancatePasswd
	.p2align	4, 0x90
_HPDF_PadOrTrancatePasswd:              ## @HPDF_PadOrTrancatePasswd
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_HPDF_PASSWD_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	incq	%rsi
	callq	_HPDF_StrLen
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	(%r12), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_HPDF_MemSet
	movq	(%r12), %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_1
## %bb.3:
	testq	%rbx, %rbx
	jle	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_HPDF_MemCpy
	movq	(%r12), %rdx
LBB0_5:
	leaq	(%r15,%rbx,4), %rdi
	movq	_HPDF_PADDING_STRING@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%rbx, %rdx
	jmp	LBB0_2
LBB0_1:
	movq	%r15, %rdi
	movq	%r14, %rsi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_MemCpy                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_PASSWD_LEN,8,3            ## @HPDF_PASSWD_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_PadOrTrancatePasswd\n"

	.comm	_HPDF_PADDING_STRING,8,3        ## @HPDF_PADDING_STRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_PadOrTrancatePasswd       ; -- Begin function HPDF_PadOrTrancatePasswd
	.p2align	2
_HPDF_PadOrTrancatePasswd:              ; @HPDF_PadOrTrancatePasswd
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _HPDF_PASSWD_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HPDF_PASSWD_LEN@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, #1
	bl	_HPDF_StrLen
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_HPDF_MemSet
	ldr	x2, [x22]
	cmp	x20, x2
	b.ge	LBB0_4
; %bb.1:
	cmp	x20, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_HPDF_MemCpy
	ldr	x2, [x22]
LBB0_3:
Lloh4:
	adrp	x8, _HPDF_PADDING_STRING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_PADDING_STRING@GOTPAGEOFF]
	add	x0, x19, x20, lsl #2
Lloh6:
	ldr	x1, [x8]
	sub	x2, x2, x20
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
LBB0_5:
	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_MemCpy
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_PASSWD_LEN,8,3            ; @HPDF_PASSWD_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_PadOrTrancatePasswd\n"

	.comm	_HPDF_PADDING_STRING,8,3        ; @HPDF_PADDING_STRING
.subsections_via_symbols
