	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_base64_decode
_test_base64_decode:                    ## @test_base64_decode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ptls_base64_decode_init
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ptls_base64_decode
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpl	$11, -24(%rbp)
	sete	%dil
	callq	_ok
	movl	-20(%rbp), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$11, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	movl	$0, -24(%rbp)
	movq	%rbx, %rdi
	callq	_ptls_base64_decode_init
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ptls_base64_decode
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_ok
	movl	$0, -24(%rbp)
	movq	%rbx, %rdi
	callq	_ptls_base64_decode_init
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ptls_base64_decode
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_ok
	movq	%r14, %rdi
	callq	_ptls_buffer_dispose
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"aGVsbG8gd29ybGQ="

L_.str.2:                               ## @.str.2
	.asciz	"hello world"

L_.str.3:                               ## @.str.3
	.asciz	"a$b"

L_.str.4:                               ## @.str.4
	.asciz	"a\377b"

	.no_dead_strip	_test_base64_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_base64_decode
_test_base64_decode:                    ; @test_base64_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	mov	w2, #0
	bl	_ptls_buffer_init
	sub	x0, x29, #4
	bl	_ptls_base64_decode_init
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	x1, x29, #4
	mov	x2, sp
	bl	_ptls_base64_decode
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	w8, [sp]
	cmp	w8, #11
	cset	w0, eq
	bl	_ok
	ldr	w0, [sp, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #11
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	str	wzr, [sp]
	sub	x0, x29, #4
	bl	_ptls_base64_decode_init
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	sub	x1, x29, #4
	mov	x2, sp
	bl	_ptls_base64_decode
	cmp	w0, #0
	cset	w0, ne
	bl	_ok
	str	wzr, [sp]
	sub	x0, x29, #4
	bl	_ptls_base64_decode_init
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	sub	x1, x29, #4
	mov	x2, sp
	bl	_ptls_base64_decode
	cmp	w0, #0
	cset	w0, ne
	bl	_ok
	mov	x0, sp
	bl	_ptls_buffer_dispose
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"aGVsbG8gd29ybGQ="

l_.str.2:                               ; @.str.2
	.asciz	"hello world"

l_.str.3:                               ; @.str.3
	.asciz	"a$b"

l_.str.4:                               ; @.str.4
	.asciz	"a\377b"

	.no_dead_strip	_test_base64_decode
.subsections_via_symbols
