	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pack_m
_pack_m:                                ## @pack_m
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_RSTRING_LEN
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	$45, %eax
	cmpq	$3, %r14
	jl	LBB0_6
LBB0_4:
	cmpq	$3, %r14
	jb	LBB0_9
## %bb.5:
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	movq	%r14, %rax
	mulq	%rcx
	shrq	%rdx
	leaq	(%rdx,%rdx,2), %rax
LBB0_6:
	leal	2(%r13), %ecx
	movslq	%ecx, %rcx
	imulq	$1431655766, %rcx, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	shll	$2, %ecx
	movq	%rax, %r14
LBB0_7:
	movslq	%r13d, %rax
	movq	%rax, %rdx
	orq	%r14, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.11:
	cqto
	idivq	%r14
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_8:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:
	cmpq	$1, %rdx
	sbbl	$-1, %eax
	addl	%eax, %ecx
	movb	$1, %al
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_13:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addl	%r12d, %ecx
	movl	%ecx, %edx
	callq	_str_len_ensure
	movl	%eax, %edi
	callq	_RSTRING_PTR
	movslq	%r12d, %r8
	addq	%rax, %r8
	movl	$3, %r10d
	cmpl	$3, %r13d
	jl	LBB0_14
## %bb.15:
	movl	$3, %r10d
	movq	_base64chars@GOTPCREL(%rip), %r9
	movq	%r8, %rax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movb	$10, 4(%rax)
	addq	$5, %rax
	xorl	%r10d, %r10d
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	leal	-3(%r13), %ecx
	addl	$3, %r10d
	leaq	3(%r11), %r15
	cmpl	$5, %r13d
	movl	%ecx, %r13d
	jle	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r11
	movzbl	(%r15), %edx
	movl	%edx, %ebx
	shll	$16, %ebx
	movzbl	1(%r15), %ecx
	shll	$8, %ecx
	orl	%ecx, %ebx
	shrl	$9, %ebx
	movzbl	2(%r15), %esi
	orl	%esi, %ecx
	shrl	$3, %ecx
	movq	(%r9), %rdi
	andl	$-4, %edx
	movzbl	(%rdi,%rdx,2), %edx
	movb	%dl, (%rax)
	movq	(%r9), %rdx
	andl	$504, %ebx                      ## imm = 0x1F8
	movzbl	(%rdx,%rbx), %edx
	movb	%dl, 1(%rax)
	movq	(%r9), %rdx
	andl	$504, %ecx                      ## imm = 0x1F8
	movzbl	(%rdx,%rcx), %ecx
	movb	%cl, 2(%rax)
	movq	(%r9), %rcx
	andl	$63, %esi
	movzbl	(%rcx,%rsi,8), %ecx
	movb	%cl, 3(%rax)
	movslq	%r10d, %rcx
	cmpq	%rcx, %r14
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	$4, %rax
	jmp	LBB0_19
LBB0_14:
	movl	%r13d, %ecx
	movq	%r8, %rax
	jmp	LBB0_21
LBB0_20:
	addq	$3, %r11
	movq	%r11, %r15
LBB0_21:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$2, %ecx
	je	LBB0_24
## %bb.22:
	cmpl	$1, %ecx
	jne	LBB0_26
## %bb.23:
	movzbl	(%r15), %ecx
	movl	%ecx, %edx
	shll	$4, %edx
	movq	_base64chars@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	andl	$-4, %ecx
	movb	(%rdi,%rcx,2), %cl
	movb	%cl, (%rax)
	movq	(%rsi), %rcx
	andl	$48, %edx
	movb	(%rcx,%rdx,8), %cl
	movb	%cl, 1(%rax)
	movb	$61, 2(%rax)
	jmp	LBB0_25
LBB0_24:
	movzbl	(%r15), %edx
	movl	%edx, %esi
	shll	$16, %esi
	movzbl	1(%r15), %ecx
	movl	%ecx, %edi
	shll	$8, %edi
	orl	%esi, %edi
	shrl	$9, %edi
	movq	_base64chars@GOTPCREL(%rip), %r9
	movq	(%r9), %rsi
	andl	$-4, %edx
	movb	(%rsi,%rdx,2), %dl
	movb	%dl, (%rax)
	movq	(%r9), %rdx
	andl	$504, %edi                      ## imm = 0x1F8
	movb	(%rdx,%rdi), %dl
	movb	%dl, 1(%rax)
	movq	(%r9), %rdx
	shll	$2, %ecx
	andl	$60, %ecx
	movb	(%rdx,%rcx,8), %cl
	movb	%cl, 2(%rax)
LBB0_25:
	movb	$61, 3(%rax)
	addq	$4, %rax
	addl	$3, %r10d
LBB0_26:
	testl	%r10d, %r10d
	setle	%cl
	xorb	$1, %bl
	orb	%cl, %bl
	jne	LBB0_28
## %bb.27:
	movb	$10, (%rax)
	incq	%rax
LBB0_28:
	subl	%r8d, %eax
LBB0_29:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leal	2(%r13), %eax
	cltq
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
	shll	$2, %ecx
	testq	%r14, %r14
	jne	LBB0_7
## %bb.10:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_base64chars,8,3                ## @base64chars
	.no_dead_strip	_pack_m
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pack_m
_pack_m:                                ; @pack_m
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
	mov	x0, x1
	bl	_RSTRING_PTR
	mov	x19, x0
	mov	x0, x20
	bl	_RSTRING_LEN
	cbz	w0, LBB0_23
; %bb.1:
	mov	x20, x0
	cbz	x21, LBB0_4
; %bb.2:
	cmp	x21, #3
	b.ge	LBB0_4
; %bb.3:
	mov	w21, #45
	b	LBB0_6
LBB0_4:
	cmp	x21, #3
	b.lo	LBB0_24
; %bb.5:
	mov	x8, #-6148914691236517206
	movk	x8, #43691
	umulh	x8, x21, x8
	lsr	x8, x8, #1
	add	x21, x8, x8, lsl #1
LBB0_6:
	add	w8, w20, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	lsl	w8, w8, #2
LBB0_7:
	sxtw	x9, w20
	sdiv	x10, x9, x21
	msub	x9, x10, x21, x9
	cmp	x9, #0
	cinc	w9, w10, ne
	add	w8, w8, w9
	mov	w25, #1
LBB0_8:
	add	w2, w8, w22
	mov	x0, x24
	mov	x1, x23
	bl	_str_len_ensure
	bl	_RSTRING_PTR
	add	x8, x0, w22, sxtw
	mov	w10, #3
	cmp	w20, #3
	b.lt	LBB0_14
; %bb.9:
Lloh0:
	adrp	x11, _base64chars@GOTPAGE
Lloh1:
	ldr	x11, [x11, _base64chars@GOTPAGEOFF]
	mov	w12, #10
	mov	x9, x8
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w10, #0
	strb	w12, [x9, #4]
	add	x9, x9, #5
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x19, x19, #3
	sub	w13, w20, #3
	add	w10, w10, #3
	cmp	w20, #5
	mov	x20, x13
	b.le	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x19]
	ldrb	w14, [x19, #1]
	lsl	w15, w14, #8
	bfi	w15, w13, #16, #8
	ldrb	w16, [x19, #2]
	ldr	x17, [x11]
	lsl	w13, w13, #1
	and	x13, x13, #0x1f8
	ldr	x13, [x17, x13]
	and	x17, x16, #0x3f
                                        ; kill: def $w16 killed $w16 killed $x16 def $x16
	strb	w13, [x9]
	ldr	x13, [x11]
	ubfx	x15, x15, #12, #6
	ldr	x13, [x13, x15, lsl #3]
	bfi	w16, w14, #8, #8
	strb	w13, [x9, #1]
	ldr	x13, [x11]
	ubfx	x14, x16, #6, #6
	ldr	x13, [x13, x14, lsl #3]
	strb	w13, [x9, #2]
	ldr	x13, [x11]
	ldr	x13, [x13, x17, lsl #3]
	strb	w13, [x9, #3]
	cmp	x21, w10, sxtw
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #4
	b	LBB0_11
LBB0_14:
	mov	x9, x8
	cmp	w20, #2
	b.eq	LBB0_18
LBB0_15:
	cmp	w20, #1
	b.ne	LBB0_20
; %bb.16:
	ldrb	w11, [x19]
	lsl	w12, w11, #4
Lloh2:
	adrp	x13, _base64chars@GOTPAGE
Lloh3:
	ldr	x13, [x13, _base64chars@GOTPAGEOFF]
	ldr	x14, [x13]
	lsl	w11, w11, #1
	and	x11, x11, #0x1f8
	ldr	x11, [x14, x11]
	strb	w11, [x9]
	ldr	x11, [x13]
	and	x12, x12, #0x30
	ldr	x11, [x11, x12, lsl #3]
	strb	w11, [x9, #1]
	mov	w11, #61
	strb	w11, [x9, #2]
	b	LBB0_19
LBB0_17:
	mov	x20, x13
	cmp	w20, #2
	b.ne	LBB0_15
LBB0_18:
	ldrb	w11, [x19]
	lsl	w12, w11, #16
	ldrb	w13, [x19, #1]
Lloh4:
	adrp	x14, _base64chars@GOTPAGE
Lloh5:
	ldr	x14, [x14, _base64chars@GOTPAGEOFF]
	bfi	w12, w13, #8, #8
	ldr	x15, [x14]
	lsl	w11, w11, #1
	and	x11, x11, #0x1f8
	ldr	x11, [x15, x11]
	strb	w11, [x9]
	ldr	x11, [x14]
	ubfx	x12, x12, #12, #6
	ldr	x11, [x11, x12, lsl #3]
	strb	w11, [x9, #1]
	ldr	x11, [x14]
	lsl	w12, w13, #2
	and	x12, x12, #0x3c
	ldr	x11, [x11, x12, lsl #3]
	strb	w11, [x9, #2]
LBB0_19:
	mov	w11, #61
	strb	w11, [x9, #3]
	add	x9, x9, #4
	add	w10, w10, #3
LBB0_20:
	cmp	w10, #1
	cset	w10, lt
	eor	w11, w25, #0x1
	orr	w10, w11, w10
	tbnz	w10, #0, LBB0_22
; %bb.21:
	mov	w10, #10
	strb	w10, [x9], #1
LBB0_22:
	sub	w0, w9, w8
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:
	add	w8, w20, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	lsl	w8, w8, #2
	cbnz	x21, LBB0_7
; %bb.25:
	mov	w25, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_base64chars,8,3                ; @base64chars
	.no_dead_strip	_pack_m
.subsections_via_symbols
