	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_email
_copy_email:                            ## @copy_email
	.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
	pushq	%rax
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	_X509V3_R_NO_SUBJECT_DETAILS@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	(%rdi), %rax
	movq	_CTX_TEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movl	$1, %ebx
	jmp	LBB0_19
LBB0_3:
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_X509_get_subject_name
	jmp	LBB0_7
LBB0_5:
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.6:
	callq	_X509_REQ_get_subject_name
LBB0_7:
	movq	%rax, %r13
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NID_pkcs9_emailAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_X509_NAME_get_index_by_NID
	testl	%eax, %eax
	js	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_X509_NAME_get_entry
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_X509_NAME_ENTRY_get_data
	movl	%eax, %edi
	callq	_ASN1_STRING_dup
	movq	%rax, %r14
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_X509_NAME_delete_entry
	movq	%r15, %rdi
	callq	_X509_NAME_ENTRY_free
	decl	%ebx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r14, %r14
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_GENERAL_NAME_new
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r15
	movq	%r14, 8(%rax)
	movq	_GEN_EMAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_sk_GENERAL_NAME_push
	testl	%eax, %eax
	jne	LBB0_8
## %bb.14:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_15:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	xorl	%ebx, %ebx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rdx
LBB0_18:
	movq	_X509V3_F_COPY_EMAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rdx), %esi
	callq	_X509V3err
	movq	%r15, %rdi
	callq	_GENERAL_NAME_free
	movq	%r14, %rdi
	callq	_ASN1_IA5STRING_free
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_TEST,8,3                   ## @CTX_TEST
	.comm	_X509V3_F_COPY_EMAIL,4,2        ## @X509V3_F_COPY_EMAIL
	.comm	_X509V3_R_NO_SUBJECT_DETAILS,4,2 ## @X509V3_R_NO_SUBJECT_DETAILS
	.comm	_NID_pkcs9_emailAddress,4,2     ## @NID_pkcs9_emailAddress
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_GEN_EMAIL,4,2                  ## @GEN_EMAIL
	.no_dead_strip	_copy_email
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_email
_copy_email:                            ; @copy_email
	.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
	cbz	x0, LBB0_15
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CTX_TEST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CTX_TEST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_17
LBB0_3:
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x8
	bl	_X509_get_subject_name
	b	LBB0_7
LBB0_5:
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_15
; %bb.6:
	bl	_X509_REQ_get_subject_name
LBB0_7:
	mov	x21, x0
	mov	w23, #-1
Lloh3:
	adrp	x26, _NID_pkcs9_emailAddress@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NID_pkcs9_emailAddress@GOTPAGEOFF]
Lloh5:
	adrp	x25, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _GEN_EMAIL@GOTPAGE
Lloh8:
	ldr	x27, [x27, _GEN_EMAIL@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x23
	bl	_X509_NAME_get_index_by_NID
	tbnz	w0, #31, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_X509_NAME_get_entry
	mov	x24, x0
	bl	_X509_NAME_ENTRY_get_data
	bl	_ASN1_STRING_dup
	mov	x22, x0
	cbz	w19, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_X509_NAME_delete_entry
	mov	x0, x24
	bl	_X509_NAME_ENTRY_free
	sub	w23, w23, #1
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x22, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_GENERAL_NAME_new
	mov	x24, x0
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x22, [x24, #8]
	ldr	w8, [x27]
	str	w8, [x24]
	mov	x0, x20
	mov	x1, x24
	bl	_sk_GENERAL_NAME_push
	cbnz	w0, LBB0_8
; %bb.14:
	mov	x22, #0
	b	LBB0_16
LBB0_15:
	mov	x22, #0
	mov	x24, #0
Lloh9:
	adrp	x25, _X509V3_R_NO_SUBJECT_DETAILS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _X509V3_R_NO_SUBJECT_DETAILS@GOTPAGEOFF]
LBB0_16:
Lloh11:
	adrp	x8, _X509V3_F_COPY_EMAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _X509V3_F_COPY_EMAIL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x25]
	bl	_X509V3err
	mov	x0, x24
	bl	_GENERAL_NAME_free
	mov	x0, x22
	bl	_ASN1_IA5STRING_free
	mov	w0, #0
LBB0_17:
	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_18:
	mov	x24, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CTX_TEST,8,3                   ; @CTX_TEST
	.comm	_X509V3_F_COPY_EMAIL,4,2        ; @X509V3_F_COPY_EMAIL
	.comm	_X509V3_R_NO_SUBJECT_DETAILS,4,2 ; @X509V3_R_NO_SUBJECT_DETAILS
	.comm	_NID_pkcs9_emailAddress,4,2     ; @NID_pkcs9_emailAddress
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_GEN_EMAIL,4,2                  ; @GEN_EMAIL
	.no_dead_strip	_copy_email
.subsections_via_symbols
