	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdb_b64_encode
_sdb_b64_encode:                        ## @sdb_b64_encode
	.cfi_startproc
## %bb.0:
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_cb64@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	movl	(%rdi), %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	movb	(%rax,%rcx), %al
	movb	%al, (%rsi)
	movq	(%r8), %r9
	movl	(%rdi), %eax
	shll	$4, %eax
	andl	$48, %eax
	cmpl	$1, %edx
	jne	LBB0_3
## %bb.2:
	movb	(%r9,%rax), %al
	movb	%al, 1(%rsi)
	movb	$61, 2(%rsi)
	jmp	LBB0_6
LBB0_3:
	movl	4(%rdi), %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	orq	%rax, %rcx
	movb	(%r9,%rcx), %al
	movb	%al, 1(%rsi)
	movq	(%r8), %rcx
	movl	4(%rdi), %eax
	shll	$2, %eax
	andl	$60, %eax
	cmpl	$2, %edx
	jbe	LBB0_5
## %bb.4:
	movl	8(%rdi), %edx
	shrl	$6, %edx
	andl	$3, %edx
	orl	%eax, %edx
	movb	(%rcx,%rdx), %al
	movb	%al, 2(%rsi)
	movq	(%r8), %rax
	movl	8(%rdi), %ecx
	andl	$63, %ecx
	movb	(%rax,%rcx), %al
	jmp	LBB0_7
LBB0_5:
	movb	(%rcx,%rax), %al
	movb	%al, 2(%rsi)
LBB0_6:
	movb	$61, %al
LBB0_7:
	movb	%al, 3(%rsi)
	popq	%rbp
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cb64,8,3                       ## @cb64
	.no_dead_strip	_sdb_b64_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdb_b64_encode
_sdb_b64_encode:                        ; @sdb_b64_encode
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _cb64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cb64@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	w10, [x0]
	asr	w10, w10, #2
	ldrb	w9, [x9, w10, sxtw]
	strb	w9, [x1]
	ldr	x9, [x8]
	ldr	w10, [x0]
	lsl	w10, w10, #4
	and	x10, x10, #0x30
	cmp	w2, #1
	b.ne	LBB0_3
; %bb.2:
	ldrb	w8, [x9, x10]
	strb	w8, [x1, #1]
	mov	w8, #61
	strb	w8, [x1, #2]
	b	LBB0_6
LBB0_3:
	ldr	w11, [x0, #4]
	ubfx	x11, x11, #4, #4
	orr	x10, x11, x10
	ldrb	w9, [x9, x10]
	strb	w9, [x1, #1]
	ldr	x9, [x8]
	ldr	w10, [x0, #4]
	lsl	w10, w10, #2
	and	x10, x10, #0x3c
	cmp	w2, #2
	b.ls	LBB0_5
; %bb.4:
	ldr	w11, [x0, #8]
	ubfx	x11, x11, #6, #2
	mov	w10, w10
	orr	x10, x11, x10
	ldrb	w9, [x9, x10]
	strb	w9, [x1, #2]
	ldr	x8, [x8]
	ldr	w9, [x0, #8]
	and	x9, x9, #0x3f
	ldrb	w8, [x8, x9]
	b	LBB0_6
LBB0_5:
	ldrb	w8, [x9, x10]
	strb	w8, [x1, #2]
	mov	w8, #61
LBB0_6:
	strb	w8, [x1, #3]
LBB0_7:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cb64,8,3                       ; @cb64
	.no_dead_strip	_sdb_b64_encode
.subsections_via_symbols
