	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dh_sharedinfo_encode
_dh_sharedinfo_encode:                  ## @dh_sharedinfo_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DH_KDF_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r12d, %r12d
	cmpq	%r9, %rax
	jb	LBB0_12
## %bb.1:
	cmpq	%rcx, %rax
	jb	LBB0_12
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	_dh_sharedinfo_encode.ctr(%rip), %rax
	movq	%rax, -152(%rbp)
	movl	$4, -144(%rbp)
	movq	$0, -136(%rbp)
	movq	_V_ASN1_OCTET_STRING@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -128(%rbp)
	movq	%rax, -64(%rbp)
	leaq	-152(%rbp), %rsi
	movq	%rsi, -72(%rbp)
	movq	%rdx, -80(%rbp)
	leaq	-72(%rbp), %rdx
	movq	%rdx, -88(%rbp)
	xorl	%r12d, %r12d
	testq	%r8, %r8
	je	LBB0_3
## %bb.4:
	movq	%rax, -96(%rbp)
	movq	$0, -104(%rbp)
	movq	%r8, -120(%rbp)
	movl	%r9d, -112(%rbp)
	leaq	-120(%rbp), %rdx
	jmp	LBB0_5
LBB0_3:
	xorl	%edx, %edx
LBB0_5:
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_CMS_SharedInfo_encode
	testl	%eax, %eax
	jle	LBB0_12
## %bb.6:
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movl	%r15d, %eax
	movq	%rax, -56(%rbp)
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_skip_asn1
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	(%rbx), %rdx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_skip_asn1
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movq	_V_ASN1_OBJECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_skip_asn1
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movq	(%r13), %rdx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_skip_asn1
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rdi
	leaq	_dh_sharedinfo_encode.ctr(%rip), %rsi
	movl	$4, %edx
	callq	_CRYPTO_memcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	movl	%r15d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_dh_sharedinfo_encode.ctr:              ## @dh_sharedinfo_encode.ctr
	.ascii	"\363\027\"S"

	.comm	_DH_KDF_MAX,8,3                 ## @DH_KDF_MAX
	.comm	_V_ASN1_OCTET_STRING,8,3        ## @V_ASN1_OCTET_STRING
	.comm	_V_ASN1_SEQUENCE,8,3            ## @V_ASN1_SEQUENCE
	.comm	_V_ASN1_OBJECT,8,3              ## @V_ASN1_OBJECT
	.no_dead_strip	_dh_sharedinfo_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dh_sharedinfo_encode
_dh_sharedinfo_encode:                  ; @dh_sharedinfo_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, _DH_KDF_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DH_KDF_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x5
	ccmp	x8, x3, #0, hs
	b.lo	LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _dh_sharedinfo_encode.ctr@PAGE
Lloh4:
	add	x8, x8, _dh_sharedinfo_encode.ctr@PAGEOFF
	str	x8, [sp, #48]
	mov	w8, #4
	str	w8, [sp, #56]
Lloh5:
	adrp	x22, _V_ASN1_OCTET_STRING@GOTPAGE
Lloh6:
	ldr	x22, [x22, _V_ASN1_OCTET_STRING@GOTPAGEOFF]
	ldr	x8, [x22]
	stp	xzr, x8, [sp, #64]
	add	x9, sp, #48
	stp	x9, x8, [sp]
	mov	x9, sp
	stp	x9, x2, [x29, #-64]
	cbz	x4, LBB0_3
; %bb.2:
	stp	xzr, x8, [sp, #32]
	str	x4, [sp, #16]
	add	x2, sp, #16
	str	w5, [sp, #24]
	b	LBB0_4
LBB0_3:
	mov	x2, #0
LBB0_4:
	sub	x1, x29, #64
	mov	x0, x21
	bl	_CMS_SharedInfo_encode
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x20, x0
	ldr	x9, [x21]
	mov	w8, w0
	stp	x8, x9, [x29, #-48]
Lloh7:
	adrp	x21, _V_ASN1_SEQUENCE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _V_ASN1_SEQUENCE@GOTPAGEOFF]
	ldr	x2, [x21]
	sub	x0, x29, #40
	sub	x1, x29, #48
	bl	_skip_asn1
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x2, [x21]
	sub	x0, x29, #40
	sub	x1, x29, #48
	bl	_skip_asn1
	cbz	w0, LBB0_10
; %bb.7:
Lloh9:
	adrp	x8, _V_ASN1_OBJECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V_ASN1_OBJECT@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	sub	x0, x29, #40
	sub	x1, x29, #48
	bl	_skip_asn1
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x2, [x22]
	sub	x0, x29, #40
	sub	x1, x29, #48
	bl	_skip_asn1
	cbz	w0, LBB0_10
; %bb.9:
	ldur	x0, [x29, #-40]
Lloh12:
	adrp	x1, _dh_sharedinfo_encode.ctr@PAGE
Lloh13:
	add	x1, x1, _dh_sharedinfo_encode.ctr@PAGEOFF
	mov	w2, #4
	bl	_CRYPTO_memcmp
	cbz	x0, LBB0_12
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_12:
	ldur	x8, [x29, #-40]
	str	x8, [x19]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_dh_sharedinfo_encode.ctr:              ; @dh_sharedinfo_encode.ctr
	.ascii	"\363\027\"S"

	.comm	_DH_KDF_MAX,8,3                 ; @DH_KDF_MAX
	.comm	_V_ASN1_OCTET_STRING,8,3        ; @V_ASN1_OCTET_STRING
	.comm	_V_ASN1_SEQUENCE,8,3            ; @V_ASN1_SEQUENCE
	.comm	_V_ASN1_OBJECT,8,3              ; @V_ASN1_OBJECT
	.no_dead_strip	_dh_sharedinfo_encode
.subsections_via_symbols
