	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dh_priv_decode
_dh_priv_decode:                        ## @dh_priv_decode
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r8
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	xorl	%edi, %edi
	callq	_PKCS8_pkey_get0
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	-48(%rbp), %rcx
	xorl	%r15d, %r15d
	leaq	-36(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_X509_ALGOR_get0
	movl	-36(%rbp), %eax
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movq	_EVP_R_DECODE_ERROR@GOTPCREL(%rip), %r12
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.2:
	movl	-40(%rbp), %edx
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rsi
	xorl	%edi, %edi
	callq	_d2i_ASN1_INTEGER
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movq	-56(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rcx, -64(%rbp)
	movl	8(%rax), %edx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_d2i_dhp
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_BN_secure_new
	movq	%rax, (%rbx)
	movq	_DH_R_BN_ERROR@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ASN1_INTEGER_to_BN
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_DH_generate_key
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_EVP_PKEY_assign
	movq	%r15, %rdi
	callq	_ASN1_STRING_clear_free
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_DH_F_DH_PRIV_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_DHerr
LBB0_12:
	movq	%rbx, %rdi
	callq	_DH_free
	movq	%r15, %rdi
	callq	_ASN1_STRING_clear_free
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.comm	_DH_F_DH_PRIV_DECODE,4,2        ## @DH_F_DH_PRIV_DECODE
	.comm	_DH_R_BN_ERROR,4,2              ## @DH_R_BN_ERROR
	.comm	_EVP_R_DECODE_ERROR,4,2         ## @EVP_R_DECODE_ERROR
	.no_dead_strip	_dh_priv_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dh_priv_decode
_dh_priv_decode:                        ; @dh_priv_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x4, x1
	mov	x21, x0
	add	x1, sp, #40
	add	x2, sp, #28
	add	x3, sp, #8
	mov	x0, #0
	bl	_PKCS8_pkey_get0
	cbz	w0, LBB0_13
; %bb.1:
	ldr	x3, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, #0
	bl	_X509_ALGOR_get0
	ldr	w8, [sp, #24]
Lloh0:
	adrp	x9, _V_ASN1_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.2:
	ldr	w2, [sp, #28]
	add	x1, sp, #40
	mov	x0, #0
	bl	_d2i_ASN1_INTEGER
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [sp, #16]
	ldr	x9, [x8]
	str	x9, [sp, #32]
	ldr	w2, [x8, #8]
	add	x1, sp, #32
	mov	x0, x21
	bl	_d2i_dhp
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.4:
	bl	_BN_secure_new
	str	x0, [x20]
	cbz	x0, LBB0_14
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	bl	_ASN1_INTEGER_to_BN
	cbz	w0, LBB0_14
; %bb.6:
	mov	x0, x20
	bl	_DH_generate_key
	cbz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_EVP_PKEY_assign
	mov	x0, x19
	bl	_ASN1_STRING_clear_free
	mov	w0, #1
	b	LBB0_13
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x20, #0
LBB0_10:
Lloh3:
	adrp	x8, _EVP_R_DECODE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_R_DECODE_ERROR@GOTPAGEOFF]
LBB0_11:
Lloh5:
	adrp	x9, _DH_F_DH_PRIV_DECODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DH_F_DH_PRIV_DECODE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_DHerr
LBB0_12:
	mov	x0, x20
	bl	_DH_free
	mov	x0, x19
	bl	_ASN1_STRING_clear_free
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #96
	ret
LBB0_14:
Lloh8:
	adrp	x8, _DH_R_BN_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DH_R_BN_ERROR@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.comm	_DH_F_DH_PRIV_DECODE,4,2        ; @DH_F_DH_PRIV_DECODE
	.comm	_DH_R_BN_ERROR,4,2              ; @DH_R_BN_ERROR
	.comm	_EVP_R_DECODE_ERROR,4,2         ; @EVP_R_DECODE_ERROR
	.no_dead_strip	_dh_priv_decode
.subsections_via_symbols
