	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_read_pem
_file_read_pem:                         ## @file_read_pem
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %rbx
	cmpl	$0, 24(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_PEM_FLAG_SECURE@GOTPCREL(%rip), %rax
	movq	_PEM_FLAG_EAY_COMPATIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_PEM_read_bio_ex
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_PEM_read_bio
LBB0_3:
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	movq	(%rbx), %rdi
	callq	_strlen
	cmpl	$11, %eax
	jl	LBB0_8
## %bb.5:
	movq	(%rbx), %rdi
	leaq	-52(%rbp), %rsi
	callq	_PEM_get_EVP_CIPHER_INFO
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	16(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_file_fill_pem_pass_data
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rsi
	movq	_file_get_pem_pass@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %r8
	movq	%r14, %rdx
	callq	_PEM_do_header
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movl	$1, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PEM_FLAG_SECURE,4,2            ## @PEM_FLAG_SECURE
	.comm	_PEM_FLAG_EAY_COMPATIBLE,4,2    ## @PEM_FLAG_EAY_COMPATIBLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PEM"

	.comm	_file_get_pem_pass,4,2          ## @file_get_pem_pass
	.no_dead_strip	_file_read_pem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_read_pem
_file_read_pem:                         ; @file_read_pem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x6
	mov	x22, x5
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	cbz	w7, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PEM_FLAG_SECURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEM_FLAG_SECURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PEM_FLAG_EAY_COMPATIBLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PEM_FLAG_EAY_COMPATIBLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w5, w9, w8
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_PEM_read_bio_ex
	cmp	w0, #1
	b.ge	LBB0_3
	b	LBB0_8
LBB0_2:
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_PEM_read_bio
	cmp	w0, #1
	b.lt	LBB0_8
LBB0_3:
	ldr	x0, [x23]
	bl	_strlen
	cmp	w0, #11
	b.lt	LBB0_7
; %bb.4:
	ldr	x0, [x23]
	add	x1, sp, #12
	bl	_PEM_get_EVP_CIPHER_INFO
	cbz	w0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x22
	mov	x3, x21
	bl	_file_fill_pem_pass_data
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x1, [x20]
Lloh8:
	adrp	x8, _file_get_pem_pass@GOTPAGE
Lloh9:
	ldr	x8, [x8, _file_get_pem_pass@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x0, sp, #12
	add	x4, sp, #8
	mov	x2, x19
	bl	_PEM_do_header
	cbz	w0, LBB0_8
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_FLAG_SECURE,4,2            ; @PEM_FLAG_SECURE
	.comm	_PEM_FLAG_EAY_COMPATIBLE,4,2    ; @PEM_FLAG_EAY_COMPATIBLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PEM"

	.comm	_file_get_pem_pass,4,2          ; @file_get_pem_pass
	.no_dead_strip	_file_read_pem
.subsections_via_symbols
