	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SMIME_crlf_copy                ## -- Begin function SMIME_crlf_copy
	.p2align	4, 0x90
_SMIME_crlf_copy:                       ## @SMIME_crlf_copy
	.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
	movl	%edx, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SMLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_f_buffer
	movl	%eax, %edi
	callq	_BIO_new
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_BIO_push
	movq	%rax, %r15
	movq	_SMIME_BINARY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.2:
	movq	_MAX_SMLEN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_BIO_read
	movl	%eax, -52(%rbp)
	testl	%eax, %eax
	jle	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_BIO_write
	jmp	LBB0_3
LBB0_5:
	movq	_SMIME_TEXT@GOTPCREL(%rip), %rax
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_BIO_printf
LBB0_7:
	movq	_MAX_SMLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_BIO_gets
	movl	%eax, -52(%rbp)
	testl	%eax, %eax
	jle	LBB0_25
## %bb.8:
	xorl	%r14d, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_BIO_gets
	movl	%eax, -52(%rbp)
	movl	%r12d, %r14d
	testl	%eax, %eax
	jle	LBB0_25
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%rbx, %rdi
	leaq	-52(%rbp), %rsi
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_strip_eol
	movl	%eax, %ecx
	movl	-52(%rbp), %edx
	movq	_SMIME_ASCIICRLF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %edx
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r13d, %eax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%ecx, %r13d
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	leaq	L_.str.1(%rip), %rbx
	jle	LBB0_20
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_BIO_write
	decl	%r14d
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-52(%rbp), %edx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%r13d, %eax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%r14d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%ecx, %r13d
	movl	%r14d, %r12d
	leaq	L_.str.1(%rip), %rbx
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_BIO_write
	testb	%r13b, %r13b
	movq	_MAX_SMLEN@GOTPCREL(%rip), %r14
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_BIO_write
	jmp	LBB0_10
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	testb	%cl, %cl
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edx
	callq	_BIO_write
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r14d, %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_MAX_SMLEN@GOTPCREL(%rip), %r14
	jmp	LBB0_11
LBB0_25:
	movq	%r15, %rdi
	callq	_BIO_flush
	movq	%r15, %rdi
	callq	_BIO_pop
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_free
	movl	$1, %r15d
	movq	-96(%rbp), %r14                 ## 8-byte Reload
LBB0_26:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SMLEN,4,2                  ## @MAX_SMLEN
	.comm	_SMIME_BINARY,4,2               ## @SMIME_BINARY
	.comm	_SMIME_TEXT,4,2                 ## @SMIME_TEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Content-Type: text/plain\r\n\r\n"

	.comm	_SMIME_ASCIICRLF,4,2            ## @SMIME_ASCIICRLF
L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SMIME_crlf_copy                ; -- Begin function SMIME_crlf_copy
	.p2align	2
_SMIME_crlf_copy:                       ; @SMIME_crlf_copy
	.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, #32
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	x24, sp
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	x27, _MAX_SMLEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAX_SMLEN@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_BIO_f_buffer
	bl	_BIO_new
	cbz	x0, LBB0_22
; %bb.1:
	mov	x21, x0
	mov	x1, x22
	bl	_BIO_push
	mov	x22, x0
Lloh7:
	adrp	x8, _SMIME_BINARY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SMIME_BINARY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w23
	stur	x24, [x29, #-104]               ; 8-byte Folded Spill
	b.eq	LBB0_5
; %bb.2:
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_BIO_read
	stur	w0, [x29, #-92]
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.3:
	mov	x2, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_BIO_write
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_BIO_read
	mov	x2, x0
	stur	w0, [x29, #-92]
	cmp	w0, #0
	b.gt	LBB0_4
	b	LBB0_21
LBB0_5:
Lloh10:
	adrp	x8, _SMIME_TEXT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMIME_TEXT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_BIO_printf
LBB0_7:
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_BIO_gets
	stur	w0, [x29, #-92]
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.8:
	mov	w26, #0
Lloh15:
	adrp	x28, _SMIME_ASCIICRLF@GOTPAGE
Lloh16:
	ldr	x28, [x28, _SMIME_ASCIICRLF@GOTPAGEOFF]
Lloh17:
	adrp	x24, l_.str.1@PAGE
Lloh18:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	cbz	w8, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w26, w26, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_BIO_gets
	stur	w0, [x29, #-92]
	cmp	w0, #0
	b.le	LBB0_21
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	sub	x1, x29, #92
	mov	x0, x20
	mov	x2, x23
	bl	_strip_eol
	mov	x25, x0
	ldur	w2, [x29, #-92]
	ldr	w8, [x28]
	and	w8, w8, w23
	cbz	w2, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	w8, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w26, #1
	b.lt	LBB0_17
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x24
	mov	w2, #2
	bl	_BIO_write
	subs	w26, w26, #1
	b.ne	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w2, [x29, #-92]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w26, #0
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_BIO_write
	cbz	w25, LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	w2, #2
	bl	_BIO_write
	b	LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w25, LBB0_19
	b	LBB0_11
LBB0_21:
	mov	x0, x22
	bl	_BIO_flush
	mov	x0, x22
	bl	_BIO_pop
	mov	x0, x21
	bl	_BIO_free
	mov	w0, #1
	ldur	x24, [x29, #-104]               ; 8-byte Folded Reload
LBB0_22:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	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_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SMLEN,4,2                  ; @MAX_SMLEN
	.comm	_SMIME_BINARY,4,2               ; @SMIME_BINARY
	.comm	_SMIME_TEXT,4,2                 ; @SMIME_TEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Content-Type: text/plain\r\n\r\n"

	.comm	_SMIME_ASCIICRLF,4,2            ; @SMIME_ASCIICRLF
l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

.subsections_via_symbols
