	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPTO_dup_ex_data             ## -- Begin function CRYPTO_dup_ex_data
	.p2align	4, 0x90
_CRYPTO_dup_ex_data:                    ## @CRYPTO_dup_ex_data
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, %ebx
	cmpq	$0, (%rdx)
	je	LBB0_25
## %bb.1:
	movq	%rdx, %r15
	callq	_get_and_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_sk_EX_CALLBACK_num
	movl	%eax, %r13d
	movq	(%r15), %rdi
	callq	_sk_void_num
	cmpl	%r13d, %eax
	cmovll	%eax, %r13d
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.5:
	leaq	-128(%rbp), %r12
	movq	%r12, %rdi
	callq	_OSSL_NELEM
	cmpl	%eax, %r13d
	jl	LBB0_7
## %bb.6:
	leal	(,%r13,8), %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_27
LBB0_7:
	movq	%r15, -152(%rbp)                ## 8-byte Spill
	movl	%r13d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_sk_EX_CALLBACK_value
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_8
## %bb.9:
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_4:
	xorl	%r12d, %r12d
LBB0_10:
	movq	_ex_data_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRYPTO_THREAD_unlock
	testl	%r13d, %r13d
	je	LBB0_25
## %bb.11:
	testq	%r12, %r12
	je	LBB0_12
## %bb.13:
	leal	-1(%r13), %r14d
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_CRYPTO_get_ex_data
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_CRYPTO_set_ex_data
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	je	LBB0_23
## %bb.14:
	testl	%r13d, %r13d
	jle	LBB0_23
## %bb.15:
	movl	%r13d, %r13d
	xorl	%ebx, %ebx
	leaq	-144(%rbp), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_CRYPTO_set_ex_data
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_22
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_CRYPTO_get_ex_data
	movq	%rax, -144(%rbp)
	movq	(%r12,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rcx), %r10
	testq	%r10, %r10
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rcx), %r9d
	movl	4(%rcx), %r8d
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	*%r10
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-144(%rbp), %rax
	jmp	LBB0_21
LBB0_22:
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_27:
	movq	_ex_data_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRYPTO_THREAD_unlock
LBB0_12:
	movq	_CRYPTO_F_CRYPTO_DUP_EX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CRYPTOerr
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_19:
	xorl	%ebx, %ebx
LBB0_23:
	leaq	-128(%rbp), %rax
	cmpq	%rax, %r12
	je	LBB0_25
## %bb.24:
	movq	%r12, %rdi
	callq	_OPENSSL_free
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.26:
	movl	%ebx, %eax
	addq	$120, %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	_ex_data_lock,4,2               ## @ex_data_lock
	.comm	_CRYPTO_F_CRYPTO_DUP_EX_DATA,4,2 ## @CRYPTO_F_CRYPTO_DUP_EX_DATA
	.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	_CRYPTO_dup_ex_data             ; -- Begin function CRYPTO_dup_ex_data
	.p2align	2
_CRYPTO_dup_ex_data:                    ; @CRYPTO_dup_ex_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x2]
	cbz	x8, LBB0_19
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	bl	_get_and_lock
	cbz	x0, LBB0_7
; %bb.2:
	mov	x23, x0
	ldr	w0, [x0]
	bl	_sk_EX_CALLBACK_num
	mov	x21, x0
	ldr	x0, [x19]
	bl	_sk_void_num
	cmp	w0, w21
	csel	w25, w0, w21, lt
	subs	w22, w25, #1
	b.lt	LBB0_8
; %bb.3:
	add	x21, sp, #8
	add	x0, sp, #8
	bl	_OSSL_NELEM
	cmp	w25, w0
	b.lt	LBB0_5
; %bb.4:
	lsl	w0, w25, #3
	bl	_OPENSSL_malloc
	mov	x21, x0
	cbz	x0, LBB0_21
LBB0_5:
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x24
	bl	_sk_EX_CALLBACK_value
	str	x0, [x21, x24, lsl #3]
	add	x24, x24, #1
	cmp	x25, x24
	b.ne	LBB0_6
	b	LBB0_9
LBB0_7:
	mov	w22, #0
	b	LBB0_26
LBB0_8:
	mov	x21, #0
LBB0_9:
Lloh3:
	adrp	x8, _ex_data_lock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ex_data_lock@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_CRYPTO_THREAD_unlock
	cbz	w25, LBB0_19
; %bb.10:
	cbz	x21, LBB0_22
; %bb.11:
	mov	x0, x20
	mov	x1, x22
	bl	_CRYPTO_get_ex_data
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_CRYPTO_set_ex_data
	cmp	w0, #0
	cset	w22, ne
	cbz	w0, LBB0_24
; %bb.12:
	cmp	w25, #1
	b.lt	LBB0_24
; %bb.13:
	mov	x22, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_CRYPTO_set_ex_data
	add	x22, x22, #1
	cmp	x25, x22
	b.eq	LBB0_20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_CRYPTO_get_ex_data
	mov	x2, x0
	str	x0, [sp]
	ldr	x9, [x21, x22, lsl #3]
	cbz	x9, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldp	w5, w4, [x9]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	blr	x8
	cbz	w0, LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x2, [sp]
	b	LBB0_14
LBB0_19:
	mov	w22, #1
	b	LBB0_26
LBB0_20:
	mov	w22, #1
	b	LBB0_24
LBB0_21:
Lloh6:
	adrp	x8, _ex_data_lock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ex_data_lock@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_CRYPTO_THREAD_unlock
LBB0_22:
Lloh9:
	adrp	x8, _CRYPTO_F_CRYPTO_DUP_EX_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRYPTO_F_CRYPTO_DUP_EX_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_CRYPTOerr
	mov	w22, #0
	b	LBB0_26
LBB0_23:
	mov	w22, #0
LBB0_24:
	add	x8, sp, #8
	cmp	x21, x8
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x21
	bl	_OPENSSL_free
LBB0_26:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_data_lock,4,2               ; @ex_data_lock
	.comm	_CRYPTO_F_CRYPTO_DUP_EX_DATA,4,2 ; @CRYPTO_F_CRYPTO_DUP_EX_DATA
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
