	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_test_run
_encode_test_run:                       ## @encode_test_run
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_ENCODE_CTX_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movq	_BASE64_CANONICAL_ENCODING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.11:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_ENCODE_CTX_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	8(%r12), %edi
	callq	_EVP_ENCODE_LENGTH
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_EVP_EncodeInit
	movl	8(%r12), %r8d
	movl	12(%r12), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_EVP_EncodeUpdate
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rbx
	movq	%r14, %rsi
	addq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_EVP_EncodeFinal
	movl	-44(%rbp), %r9d
	addl	%ebx, %r9d
	movl	16(%r12), %ecx
	movl	20(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_memory_err_compare
	testl	%eax, %eax
	jne	LBB0_4
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_16:
	movq	%r14, %rdi
	callq	_OPENSSL_free
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	movq	%r13, %rdi
	callq	_EVP_ENCODE_CTX_free
	movq	%r15, %rdi
	callq	_EVP_ENCODE_CTX_free
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_4:
	movl	16(%r12), %edi
	callq	_EVP_DECODE_LENGTH
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_EVP_DecodeInit
	movl	16(%r12), %r8d
	movl	20(%r12), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_EVP_DecodeUpdate
	leaq	L_.str.2(%rip), %r15
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movslq	-44(%rbp), %rax
	movq	%rbx, %rsi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addq	%rax, %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_EVP_DecodeFinal
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.7:
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	(%r12), %rax
	movq	_BASE64_INVALID_ENCODING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	addl	-44(%rbp), %r9d
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	leaq	L_.str.3(%rip), %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_memory_err_compare
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INTERNAL_ERROR"

	.comm	_BASE64_CANONICAL_ENCODING,8,3  ## @BASE64_CANONICAL_ENCODING
L_.str.1:                               ## @.str.1
	.asciz	"BAD_ENCODING"

L_.str.2:                               ## @.str.2
	.asciz	"DECODE_ERROR"

	.comm	_BASE64_INVALID_ENCODING,8,3    ## @BASE64_INVALID_ENCODING
L_.str.3:                               ## @.str.3
	.asciz	"BAD_DECODING"

	.no_dead_strip	_encode_test_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_test_run
_encode_test_run:                       ; @encode_test_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	x24, [x0, #8]
	bl	_EVP_ENCODE_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _BASE64_CANONICAL_ENCODING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BASE64_CANONICAL_ENCODING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	bl	_EVP_ENCODE_CTX_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.3:
	ldr	w0, [x24, #8]
	bl	_EVP_ENCODE_LENGTH
	bl	_OPENSSL_malloc
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_EVP_EncodeInit
	ldp	w4, w3, [x24, #8]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	bl	_EVP_EncodeUpdate
	bl	_TEST_true
	cbz	w0, LBB0_6
; %bb.5:
	ldrsw	x23, [sp, #12]
	add	x1, x22, x23
	add	x2, sp, #12
	mov	x0, x20
	bl	_EVP_EncodeFinal
	ldr	w8, [sp, #12]
	add	w5, w8, w23
	ldp	w3, w2, [x24, #16]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x22
	bl	_memory_err_compare
	cbnz	w0, LBB0_9
LBB0_6:
	mov	x23, #0
	b	LBB0_17
LBB0_7:
	mov	x22, #0
	mov	x23, #0
	mov	x20, #0
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_16
LBB0_8:
	mov	x22, #0
	mov	x20, #0
LBB0_9:
	ldr	w0, [x24, #16]
	bl	_EVP_DECODE_LENGTH
	bl	_OPENSSL_malloc
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_EVP_DecodeInit
	ldp	w4, w3, [x24, #16]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x23
	bl	_EVP_DecodeUpdate
	tbnz	x0, #63, LBB0_15
; %bb.11:
	ldrsw	x25, [sp, #12]
	add	x1, x23, x25
	add	x2, sp, #12
	mov	x0, x19
	bl	_EVP_DecodeFinal
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.12:
	ldr	x8, [x24]
Lloh7:
	adrp	x9, _BASE64_INVALID_ENCODING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BASE64_INVALID_ENCODING@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [sp, #12]
	add	w5, w8, w25
	ldp	w3, w2, [x24, #8]
Lloh10:
	adrp	x24, l_.str.3@PAGE
Lloh11:
	add	x24, x24, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	mov	x4, x23
	bl	_memory_err_compare
	cbz	w0, LBB0_16
LBB0_14:
	mov	x24, #0
	b	LBB0_16
LBB0_15:
Lloh12:
	adrp	x24, l_.str.2@PAGE
Lloh13:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_16:
	str	x24, [x21]
LBB0_17:
	mov	x0, x22
	bl	_OPENSSL_free
	mov	x0, x23
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_EVP_ENCODE_CTX_free
	mov	x0, x20
	bl	_EVP_ENCODE_CTX_free
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INTERNAL_ERROR"

	.comm	_BASE64_CANONICAL_ENCODING,8,3  ; @BASE64_CANONICAL_ENCODING
l_.str.1:                               ; @.str.1
	.asciz	"BAD_ENCODING"

l_.str.2:                               ; @.str.2
	.asciz	"DECODE_ERROR"

	.comm	_BASE64_INVALID_ENCODING,8,3    ; @BASE64_INVALID_ENCODING
l_.str.3:                               ; @.str.3
	.asciz	"BAD_DECODING"

	.no_dead_strip	_encode_test_run
.subsections_via_symbols
