	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ct_base64_decode
_ct_base64_decode:                      ## @ct_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	shrq	$2, %rax
	leal	(%rax,%rax,2), %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_EVP_DecodeBlock
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	cmpb	$61, -1(%rbx,%r12)
	jne	LBB0_13
## %bb.9:
	cmpb	$61, -2(%rbx,%r12)
	jne	LBB0_10
## %bb.11:
	cmpb	$61, -3(%rbx,%r12)
	je	LBB0_5
## %bb.12:
	addl	$-2, %eax
	jmp	LBB0_13
LBB0_1:
	movq	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_3:
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_CT_R_BASE64_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_CT_F_CT_BASE64_DECODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_CTerr
LBB0_5:
	movq	%r15, %rdi
	callq	_OPENSSL_free
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_10:
	decl	%eax
LBB0_13:
	movq	%r15, (%r14)
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_F_CT_BASE64_DECODE,4,2      ## @CT_F_CT_BASE64_DECODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CT_R_BASE64_DECODE_ERROR,4,2   ## @CT_R_BASE64_DECODE_ERROR
	.no_dead_strip	_ct_base64_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ct_base64_decode
_ct_base64_decode:                      ; @ct_base64_decode
	.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, x1
	mov	x21, x0
	bl	_strlen
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	lsr	x8, x0, #2
	add	w0, w8, w8, lsl #1
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_EVP_DecodeBlock
	tbnz	w0, #31, LBB0_9
; %bb.3:
	add	x8, x22, x21
	ldurb	w9, [x8, #-1]
	cmp	w9, #61
	b.ne	LBB0_13
; %bb.4:
	ldurb	w8, [x8, #-2]
	cmp	w8, #61
	b.ne	LBB0_12
; %bb.5:
	add	x8, x22, x21
	ldurb	w8, [x8, #-3]
	cmp	w8, #61
	b.eq	LBB0_11
; %bb.6:
	sub	w0, w0, #2
	b	LBB0_13
LBB0_7:
	str	xzr, [x20]
	b	LBB0_14
LBB0_8:
Lloh0:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _CT_R_BASE64_DECODE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CT_R_BASE64_DECODE_ERROR@GOTPAGEOFF]
LBB0_10:
Lloh4:
	adrp	x9, _CT_F_CT_BASE64_DECODE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CT_F_CT_BASE64_DECODE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_CTerr
LBB0_11:
	mov	x0, x19
	bl	_OPENSSL_free
	mov	w0, #-1
	b	LBB0_14
LBB0_12:
	sub	w0, w0, #1
LBB0_13:
	str	x19, [x20]
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_F_CT_BASE64_DECODE,4,2      ; @CT_F_CT_BASE64_DECODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CT_R_BASE64_DECODE_ERROR,4,2   ; @CT_R_BASE64_DECODE_ERROR
	.no_dead_strip	_ct_base64_decode
.subsections_via_symbols
