	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BinaryToBase64A
_BinaryToBase64A:                       ## @BinaryToBase64A
	.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	%r8, %r14
	movq	%rcx, %r12
	movq	_CRYPT_STRING_NOCR@GOTPCREL(%rip), %rax
	movq	_CRYPT_STRING_NOCRLF@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	leaq	_BinaryToBase64A.crlf(%rip), %rcx
	leaq	L_.str(%rip), %rbx
	cmoveq	%rcx, %rbx
	testl	%edx, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rax
	leaq	_BinaryToBase64A.lf(%rip), %r13
	cmoveq	%rbx, %r13
	movl	(%rax), %eax
	andl	$268435455, %edx                ## imm = 0xFFFFFFF
	addl	$-128, %edx
	cmpl	$3, %edx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jae	LBB0_5
## %bb.1:
	movslq	%edx, %rax
	leaq	l_switch.table.BinaryToBase64A(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.BinaryToBase64A.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	(%rax), %rbx
	movq	(%rcx), %r15
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %r8
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_encodeBase64A
	testq	%r15, %r15
	sete	%dl
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movb	%dl, -64(%rbp)                  ## 1-byte Spill
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %r12
	movq	%r14, %r15
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_strlen
	movb	-64(%rbp), %dl                  ## 1-byte Reload
	addl	%r14d, %eax
	movq	%r15, %r14
	movq	%r12, %r15
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	addl	%eax, -44(%rbp)
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %r12
	movq	%r15, %rbx
	movq	%r14, %r15
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_strlen
	movb	-64(%rbp), %dl                  ## 1-byte Reload
	addl	%r14d, %eax
	movq	%r15, %r14
	movq	%rbx, %r15
	movq	%r12, %rcx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	addl	%eax, -44(%rbp)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movl	$0, -44(%rbp)
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r8
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_encodeBase64A
	movb	$1, %bl
	movb	$1, %dl
	jmp	LBB0_7
LBB0_6:
	movb	$1, %bl
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movl	-44(%rbp), %eax
	testq	%r12, %r12
	je	LBB0_16
## %bb.9:
	cmpl	(%r14), %eax
	jle	LBB0_11
## %bb.10:
	movl	%eax, (%r14)
	movq	_ERROR_INSUFFICIENT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_11:
	movl	%eax, -56(%rbp)
	testb	%dl, %dl
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	%r12, %rdi
	callq	_strlen
	movq	%r14, %r15
	movslq	%eax, %r14
	addq	%r12, %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	movq	%r13, %rdi
	callq	_strlen
	movslq	%eax, %r12
	addq	%r14, %r12
	movq	%r15, %r14
LBB0_13:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %r8
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_encodeBase64A
	testb	%bl, %bl
	jne	LBB0_15
## %bb.14:
	movslq	-56(%rbp), %rax
	leaq	(%rax,%r12), %r15
	movq	%r14, %rbx
	leaq	(%rax,%r12), %r14
	decq	%r14
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	movq	%r14, %rdi
	movq	%rbx, %r14
	callq	_strlen
	cltq
	leaq	(%rax,%r15), %rdi
	decq	%rdi
	movq	%r13, %rsi
	callq	_strcpy
LBB0_15:
	movl	-44(%rbp), %eax
	decl	%eax
LBB0_16:
	movl	%eax, (%r14)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_BinaryToBase64A.crlf:                  ## @BinaryToBase64A.crlf
	.asciz	"\r\n"

_BinaryToBase64A.lf:                    ## @BinaryToBase64A.lf
	.asciz	"\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CRYPT_STRING_NOCR,4,2          ## @CRYPT_STRING_NOCR
	.comm	_CRYPT_STRING_NOCRLF,4,2        ## @CRYPT_STRING_NOCRLF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_CERT_HEADER,8,3                ## @CERT_HEADER
	.comm	_CERT_TRAILER,8,3               ## @CERT_TRAILER
	.comm	_CERT_REQUEST_HEADER,8,3        ## @CERT_REQUEST_HEADER
	.comm	_CERT_REQUEST_TRAILER,8,3       ## @CERT_REQUEST_TRAILER
	.comm	_X509_HEADER,8,3                ## @X509_HEADER
	.comm	_X509_TRAILER,8,3               ## @X509_TRAILER
	.comm	_ERROR_INSUFFICIENT_BUFFER,4,2  ## @ERROR_INSUFFICIENT_BUFFER
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_BinaryToBase64A
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.BinaryToBase64A
l_switch.table.BinaryToBase64A:
	.quad	_X509_HEADER
	.quad	_CERT_REQUEST_HEADER
	.quad	_CERT_HEADER

	.p2align	3                               ## @switch.table.BinaryToBase64A.1
l_switch.table.BinaryToBase64A.1:
	.quad	_X509_TRAILER
	.quad	_CERT_REQUEST_TRAILER
	.quad	_CERT_TRAILER

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BinaryToBase64A
_BinaryToBase64A:                       ; @BinaryToBase64A
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x24, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
	mov	x23, x0
	and	x8, x2, #0xfffffff
Lloh0:
	adrp	x9, _TRUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x9]
Lloh3:
	adrp	x9, _CRYPT_STRING_NOCR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPT_STRING_NOCR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _CRYPT_STRING_NOCRLF@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CRYPT_STRING_NOCRLF@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, l_.str@PAGE
Lloh10:
	add	x11, x11, l_.str@PAGEOFF
	tst	w10, w2
Lloh11:
	adrp	x10, _BinaryToBase64A.crlf@PAGE
Lloh12:
	add	x10, x10, _BinaryToBase64A.crlf@PAGEOFF
	csel	x10, x10, x11, eq
Lloh13:
	adrp	x11, _BinaryToBase64A.lf@PAGE
Lloh14:
	add	x11, x11, _BinaryToBase64A.lf@PAGEOFF
	tst	w9, w2
	csel	x21, x10, x11, eq
	sub	x8, x8, #128
	cmp	w8, #3
	b.hs	LBB0_5
; %bb.1:
Lloh15:
	adrp	x9, l_switch.table.BinaryToBase64A@PAGE
Lloh16:
	add	x9, x9, l_switch.table.BinaryToBase64A@PAGEOFF
	ldr	x9, [x9, x8, lsl #3]
Lloh17:
	adrp	x10, l_switch.table.BinaryToBase64A.1@PAGE
Lloh18:
	add	x10, x10, l_switch.table.BinaryToBase64A.1@PAGEOFF
	ldr	x8, [x10, w8, sxtw #3]
	ldr	x25, [x8]
	ldr	x26, [x9]
	str	wzr, [sp, #12]
	add	x4, sp, #12
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, #0
	bl	_encodeBase64A
	cmp	x26, #0
	cset	w19, eq
	cbz	x26, LBB0_3
; %bb.2:
	mov	x0, x26
	bl	_strlen
	mov	x28, x27
	mov	x27, x0
	mov	x0, x21
	bl	_strlen
	ldr	w8, [sp, #12]
	add	w9, w0, w27
	mov	x27, x28
	add	w8, w9, w8
	str	w8, [sp, #12]
LBB0_3:
	cbz	x25, LBB0_6
; %bb.4:
	mov	x0, x25
	bl	_strlen
	mov	x28, x23
	mov	x23, x22
	mov	x22, x20
	mov	x20, x27
	mov	x27, x0
	mov	x0, x21
	bl	_strlen
	mov	w10, #0
	ldr	w8, [sp, #12]
	add	w9, w0, w27
	mov	x27, x20
	mov	x20, x22
	mov	x22, x23
	mov	x23, x28
	add	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w8, [sp, #12]
	cbnz	x24, LBB0_7
	b	LBB0_14
LBB0_5:
	str	wzr, [sp, #12]
	add	x4, sp, #12
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, #0
	bl	_encodeBase64A
	mov	x26, #0
	mov	x25, #0
	mov	w10, #1
	mov	w19, #1
	ldr	w8, [sp, #12]
	cbnz	x24, LBB0_7
	b	LBB0_14
LBB0_6:
	mov	w10, #1
	ldr	w8, [sp, #12]
	cbz	x24, LBB0_14
LBB0_7:
	ldr	w9, [x20]
	cmp	w8, w9
	b.le	LBB0_9
; %bb.8:
	str	w8, [x20]
Lloh19:
	adrp	x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_SetLastError
Lloh22:
	adrp	x8, _FALSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh24:
	ldr	w27, [x8]
	b	LBB0_15
LBB0_9:
	mov	x28, x10
	str	w8, [sp, #8]
	tbnz	w19, #0, LBB0_11
; %bb.10:
	mov	x0, x24
	mov	x1, x26
	bl	_strcpy
	mov	x0, x24
	bl	_strlen
	add	x24, x24, w0, sxtw
	mov	x0, x24
	mov	x1, x21
	bl	_strcpy
	mov	x0, x21
	bl	_strlen
	add	x24, x24, w0, sxtw
LBB0_11:
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	bl	_encodeBase64A
	tbnz	w28, #0, LBB0_13
; %bb.12:
	ldrsw	x8, [sp, #8]
	add	x8, x8, x24
	sub	x22, x8, #1
	mov	x0, x22
	mov	x1, x25
	bl	_strcpy
	mov	x0, x22
	bl	_strlen
	add	x0, x22, w0, sxtw
	mov	x1, x21
	bl	_strcpy
LBB0_13:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
LBB0_14:
	str	w8, [x20]
LBB0_15:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_BinaryToBase64A.crlf:                  ; @BinaryToBase64A.crlf
	.asciz	"\r\n"

_BinaryToBase64A.lf:                    ; @BinaryToBase64A.lf
	.asciz	"\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CRYPT_STRING_NOCR,4,2          ; @CRYPT_STRING_NOCR
	.comm	_CRYPT_STRING_NOCRLF,4,2        ; @CRYPT_STRING_NOCRLF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_CERT_HEADER,8,3                ; @CERT_HEADER
	.comm	_CERT_TRAILER,8,3               ; @CERT_TRAILER
	.comm	_CERT_REQUEST_HEADER,8,3        ; @CERT_REQUEST_HEADER
	.comm	_CERT_REQUEST_TRAILER,8,3       ; @CERT_REQUEST_TRAILER
	.comm	_X509_HEADER,8,3                ; @X509_HEADER
	.comm	_X509_TRAILER,8,3               ; @X509_TRAILER
	.comm	_ERROR_INSUFFICIENT_BUFFER,4,2  ; @ERROR_INSUFFICIENT_BUFFER
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_BinaryToBase64A
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.BinaryToBase64A
l_switch.table.BinaryToBase64A:
	.quad	_X509_HEADER
	.quad	_CERT_REQUEST_HEADER
	.quad	_CERT_HEADER

	.p2align	3                               ; @switch.table.BinaryToBase64A.1
l_switch.table.BinaryToBase64A.1:
	.quad	_X509_TRAILER
	.quad	_CERT_REQUEST_TRAILER
	.quad	_CERT_TRAILER

.subsections_via_symbols
