	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createPaddedCopyWithLength
_createPaddedCopyWithLength:            ## @createPaddedCopyWithLength
	.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	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	(%rsi), %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	leal	63(%r15), %ebx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	andl	$-64, %ebx
	leal	56(%rbx), %eax
	addl	$120, %ebx
	cmpl	%r15d, %eax
	cmovgl	%eax, %ebx
	leal	8(%rbx), %eax
	movl	%eax, (%rsi)
	leal	32(,%rbx,4), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	leal	(,%r15,4), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_memcpy
LBB0_7:
	movslq	%r15d, %rax
	movl	$128, (%r12,%rax,4)
	leal	1(%r15), %eax
	cmpl	%ebx, %eax
	jge	LBB0_9
## %bb.8:
	cltq
	leaq	(%r12,%rax,4), %rdi
	movl	%ebx, %eax
	subl	%r15d, %eax
	addl	$-2, %eax
	leaq	4(,%rax,4), %rsi
	callq	___bzero
LBB0_9:
	movl	%r15d, %eax
	sarl	$29, %eax
	leal	(,%r15,8), %ecx
	movzbl	%cl, %edx
	movslq	%ebx, %rsi
	movl	%edx, (%r12,%rsi,4)
	movl	%r15d, %edx
	shrl	$5, %edx
	movzbl	%dl, %edx
	movl	%edx, 4(%r12,%rsi,4)
	movl	%r15d, %edx
	shrl	$13, %edx
	movzbl	%dl, %edx
	movl	%edx, 8(%r12,%rsi,4)
	shrl	$24, %ecx
	movl	%ecx, 12(%r12,%rsi,4)
	movzbl	%al, %eax
	movl	%eax, 16(%r12,%rsi,4)
	sarl	$31, %r15d
	movzbl	%r15b, %eax
	movl	%eax, 20(%r12,%rsi,4)
	movl	%eax, 24(%r12,%rsi,4)
	movl	%eax, 28(%r12,%rsi,4)
	jmp	LBB0_10
LBB0_4:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_createPaddedCopyWithLength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createPaddedCopyWithLength
_createPaddedCopyWithLength:            ; @createPaddedCopyWithLength
	.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	x0, LBB0_2
; %bb.1:
	ldr	w21, [x1]
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	negs	w8, w21
	and	w8, w8, #0x3f
	and	w9, w21, #0x3f
	csneg	w8, w9, w8, mi
	sub	w8, w21, w8
	add	w9, w8, #56
	add	w8, w8, #120
	cmp	w9, w21
	csel	w22, w9, w8, gt
	add	w8, w22, #8
	str	w8, [x1]
	lsl	w0, w8, #2
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.4:
	cbz	x20, LBB0_6
; %bb.5:
	lsl	w2, w21, #2
	mov	x0, x19
	mov	x1, x20
	bl	_memcpy
LBB0_6:
	mov	w8, #128
	str	w8, [x19, w21, sxtw #2]
	add	w8, w21, #1
	cmp	w8, w22
	b.ge	LBB0_8
; %bb.7:
	add	x0, x19, w8, sxtw #2
	sub	w8, w22, w21
	sub	w8, w8, #2
	lsl	x8, x8, #2
	add	x1, x8, #4
	bl	_bzero
LBB0_8:
	lsl	w8, w21, #3
	and	w8, w8, #0xf8
	add	x9, x19, w22, sxtw #2
	ubfx	w10, w21, #5, #8
	stp	w8, w10, [x9]
	ubfx	w8, w21, #13, #8
	ubfx	w10, w21, #21, #8
	stp	w8, w10, [x9, #8]
	asr	w8, w21, #29
	and	w8, w8, #0xff
	asr	w10, w21, #31
	and	w10, w10, #0xff
	stp	w8, w10, [x9, #16]
	stp	w10, w10, [x9, #24]
LBB0_9:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_createPaddedCopyWithLength
.subsections_via_symbols
