	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_item_i2d_bio              ## -- Begin function ASN1_item_i2d_bio
	.p2align	4, 0x90
_ASN1_item_i2d_bio:                     ## @ASN1_item_i2d_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rax
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rdx, %rdi
	movq	%rax, %rdx
	callq	_ASN1_item_i2d
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_BIO_write
	movl	$1, %r14d
	cmpl	%eax, %r12d
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %ebx
	subl	%eax, %r12d
	movslq	%ebx, %rsi
	addq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_BIO_write
	cmpl	%eax, %r12d
	jne	LBB0_3
	jmp	LBB0_6
LBB0_8:
	movq	_ASN1_F_ASN1_ITEM_I2D_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
LBB0_6:
	movq	-40(%rbp), %rdi
	callq	_OPENSSL_free
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_ASN1_ITEM_I2D_BIO,4,2   ## @ASN1_F_ASN1_ITEM_I2D_BIO
	.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	_ASN1_item_i2d_bio              ; -- Begin function ASN1_item_i2d_bio
	.p2align	2
_ASN1_item_i2d_bio:                     ; @ASN1_item_i2d_bio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x8, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x2
	mov	x2, x8
	bl	_ASN1_item_i2d
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x2, x20
	bl	_BIO_write
	cmp	w20, w0
	b.eq	LBB0_5
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w0, w21
	sub	w20, w20, w0
	ldr	x8, [sp, #8]
	add	x1, x8, w21, sxtw
	mov	x0, x19
	mov	x2, x20
	bl	_BIO_write
	cmp	w20, w0
	b.ne	LBB0_3
LBB0_5:
	mov	w19, #1
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _ASN1_F_ASN1_ITEM_I2D_BIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_ASN1_ITEM_I2D_BIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w19, #0
	b	LBB0_9
LBB0_7:
	mov	w19, #0
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_ASN1_ITEM_I2D_BIO,4,2   ; @ASN1_F_ASN1_ITEM_I2D_BIO
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
