	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NETSCAPE_SPKI_b64_decode       ## -- Begin function NETSCAPE_SPKI_b64_decode
	.p2align	4, 0x90
_NETSCAPE_SPKI_b64_decode:              ## @NETSCAPE_SPKI_b64_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
LBB0_2:
	leal	1(%rbx), %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_EVP_DecodeBlock
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	%r15, -32(%rbp)
	leaq	-32(%rbp), %rsi
	xorl	%edi, %edi
	movl	%eax, %edx
	callq	_d2i_NETSCAPE_SPKI
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_8
LBB0_5:
	movq	_X509_F_NETSCAPE_SPKI_B64_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	jmp	LBB0_7
LBB0_6:
	movq	_X509_F_NETSCAPE_SPKI_B64_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509_R_BASE64_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	movq	%r15, %rdi
	callq	_OPENSSL_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_NETSCAPE_SPKI_B64_DECODE,4,2 ## @X509_F_NETSCAPE_SPKI_B64_DECODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_X509_R_BASE64_DECODE_ERROR,4,2 ## @X509_R_BASE64_DECODE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NETSCAPE_SPKI_b64_decode       ; -- Begin function NETSCAPE_SPKI_b64_decode
	.p2align	2
_NETSCAPE_SPKI_b64_decode:              ; @NETSCAPE_SPKI_b64_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	cmp	w1, #0
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
LBB0_2:
	add	w0, w21, #1
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	mov	x1, x20
	mov	x2, x21
	bl	_EVP_DecodeBlock
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x2, x0
	str	x19, [sp, #8]
	add	x1, sp, #8
	mov	x0, #0
	bl	_d2i_NETSCAPE_SPKI
	mov	x20, x0
	mov	x0, x19
	bl	_OPENSSL_free
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _X509_F_NETSCAPE_SPKI_B64_DECODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_F_NETSCAPE_SPKI_B64_DECODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_X509err
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _X509_F_NETSCAPE_SPKI_B64_DECODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X509_F_NETSCAPE_SPKI_B64_DECODE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _X509_R_BASE64_DECODE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_R_BASE64_DECODE_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_X509err
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_NETSCAPE_SPKI_B64_DECODE,4,2 ; @X509_F_NETSCAPE_SPKI_B64_DECODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_X509_R_BASE64_DECODE_ERROR,4,2 ; @X509_R_BASE64_DECODE_ERROR
.subsections_via_symbols
