	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PEM_def_callback               ## -- Begin function PEM_def_callback
	.p2align	4, 0x90
_PEM_def_callback:                      ## @PEM_def_callback
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rcx, %rbx
	movq	%rcx, %rdi
	callq	_strlen
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	jmp	LBB0_6
LBB0_2:
	movl	%edx, %r15d
	xorl	%eax, %eax
	callq	_EVP_get_pw_prompt
	testq	%rax, %rax
	leaq	L_.str(%rip), %rcx
	cmovneq	%rax, %rcx
	movl	%r15d, %esi
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_MIN_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_4:
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r15d, %r8d
	callq	_EVP_read_pw_string_min
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_PEM_F_PEM_DEF_CALLBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_PROBLEMS_GETTING_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PEMerr
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	$-1, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlen                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter PEM pass phrase:"

	.comm	_MIN_LENGTH,4,2                 ## @MIN_LENGTH
	.comm	_PEM_F_PEM_DEF_CALLBACK,4,2     ## @PEM_F_PEM_DEF_CALLBACK
	.comm	_PEM_R_PROBLEMS_GETTING_PASSWORD,4,2 ## @PEM_R_PROBLEMS_GETTING_PASSWORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PEM_def_callback               ; -- Begin function PEM_def_callback
	.p2align	2
_PEM_def_callback:                      ; @PEM_def_callback
	.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	x19, x0
	cbz	x3, LBB0_2
; %bb.1:
	mov	x22, x3
	mov	x0, x3
	bl	_strlen
	cmp	w0, w20
	csel	w20, w0, w20, lt
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	b	LBB0_4
LBB0_2:
	mov	x21, x2
	bl	_EVP_get_pw_prompt
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x3, x8, x0, eq
Lloh2:
	adrp	x8, _MIN_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIN_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w1, wzr, w8, eq
	mov	x0, x19
	mov	x2, x20
	mov	x4, x21
	bl	_EVP_read_pw_string_min
	cbz	w0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _PEM_F_PEM_DEF_CALLBACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PEM_F_PEM_DEF_CALLBACK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _PEM_R_PROBLEMS_GETTING_PASSWORD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PEM_R_PROBLEMS_GETTING_PASSWORD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	mov	w20, #-1
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
	mov	x0, x19
	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
	b	_strlen
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter PEM pass phrase:"

	.comm	_MIN_LENGTH,4,2                 ; @MIN_LENGTH
	.comm	_PEM_F_PEM_DEF_CALLBACK,4,2     ; @PEM_F_PEM_DEF_CALLBACK
	.comm	_PEM_R_PROBLEMS_GETTING_PASSWORD,4,2 ; @PEM_R_PROBLEMS_GETTING_PASSWORD
.subsections_via_symbols
