	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sldns_b32_ntop_base
_sldns_b32_ntop_base:                   ## @sldns_b32_ntop_base
	.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, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testl	%r8d, %r8d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r15
	cmoveq	%rax, %r15
	testl	%r9d, %r9d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_sldns_b32_ntop_calculate_size
	jmp	LBB0_3
LBB0_2:
	callq	_sldns_b32_ntop_calculate_size_no_padding
LBB0_3:
	leaq	1(%rax), %rdx
	movl	$-1, %ecx
	cmpq	%r13, %rdx
	ja	LBB0_20
## %bb.4:
	movb	$0, (%r12,%rax)
	cmpq	$5, %r14
	jb	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	movzbl	(%r15,%rcx), %ecx
	movb	%cl, (%r12)
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	shll	$2, %ecx
	andl	$28, %ecx
	sarl	$6, %edx
	movslq	%edx, %rdx
	orq	%rcx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movb	%cl, 1(%r12)
	movl	4(%rbx), %ecx
	shrl	%ecx
	andl	$31, %ecx
	movzbl	(%r15,%rcx), %ecx
	movb	%cl, 2(%r12)
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	shll	$4, %ecx
	andl	$16, %ecx
	sarl	$4, %edx
	movslq	%edx, %rdx
	orq	%rcx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movb	%cl, 3(%r12)
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	addl	%ecx, %ecx
	andl	$30, %ecx
	sarl	$7, %edx
	movslq	%edx, %rdx
	orq	%rcx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movb	%cl, 4(%r12)
	movl	12(%rbx), %ecx
	shrl	$2, %ecx
	andl	$31, %ecx
	movzbl	(%r15,%rcx), %ecx
	movb	%cl, 5(%r12)
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	shll	$3, %ecx
	andl	$24, %ecx
	sarl	$5, %edx
	movslq	%edx, %rdx
	orq	%rcx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movb	%cl, 6(%r12)
	movl	16(%rbx), %ecx
	andl	$31, %ecx
	movzbl	(%r15,%rcx), %ecx
	movb	%cl, 7(%r12)
	addq	$-5, %r14
	addq	$20, %rbx
	addq	$8, %r12
	cmpq	$4, %r14
	ja	LBB0_5
LBB0_6:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	decq	%r14
	cmpq	$3, %r14
	ja	LBB0_12
## %bb.7:
	xorl	%ecx, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r14,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_8:
	movl	12(%rbx), %ecx
	andl	$3, %ecx
	movb	(%r15,%rcx,8), %cl
	movb	%cl, 6(%r12)
	movl	12(%rbx), %ecx
	shrl	$2, %ecx
	andl	$31, %ecx
	movb	(%r15,%rcx), %cl
	movb	%cl, 5(%r12)
	movl	12(%rbx), %ecx
	sarl	$7, %ecx
	movslq	%ecx, %rcx
LBB0_9:
	movl	8(%rbx), %edx
	addl	%edx, %edx
	andl	$30, %edx
	orq	%rcx, %rdx
	movb	(%r15,%rdx), %cl
	movb	%cl, 4(%r12)
	movl	8(%rbx), %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
LBB0_10:
	movl	4(%rbx), %edx
	shll	$4, %edx
	andl	$16, %edx
	orq	%rcx, %rdx
	movb	(%r15,%rdx), %cl
	movb	%cl, 3(%r12)
	movl	4(%rbx), %ecx
	shrl	%ecx
	andl	$31, %ecx
	movb	(%r15,%rcx), %cl
	movb	%cl, 2(%r12)
	movl	4(%rbx), %ecx
	sarl	$6, %ecx
	movslq	%ecx, %rcx
LBB0_11:
	movl	(%rbx), %edx
	shll	$2, %edx
	andl	$28, %edx
	orq	%rcx, %rdx
	movb	(%r15,%rdx), %cl
	movb	%cl, 1(%r12)
	movl	(%rbx), %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	movb	(%r15,%rcx), %cl
	movb	%cl, (%r12)
LBB0_12:
	testl	%edi, %edi
	je	LBB0_19
## %bb.13:
	cmpq	$3, %r14
	ja	LBB0_19
## %bb.14:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%r14,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_15:
	movw	$15677, 2(%r12)                 ## imm = 0x3D3D
LBB0_16:
	movb	$61, 4(%r12)
LBB0_17:
	movw	$15677, 5(%r12)                 ## imm = 0x3D3D
LBB0_18:
	movb	$61, 7(%r12)
LBB0_19:
	movl	%eax, %ecx
LBB0_20:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
LJTI0_1:
	.long	L0_1_set_15
	.long	L0_1_set_16
	.long	L0_1_set_17
	.long	L0_1_set_18
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdefghijklmnopqrstuv"

L_.str.1:                               ## @.str.1
	.asciz	"abcdefghijklmnopqrstuvwxyz234567"

	.no_dead_strip	_sldns_b32_ntop_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sldns_b32_ntop_base
_sldns_b32_ntop_base:                   ; @sldns_b32_ntop_base
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x5
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w4, #0
	csel	x24, x9, x8, eq
	mov	x0, x1
	cbz	w5, LBB0_2
; %bb.1:
	bl	_sldns_b32_ntop_calculate_size
	b	LBB0_3
LBB0_2:
	bl	_sldns_b32_ntop_calculate_size_no_padding
LBB0_3:
	add	x8, x0, #1
	cmp	x8, x23
	b.ls	LBB0_5
; %bb.4:
	mov	w0, #-1
	b	LBB0_20
LBB0_5:
	strb	wzr, [x19, x0]
	cmp	x22, #5
	b.lo	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	asr	w8, w8, #3
	ldrb	w8, [x24, w8, sxtw]
	strb	w8, [x19]
	ldp	w8, w9, [x21]
	lsl	w8, w8, #2
	and	x8, x8, #0x1c
	sbfx	x9, x9, #6, #26
	orr	x8, x8, x9
	ldrb	w8, [x24, x8]
	strb	w8, [x19, #1]
	ldr	w8, [x21, #4]
	ubfx	x8, x8, #1, #5
	ldrb	w8, [x24, x8]
	strb	w8, [x19, #2]
	ldp	w8, w9, [x21, #4]
	lsl	w8, w8, #4
	and	x8, x8, #0x10
	sbfx	x9, x9, #4, #28
	orr	x8, x8, x9
	ldrb	w8, [x24, x8]
	strb	w8, [x19, #3]
	ldp	w8, w9, [x21, #8]
	lsl	w8, w8, #1
	and	x8, x8, #0x1e
	sbfx	x9, x9, #7, #25
	orr	x8, x8, x9
	ldrb	w8, [x24, x8]
	strb	w8, [x19, #4]
	ldr	w8, [x21, #12]
	ubfx	x8, x8, #2, #5
	ldrb	w8, [x24, x8]
	strb	w8, [x19, #5]
	ldp	w8, w9, [x21, #12]
	lsl	w8, w8, #3
	and	x8, x8, #0x18
	sbfx	x9, x9, #5, #27
	orr	x8, x8, x9
	ldrb	w8, [x24, x8]
	strb	w8, [x19, #6]
	ldr	w8, [x21, #16]
	and	x8, x8, #0x1f
	ldrb	w8, [x24, x8]
	strb	w8, [x19, #7]
	sub	x22, x22, #5
	add	x21, x21, #20
	add	x19, x19, #8
	cmp	x22, #4
	b.hi	LBB0_6
LBB0_7:
	sub	x8, x22, #1
	cmp	x8, #3
	b.hi	LBB0_13
; %bb.8:
	mov	x9, #0
	mov	x10, #0
	mov	x11, #0
Lloh4:
	adrp	x12, lJTI0_0@PAGE
Lloh5:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_9
	ldrb	w14, [x12, x8]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_9:
	ldr	w9, [x21, #12]
	lsl	w9, w9, #3
	and	x9, x9, #0x18
	ldrb	w9, [x24, x9]
	strb	w9, [x19, #6]
	ldr	w9, [x21, #12]
	ubfx	x9, x9, #2, #5
	ldrb	w9, [x24, x9]
	strb	w9, [x19, #5]
	ldr	w9, [x21, #12]
	sbfx	x9, x9, #7, #25
LBB0_10:
	ldr	w10, [x21, #8]
	lsl	w10, w10, #1
	and	x10, x10, #0x1e
	orr	x9, x9, x10
	ldrb	w9, [x24, x9]
	strb	w9, [x19, #4]
	ldr	w9, [x21, #8]
	sbfx	x10, x9, #4, #28
LBB0_11:
	ldr	w9, [x21, #4]
	lsl	w9, w9, #4
	and	x9, x9, #0x10
	orr	x9, x10, x9
	ldrb	w9, [x24, x9]
	strb	w9, [x19, #3]
	ldr	w9, [x21, #4]
	ubfx	x9, x9, #1, #5
	ldrb	w9, [x24, x9]
	strb	w9, [x19, #2]
	ldr	w9, [x21, #4]
	sbfx	x11, x9, #6, #26
LBB0_12:
	ldr	w9, [x21]
	lsl	w9, w9, #2
	and	x9, x9, #0x1c
	orr	x9, x11, x9
	ldrb	w9, [x24, x9]
	strb	w9, [x19, #1]
	ldr	w9, [x21]
	asr	w9, w9, #3
	ldrb	w9, [x24, w9, sxtw]
	strb	w9, [x19]
LBB0_13:
	cbz	w20, LBB0_20
; %bb.14:
	cmp	x8, #3
	b.hi	LBB0_20
; %bb.15:
Lloh6:
	adrp	x9, lJTI0_1@PAGE
Lloh7:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
	mov	w8, #15677
	strh	w8, [x19, #2]
LBB0_17:
	mov	w8, #61
	strb	w8, [x19, #4]
LBB0_18:
	mov	w8, #15677
	sturh	w8, [x19, #5]
LBB0_19:
	mov	w8, #61
	strb	w8, [x19, #7]
LBB0_20:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
lJTI0_1:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_18-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdefghijklmnopqrstuv"

l_.str.1:                               ; @.str.1
	.asciz	"abcdefghijklmnopqrstuvwxyz234567"

	.no_dead_strip	_sldns_b32_ntop_base
.subsections_via_symbols
