	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PEM_X509_INFO_write_bio        ## -- Begin function PEM_X509_INFO_write_bio
	.p2align	4, 0x90
_PEM_X509_INFO_write_bio:               ## @PEM_X509_INFO_write_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	%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	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_nid
	movl	%eax, %edi
	callq	_OBJ_nid2sn
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_iv_length
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax,2), %eax
	addl	$36, %eax
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %r14
	cltq
	cmpq	%r13, %rax
	jbe	LBB0_5
LBB0_3:
	movq	_PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_UNSUPPORTED_CIPHER@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_PEMerr
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_5:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	40(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.7:
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.9:
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %r14
	movq	32(%r12), %rdi
	callq	_EVP_CIPHER_nid
	movl	%eax, %edi
	callq	_OBJ_nid2sn
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	%rax, %r13
	movb	$0, (%r15)
	movq	_PEM_TYPE_ENCRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_PEM_proc_type
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_iv_length
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_PEM_dek_info
	movq	_PEM_STRING_RSA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_PEM_write_bio
	testl	%eax, %eax
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %r14
	jg	LBB0_13
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %r13
	movq	16(%rbp), %r14
	movl	(%rax), %edi
	callq	_EVP_PKEY_get0_RSA
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%rbx, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%r14
	movq	%r13, %r14
	callq	_PEM_write_bio_RSAPrivateKey
	addq	$16, %rsp
	testq	%rax, %rax
	jle	LBB0_11
LBB0_13:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_PEM_write_bio_X509
	testq	%rax, %rax
	jle	LBB0_11
LBB0_15:
	movl	$1, %ebx
	jmp	LBB0_20
LBB0_11:
	xorl	%ebx, %ebx
LBB0_20:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_OPENSSL_cleanse
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_CIPHER_IS_NULL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_19:
	movq	_PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_UNSUPPORTED_CIPHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PEMerr
	xorl	%ebx, %ebx
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %r14
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PEM_BUFSIZE,4,2                ## @PEM_BUFSIZE
	.comm	_PEM_F_PEM_X509_INFO_WRITE_BIO,4,2 ## @PEM_F_PEM_X509_INFO_WRITE_BIO
	.comm	_PEM_R_UNSUPPORTED_CIPHER,4,2   ## @PEM_R_UNSUPPORTED_CIPHER
	.comm	_PEM_R_CIPHER_IS_NULL,4,2       ## @PEM_R_CIPHER_IS_NULL
	.comm	_PEM_TYPE_ENCRYPTED,4,2         ## @PEM_TYPE_ENCRYPTED
	.comm	_PEM_STRING_RSA,4,2             ## @PEM_STRING_RSA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PEM_X509_INFO_write_bio        ; -- Begin function PEM_X509_INFO_write_bio
	.p2align	2
_PEM_X509_INFO_write_bio:               ; @PEM_X509_INFO_write_bio
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x22, x2
	mov	x21, x1
	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, #-88]
Lloh3:
	adrp	x28, _PEM_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _PEM_BUFSIZE@GOTPAGEOFF]
	ldr	w27, [x28]
	mov	x9, x27
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x27, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	cbz	x2, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_EVP_CIPHER_nid
	bl	_OBJ_nid2sn
	cbz	x0, LBB0_3
; %bb.2:
	bl	_strlen
	mov	x28, x0
	mov	x0, x22
	bl	_EVP_CIPHER_iv_length
	add	w8, w28, w0, lsl #1
Lloh7:
	adrp	x28, _PEM_BUFSIZE@GOTPAGE
Lloh8:
	ldr	x28, [x28, _PEM_BUFSIZE@GOTPAGEOFF]
	add	w8, w8, #36
	sxtw	x8, w8
	cmp	x8, x27
	b.ls	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _PEM_R_UNSUPPORTED_CIPHER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PEM_R_UNSUPPORTED_CIPHER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	w20, #0
	b	LBB0_19
LBB0_4:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_12
; %bb.5:
	ldr	x27, [x21, #40]
	cbz	x27, LBB0_10
; %bb.6:
	ldr	w28, [x21]
	cmp	w28, #1
	b.lt	LBB0_10
; %bb.7:
	cbz	x22, LBB0_16
; %bb.8:
	ldp	x23, x0, [x21, #24]
	bl	_EVP_CIPHER_nid
	bl	_OBJ_nid2sn
	cbz	x0, LBB0_17
; %bb.9:
	mov	x24, x0
	strb	wzr, [x19]
Lloh15:
	adrp	x8, _PEM_TYPE_ENCRYPTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PEM_TYPE_ENCRYPTED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PEM_proc_type
	mov	x0, x22
	bl	_EVP_CIPHER_iv_length
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	mov	x3, x23
	bl	_PEM_dek_info
Lloh18:
	adrp	x8, _PEM_STRING_RSA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PEM_STRING_RSA@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x27
	mov	x4, x28
	bl	_PEM_write_bio
	cmp	w0, #1
	b	LBB0_11
LBB0_10:
	ldr	w0, [x8]
	bl	_EVP_PKEY_get0_RSA
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	mov	x3, x26
	mov	x4, x25
	mov	x5, x24
	mov	x6, x23
	bl	_PEM_write_bio_RSAPrivateKey
	cmp	x0, #1
LBB0_11:
Lloh21:
	adrp	x28, _PEM_BUFSIZE@GOTPAGE
Lloh22:
	ldr	x28, [x28, _PEM_BUFSIZE@GOTPAGEOFF]
	b.lt	LBB0_15
LBB0_12:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_PEM_write_bio_X509
	cmp	x0, #1
	b.lt	LBB0_15
LBB0_14:
	mov	w20, #1
	b	LBB0_19
LBB0_15:
	mov	w20, #0
	b	LBB0_19
LBB0_16:
Lloh23:
	adrp	x8, _PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _PEM_R_CIPHER_IS_NULL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PEM_R_CIPHER_IS_NULL@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh28:
	adrp	x8, _PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PEM_F_PEM_X509_INFO_WRITE_BIO@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _PEM_R_UNSUPPORTED_CIPHER@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PEM_R_UNSUPPORTED_CIPHER@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	w20, #0
Lloh33:
	adrp	x28, _PEM_BUFSIZE@GOTPAGE
Lloh34:
	ldr	x28, [x28, _PEM_BUFSIZE@GOTPAGEOFF]
LBB0_19:
	ldr	w1, [x28]
	mov	x0, x19
	bl	_OPENSSL_cleanse
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_BUFSIZE,4,2                ; @PEM_BUFSIZE
	.comm	_PEM_F_PEM_X509_INFO_WRITE_BIO,4,2 ; @PEM_F_PEM_X509_INFO_WRITE_BIO
	.comm	_PEM_R_UNSUPPORTED_CIPHER,4,2   ; @PEM_R_UNSUPPORTED_CIPHER
	.comm	_PEM_R_CIPHER_IS_NULL,4,2       ; @PEM_R_CIPHER_IS_NULL
	.comm	_PEM_TYPE_ENCRYPTED,4,2         ; @PEM_TYPE_ENCRYPTED
	.comm	_PEM_STRING_RSA,4,2             ; @PEM_STRING_RSA
.subsections_via_symbols
