	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2d_ASN1_bio_stream            ## -- Begin function i2d_ASN1_bio_stream
	.p2align	4, 0x90
_i2d_ASN1_bio_stream:                   ## @i2d_ASN1_bio_stream
	.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
	movq	%rdx, %r12
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movq	_SMIME_STREAM@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.1:
	movl	%ecx, %r15d
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movq	%r8, %rdx
	callq	_BIO_new_NDEF
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_SMIME_crlf_copy
	movq	%rbx, %rdi
	callq	_BIO_flush
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_BIO_pop
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_BIO_free
	movq	%r15, %rbx
	cmpq	%r14, %r15
	jne	LBB0_4
	jmp	LBB0_6
LBB0_5:
	movq	%r8, %rdi
	movq	%r14, %rsi
	callq	_ASN1_item_i2d_bio
LBB0_6:
	movl	$1, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_ASN1_F_I2D_ASN1_BIO_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIME_STREAM,4,2               ## @SMIME_STREAM
	.comm	_ASN1_F_I2D_ASN1_BIO_STREAM,4,2 ## @ASN1_F_I2D_ASN1_BIO_STREAM
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2d_ASN1_bio_stream            ; -- Begin function i2d_ASN1_bio_stream
	.p2align	2
_i2d_ASN1_bio_stream:                   ; @i2d_ASN1_bio_stream
	.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	x22, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SMIME_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMIME_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x3
	mov	x0, x19
	mov	x1, x2
	mov	x2, x4
	bl	_BIO_new_NDEF
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_SMIME_crlf_copy
	mov	x0, x20
	bl	_BIO_flush
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_BIO_pop
	mov	x21, x0
	mov	x0, x20
	bl	_BIO_free
	mov	x20, x21
	cmp	x21, x19
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x0, x4
	mov	x1, x19
	bl	_ASN1_item_i2d_bio
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _ASN1_F_I2D_ASN1_BIO_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_F_I2D_ASN1_BIO_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIME_STREAM,4,2               ; @SMIME_STREAM
	.comm	_ASN1_F_I2D_ASN1_BIO_STREAM,4,2 ; @ASN1_F_I2D_ASN1_BIO_STREAM
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
