	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_b2i_bio
_do_b2i_bio:                            ## @do_b2i_bio
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	%esi, -68(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_BIO_read
	cmpl	$16, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, -88(%rbp)
	leaq	-88(%rbp), %rdi
	leaq	-92(%rbp), %rdx
	leaq	-76(%rbp), %rcx
	leaq	-72(%rbp), %r8
	leaq	-68(%rbp), %r9
	movl	$16, %esi
	callq	_do_blob_header
	testq	%rax, %rax
	jle	LBB0_6
## %bb.2:
	movl	-76(%rbp), %edi
	movl	-72(%rbp), %esi
	movl	-68(%rbp), %edx
	callq	_blob_length
	movl	%eax, %r15d
	movq	_BLOB_MAX_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jbe	LBB0_7
## %bb.3:
	movq	_PEM_F_DO_B2I_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_HEADER_TOO_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_PEM_F_DO_B2I_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_KEYBLOB_TOO_SHORT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_PEMerr
LBB0_6:
	xorl	%ebx, %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movq	%rbx, %rax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r15d, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%r14, -88(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_BIO_read
	cmpl	%r15d, %eax
	jne	LBB0_12
## %bb.9:
	cmpl	$0, -72(%rbp)
	movl	-76(%rbp), %esi
	movl	-68(%rbp), %edx
	leaq	-88(%rbp), %rdi
	je	LBB0_14
## %bb.10:
	callq	_b2i_dss
	jmp	LBB0_15
LBB0_11:
	movq	_PEM_F_DO_B2I_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_PEM_F_DO_B2I_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_KEYBLOB_TOO_SHORT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	callq	_PEMerr
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_14:
	callq	_b2i_rsa
LBB0_15:
	movq	%rax, %rbx
LBB0_16:
	movq	%r14, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PEM_F_DO_B2I_BIO,4,2           ## @PEM_F_DO_B2I_BIO
	.comm	_PEM_R_KEYBLOB_TOO_SHORT,4,2    ## @PEM_R_KEYBLOB_TOO_SHORT
	.comm	_BLOB_MAX_LENGTH,4,2            ## @BLOB_MAX_LENGTH
	.comm	_PEM_R_HEADER_TOO_LONG,4,2      ## @PEM_R_HEADER_TOO_LONG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_do_b2i_bio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_b2i_bio
_do_b2i_bio:                            ; @do_b2i_bio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	w1, [sp, #36]
	add	x19, sp, #40
	add	x1, sp, #40
	mov	w2, #16
	bl	_BIO_read
	cmp	w0, #16
	b.ne	LBB0_4
; %bb.1:
	str	x19, [sp, #24]
	add	x0, sp, #24
	add	x2, sp, #16
	add	x3, sp, #20
	add	x4, sp, #12
	add	x5, sp, #36
	mov	w1, #16
	bl	_do_blob_header
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	w0, [sp, #20]
	ldr	w1, [sp, #12]
	ldr	w2, [sp, #36]
	bl	_blob_length
Lloh3:
	adrp	x8, _BLOB_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLOB_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _PEM_F_DO_B2I_BIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PEM_F_DO_B2I_BIO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _PEM_R_HEADER_TOO_LONG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PEM_R_HEADER_TOO_LONG@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _PEM_F_DO_B2I_BIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PEM_F_DO_B2I_BIO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _PEM_R_KEYBLOB_TOO_SHORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PEM_R_KEYBLOB_TOO_SHORT@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	bl	_PEMerr
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.8:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_9:
	mov	x21, x0
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.10:
	str	x19, [sp, #24]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_BIO_read
	cmp	w0, w21
	b.ne	LBB0_14
; %bb.11:
	ldr	w8, [sp, #12]
	ldr	w1, [sp, #20]
	ldr	w2, [sp, #36]
	add	x0, sp, #24
	cbz	w8, LBB0_16
; %bb.12:
	bl	_b2i_dss
	b	LBB0_17
LBB0_13:
Lloh19:
	adrp	x8, _PEM_F_DO_B2I_BIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PEM_F_DO_B2I_BIO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x8, _PEM_F_DO_B2I_BIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PEM_F_DO_B2I_BIO@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _PEM_R_KEYBLOB_TOO_SHORT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PEM_R_KEYBLOB_TOO_SHORT@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	x20, #0
	b	LBB0_18
LBB0_16:
	bl	_b2i_rsa
LBB0_17:
	mov	x20, x0
LBB0_18:
	mov	x0, x19
	bl	_OPENSSL_free
	b	LBB0_7
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_F_DO_B2I_BIO,4,2           ; @PEM_F_DO_B2I_BIO
	.comm	_PEM_R_KEYBLOB_TOO_SHORT,4,2    ; @PEM_R_KEYBLOB_TOO_SHORT
	.comm	_BLOB_MAX_LENGTH,4,2            ; @BLOB_MAX_LENGTH
	.comm	_PEM_R_HEADER_TOO_LONG,4,2      ; @PEM_R_HEADER_TOO_LONG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_do_b2i_bio
.subsections_via_symbols
