	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_b64_ntop                 ## -- Begin function sldns_b64_ntop
	.p2align	4, 0x90
_sldns_b64_ntop:                        ## @sldns_b64_ntop
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_sldns_b64_ntop_calculate_size
	movq	%rax, %rcx
	movl	$-1, %eax
	cmpq	%r14, %rcx
	ja	LBB0_13
## %bb.1:
	cmpq	$3, %r12
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	jmp	LBB0_6
LBB0_3:
	xorl	%edx, %edx
	leaq	L_.str(%rip), %r8
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rcx), %r9
	cmpq	%r14, %r9
	ja	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%rdx,4), %edi
	sarl	$2, %edi
	movslq	%edi, %rdi
	movzbl	(%rdi,%r8), %ebx
	movb	%bl, (%r15,%rcx)
	movl	(%r13,%rdx,4), %edi
	movl	4(%r13,%rdx,4), %ebx
	shll	$4, %edi
	andl	$48, %edi
	sarl	$4, %ebx
	movslq	%ebx, %rbx
	orq	%rdi, %rbx
	movzbl	(%rbx,%r8), %ebx
	movb	%bl, 1(%r15,%rcx)
	movl	4(%r13,%rdx,4), %edi
	movl	8(%r13,%rdx,4), %ebx
	shll	$2, %edi
	andl	$60, %edi
	sarl	$6, %ebx
	movslq	%ebx, %rbx
	orq	%rdi, %rbx
	movzbl	(%rbx,%r8), %ebx
	movb	%bl, 2(%r15,%rcx)
	movl	8(%r13,%rdx,4), %edi
	andl	$63, %edi
	movzbl	(%rdi,%r8), %ebx
	movb	%bl, 3(%r15,%rcx)
	leaq	3(%rdx), %rdi
	addq	$6, %rdx
	movq	%r9, %rcx
	cmpq	%r12, %rdx
	movq	%rdi, %rdx
	jbe	LBB0_4
LBB0_6:
	subq	%rdi, %r12
	cmpq	$1, %r12
	je	LBB0_9
## %bb.7:
	cmpq	$2, %r12
	jne	LBB0_11
## %bb.8:
	movl	(%r13,%rdi,4), %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	leaq	L_.str(%rip), %rdx
	movb	(%rcx,%rdx), %cl
	movb	%cl, (%r15,%r9)
	movl	(%r13,%rdi,4), %ecx
	movl	4(%r13,%rdi,4), %ebx
	shll	$4, %ecx
	andl	$48, %ecx
	sarl	$4, %ebx
	movslq	%ebx, %rbx
	orq	%rcx, %rbx
	movb	(%rbx,%rdx), %cl
	movq	%r9, %rsi
	orq	$1, %rsi
	movb	%cl, (%r15,%rsi)
	movl	4(%r13,%rdi,4), %ecx
	andl	$15, %ecx
	movb	(%rdx,%rcx,4), %cl
	jmp	LBB0_10
LBB0_9:
	movl	(%r13,%rdi,4), %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	leaq	L_.str(%rip), %rdx
	movb	(%rcx,%rdx), %cl
	movb	%cl, (%r15,%r9)
	movl	(%r13,%rdi,4), %ecx
	shll	$4, %ecx
	andl	$48, %ecx
	movb	(%rcx,%rdx), %cl
	movq	%r9, %rdx
	orq	$1, %rdx
	movb	%cl, (%r15,%rdx)
	movb	$61, %cl
LBB0_10:
	movq	%r9, %rdx
	orq	$2, %rdx
	movb	%cl, (%r15,%rdx)
	movq	%r9, %rcx
	orq	$3, %rcx
	movb	$61, (%r15,%rcx)
	addq	$4, %r9
LBB0_11:
	leaq	1(%r9), %rcx
	cmpq	%r14, %rcx
	ja	LBB0_13
## %bb.12:
	movb	$0, (%r15,%r9)
	movl	%r9d, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_b64_ntop                 ; -- Begin function sldns_b64_ntop
	.p2align	2
_sldns_b64_ntop:                        ; @sldns_b64_ntop
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_sldns_b64_ntop_calculate_size
	cmp	x0, x20
	b.hi	LBB0_12
; %bb.1:
	cmp	x22, #3
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	mov	x0, #0
	b	LBB0_6
LBB0_3:
	mov	x9, #0
	mov	x12, #0
	add	x8, x21, #8
Lloh0:
	adrp	x10, l_.str@PAGE
Lloh1:
	add	x10, x10, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x12, #4
	cmp	x0, x20
	b.hi	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w11, [x8, #-8]
	asr	w11, w11, #2
	ldrb	w11, [x10, w11, sxtw]
	add	x12, x19, x12
	strb	w11, [x12]
	ldp	w11, w13, [x8, #-8]
	lsl	w11, w11, #4
	and	x11, x11, #0x30
	sbfx	x13, x13, #4, #28
	orr	x11, x11, x13
	ldrb	w11, [x10, x11]
	strb	w11, [x12, #1]
	ldp	w11, w13, [x8, #-4]
	lsl	w11, w11, #2
	and	x11, x11, #0x3c
	sbfx	x13, x13, #6, #26
	orr	x11, x11, x13
	ldrb	w11, [x10, x11]
	strb	w11, [x12, #2]
	ldr	w11, [x8], #12
	and	x11, x11, #0x3f
	ldrb	w11, [x10, x11]
	strb	w11, [x12, #3]
	add	x11, x9, #3
	add	x13, x9, #6
	mov	x9, x11
	mov	x12, x0
	cmp	x13, x22
	b.ls	LBB0_4
LBB0_6:
	sub	x8, x22, x11
	cmp	x8, #1
	b.eq	LBB0_9
; %bb.7:
	cmp	x8, #2
	b.ne	LBB0_11
; %bb.8:
	add	x8, x21, x11, lsl #2
	ldr	w9, [x8]
	asr	w9, w9, #2
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
	ldrb	w9, [x10, w9, sxtw]
	strb	w9, [x19, x0]
	ldp	w9, w11, [x8]
	lsl	w9, w9, #4
	and	x9, x9, #0x30
	sbfx	x11, x11, #4, #28
	orr	x9, x9, x11
	ldrb	w9, [x10, x9]
	orr	x11, x0, #0x1
	strb	w9, [x19, x11]
	ldr	w8, [x8, #4]
	lsl	w8, w8, #2
	and	x8, x8, #0x3c
	ldrb	w8, [x10, x8]
	b	LBB0_10
LBB0_9:
	lsl	x8, x11, #2
	ldr	w9, [x21, x8]
	asr	w9, w9, #2
Lloh4:
	adrp	x10, l_.str@PAGE
Lloh5:
	add	x10, x10, l_.str@PAGEOFF
	ldrb	w9, [x10, w9, sxtw]
	strb	w9, [x19, x0]
	ldr	w8, [x21, x8]
	lsl	w8, w8, #4
	and	x8, x8, #0x30
	ldrb	w8, [x10, x8]
	orr	x9, x0, #0x1
	strb	w8, [x19, x9]
	mov	w8, #61
LBB0_10:
	orr	x9, x0, #0x2
	strb	w8, [x19, x9]
	orr	x8, x0, #0x3
	mov	w9, #61
	strb	w9, [x19, x8]
	add	x0, x0, #4
LBB0_11:
	add	x8, x0, #1
	cmp	x8, x20
	b.ls	LBB0_14
LBB0_12:
	mov	w0, #-1
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
LBB0_14:
	strb	wzr, [x19, x0]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

.subsections_via_symbols
