	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_ext_i2d
_do_ext_i2d:                            ## @do_ext_i2d
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	$0, -48(%rbp)
	callq	_ASN1_ITEM_ptr
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_ASN1_item_i2d
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_2
LBB0_4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*(%rbx)
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	*(%rbx)
LBB0_6:
	xorl	%eax, %eax
	callq	_ASN1_OCTET_STRING_new
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%rax, %r13
	movq	-48(%rbp), %rax
	movq	%rax, (%r13)
	movq	$0, -48(%rbp)
	movl	%r12d, 8(%r13)
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%r13, %rcx
	callq	_X509_EXTENSION_create_by_NID
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ASN1_OCTET_STRING_free
	jmp	LBB0_9
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	movq	_X509V3_F_DO_EXT_I2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509V3err
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r13, %rdi
	callq	_ASN1_OCTET_STRING_free
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509V3_F_DO_EXT_I2D,4,2        ## @X509V3_F_DO_EXT_I2D
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_do_ext_i2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_ext_i2d
_do_ext_i2d:                            ; @do_ext_i2d
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [sp, #8]
	bl	_ASN1_ITEM_ptr
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_ASN1_item_i2d
	mov	x22, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_7
LBB0_2:
	ldr	x8, [x23]
	mov	x0, x21
	mov	x1, #0
	blr	x8
	mov	x22, x0
	bl	_OPENSSL_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_7
; %bb.3:
	str	x0, [sp]
	ldr	x8, [x23]
	mov	x1, sp
	mov	x0, x21
	blr	x8
LBB0_4:
	bl	_ASN1_OCTET_STRING_new
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [sp, #8]
	str	x8, [x21]
	str	xzr, [sp, #8]
	str	w22, [x21, #8]
	mov	x0, #0
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_X509_EXTENSION_create_by_NID
	cbz	x0, LBB0_8
; %bb.6:
	mov	x19, x0
	mov	x0, x21
	bl	_ASN1_OCTET_STRING_free
	b	LBB0_9
LBB0_7:
	mov	x21, #0
LBB0_8:
Lloh0:
	adrp	x8, _X509V3_F_DO_EXT_I2D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509V3_F_DO_EXT_I2D@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	_X509V3err
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x21
	bl	_ASN1_OCTET_STRING_free
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_X509V3_F_DO_EXT_I2D,4,2        ; @X509V3_F_DO_EXT_I2D
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_do_ext_i2d
.subsections_via_symbols
