	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PEM_write_bio                  ## -- Begin function PEM_write_bio
	.p2align	4, 0x90
_PEM_write_bio:                         ## @PEM_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_EVP_ENCODE_CTX_new
	testq	%rax, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.1:
	movq	%rax, %rdi
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	_ERR_R_BUF_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_EVP_EncodeInit
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$11, %edx
	callq	_BIO_write
	cmpl	$11, %eax
	jne	LBB0_11
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_BIO_write
	cmpl	%r13d, %eax
	jne	LBB0_11
## %bb.3:
	movl	%r13d, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$6, %edx
	callq	_BIO_write
	cmpl	$6, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_BIO_write
	cmpl	%r15d, %eax
	jne	LBB0_20
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_BIO_write
	cmpl	$1, %eax
	jne	LBB0_20
LBB0_7:
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$3, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	testq	%r14, %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_24
## %bb.9:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_10:
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:
	xorl	%r14d, %r14d
LBB0_22:
	movq	_PEM_F_PEM_WRITE_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_PEMerr
	xorl	%r13d, %r13d
LBB0_23:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_ENCODE_CTX_free
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$3, %esi
	movq	%r14, %rdi
	callq	_OPENSSL_clear_free
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%eax, %eax
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	addl	%eax, %r13d
	addl	%ebx, %r15d
	subq	%rbx, %r14
	jle	LBB0_25
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rbx
	cmpq	%rbx, %r14
	cmovlq	%r14, %rbx
	movslq	%r15d, %rcx
	addq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	-48(%rbp), %rdx
	movl	%ebx, %r8d
	callq	_EVP_EncodeUpdate
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-48(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BIO_write
	cmpl	-48(%rbp), %eax
	je	LBB0_15
LBB0_19:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_20:
	xorl	%r14d, %r14d
LBB0_21:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_22
LBB0_24:
	xorl	%r13d, %r13d
LBB0_25:
	leaq	-48(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_EVP_EncodeFinal
	movl	-48(%rbp), %edx
	testl	%edx, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_BIO_write
	cmpl	-48(%rbp), %eax
	jne	LBB0_21
LBB0_27:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	_BIO_write
	cmpl	$9, %eax
	jne	LBB0_21
## %bb.28:
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_BIO_write
	cmpl	%r12d, %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_22
## %bb.29:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_BIO_write
	cmpl	$6, %eax
	jne	LBB0_22
## %bb.30:
	addl	-48(%rbp), %r13d
	jne	LBB0_23
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_R_BUF_LIB,4,2              ## @ERR_R_BUF_LIB
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-----BEGIN "

L_.str.1:                               ## @.str.1
	.asciz	"-----\n"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_PEM_BUFSIZE,4,2                ## @PEM_BUFSIZE
L_.str.3:                               ## @.str.3
	.asciz	"-----END "

	.comm	_PEM_F_PEM_WRITE_BIO,4,2        ## @PEM_F_PEM_WRITE_BIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PEM_write_bio                  ; -- Begin function PEM_write_bio
	.p2align	2
_PEM_write_bio:                         ; @PEM_write_bio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x4
	mov	x26, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_EVP_ENCODE_CTX_new
	mov	x19, x0
Lloh0:
	adrp	x24, _PEM_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PEM_BUFSIZE@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x8, _ERR_R_BUF_LIB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_R_BUF_LIB@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_EVP_EncodeInit
	mov	x0, x23
	bl	_strlen
	mov	x28, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #11
	bl	_BIO_write
	cmp	w0, #11
	b.ne	LBB0_10
; %bb.2:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x28
	bl	_BIO_write
	cmp	w0, w28
	b.ne	LBB0_10
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #6
	bl	_BIO_write
	cmp	w0, #6
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x21
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x27, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x27
	bl	_BIO_write
	cmp	w0, w27
	b.ne	LBB0_10
; %bb.6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	w2, #1
	bl	_BIO_write
	cmp	w0, #1
	b.ne	LBB0_10
LBB0_7:
	ldr	w8, [x24]
	lsl	w0, w8, #3
	bl	_OPENSSL_malloc
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.8:
	str	w28, [sp, #8]                   ; 4-byte Folded Spill
	cmp	x25, #1
	b.lt	LBB0_20
; %bb.9:
	mov	w24, #0
	mov	w28, #0
	b	LBB0_17
LBB0_10:
	mov	x21, #0
	b	LBB0_13
LBB0_11:
	mov	x21, #0
LBB0_12:
Lloh11:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
LBB0_13:
Lloh14:
	adrp	x8, _PEM_F_PEM_WRITE_BIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PEM_F_PEM_WRITE_BIO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_PEMerr
	mov	w22, #0
LBB0_14:
	mov	x0, x19
	bl	_EVP_ENCODE_CTX_free
	ldr	w8, [x24]
	lsl	w1, w8, #3
	mov	x0, x21
	bl	_OPENSSL_clear_free
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w0, #0
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w28, w0, w28
	sub	x25, x25, x27
	add	w24, w24, w27
	cmp	x25, #0
	b.le	LBB0_21
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
Lloh17:
	adrp	x8, _PEM_BUFSIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PEM_BUFSIZE@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	add	x8, x8, x8, lsl #2
	cmp	x25, x8
	csel	x27, x25, x8, lt
	add	x3, x26, w24, sxtw
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x4, x27
	bl	_EVP_EncodeUpdate
	cbz	w0, LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_BIO_write
	ldr	w8, [sp, #12]
	cmp	w0, w8
	b.eq	LBB0_16
	b	LBB0_27
LBB0_20:
	mov	w28, #0
LBB0_21:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_EVP_EncodeFinal
	ldr	w2, [sp, #12]
	cmp	w2, #1
	b.lt	LBB0_23
; %bb.22:
	mov	x0, x22
	mov	x1, x21
	bl	_BIO_write
	ldr	w8, [sp, #12]
	cmp	w0, w8
	b.ne	LBB0_27
LBB0_23:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	w2, #9
	bl	_BIO_write
	cmp	w0, #9
	b.ne	LBB0_27
; %bb.24:
	mov	x0, x22
	mov	x1, x23
	ldr	w23, [sp, #8]                   ; 4-byte Folded Reload
	mov	x2, x23
	bl	_BIO_write
	cmp	w0, w23
	b.ne	LBB0_27
; %bb.25:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #6
	bl	_BIO_write
	cmp	w0, #6
	b.ne	LBB0_27
; %bb.26:
	ldr	w8, [sp, #12]
Lloh24:
	adrp	x24, _PEM_BUFSIZE@GOTPAGE
Lloh25:
	ldr	x24, [x24, _PEM_BUFSIZE@GOTPAGEOFF]
	adds	w22, w8, w28
	b.ne	LBB0_14
	b	LBB0_13
LBB0_27:
Lloh26:
	adrp	x24, _PEM_BUFSIZE@GOTPAGE
Lloh27:
	ldr	x24, [x24, _PEM_BUFSIZE@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_R_BUF_LIB,4,2              ; @ERR_R_BUF_LIB
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-----BEGIN "

l_.str.1:                               ; @.str.1
	.asciz	"-----\n"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_PEM_BUFSIZE,4,2                ; @PEM_BUFSIZE
l_.str.3:                               ; @.str.3
	.asciz	"-----END "

	.comm	_PEM_F_PEM_WRITE_BIO,4,2        ; @PEM_F_PEM_WRITE_BIO
.subsections_via_symbols
