	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dh_priv_encode
_dh_priv_encode:                        ## @dh_priv_encode
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_ASN1_STRING_new
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rsi
	movq	%r15, %rdx
	addq	$12, %rdx
	movq	%rbx, %rdi
	callq	_i2d_dhp
	movq	%rax, (%r15)
	testq	%rax, %rax
	jle	LBB0_1
## %bb.4:
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_BN_to_ASN1_INTEGER
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_i2d_ASN1_INTEGER
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ASN1_STRING_clear_free
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %r9
	movl	%r13d, (%rsp)
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_PKCS8_pkey_set0
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rdi
	jmp	LBB0_8
LBB0_1:
	movq	_DH_F_DH_PRIV_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_DHerr
	xorl	%edi, %edi
LBB0_8:
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_ASN1_STRING_free
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASN1_STRING_clear_free
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_DH_F_DH_PRIV_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DH_R_BN_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_DH_F_DH_PRIV_ENCODE,4,2        ## @DH_F_DH_PRIV_ENCODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.comm	_DH_R_BN_ERROR,4,2              ## @DH_R_BN_ERROR
	.no_dead_strip	_dh_priv_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dh_priv_encode
_dh_priv_encode:                        ; @dh_priv_encode
	.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, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	bl	_ASN1_STRING_new
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x1, [x21, #8]
	add	x2, x19, #12
	mov	x0, x21
	bl	_i2d_dhp
	str	x0, [x19]
	cmp	x0, #0
	b.le	LBB0_5
; %bb.2:
Lloh0:
	adrp	x24, _V_ASN1_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _V_ASN1_SEQUENCE@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x19, #8]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	mov	x1, #0
	bl	_BN_to_ASN1_INTEGER
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	add	x1, sp, #8
	bl	_i2d_ASN1_INTEGER
	mov	x23, x0
	mov	x0, x22
	bl	_ASN1_STRING_clear_free
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	mov	x1, x0
	ldr	w3, [x24]
	ldr	x5, [sp, #8]
	mov	x0, x20
	mov	w2, #0
	mov	x4, x19
	mov	x6, x23
	bl	_PKCS8_pkey_set0
	cbz	w0, LBB0_10
; %bb.4:
	mov	w0, #1
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _DH_F_DH_PRIV_ENCODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DH_F_DH_PRIV_ENCODE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_DHerr
	mov	x0, #0
LBB0_7:
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_ASN1_STRING_free
	mov	x0, #0
	bl	_ASN1_STRING_clear_free
	mov	w0, #0
LBB0_8:
	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
LBB0_9:
Lloh7:
	adrp	x8, _DH_F_DH_PRIV_ENCODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DH_F_DH_PRIV_ENCODE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _DH_R_BN_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DH_R_BN_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	ldr	x0, [sp, #8]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DH_F_DH_PRIV_ENCODE,4,2        ; @DH_F_DH_PRIV_ENCODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.comm	_DH_R_BN_ERROR,4,2              ; @DH_R_BN_ERROR
	.no_dead_strip	_dh_priv_encode
.subsections_via_symbols
