	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_dh_ctrl
_pkey_dh_ctrl:                          ## @pkey_dh_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$16, %esi
	ja	LBB0_28
## %bb.1:
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	(%rdi), %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	movl	$1, %eax
	jmpq	*%rcx
LBB0_2:
	movq	40(%r15), %rax
	movq	%rax, (%rbx)
	movl	48(%r15), %eax
	jmp	LBB0_36
LBB0_3:
	movl	32(%r15), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_35
LBB0_4:
	movq	56(%r15), %rax
	jmp	LBB0_6
LBB0_5:
	movq	64(%r15), %rax
LBB0_6:
	movq	%rax, (%rbx)
	jmp	LBB0_35
LBB0_7:
	leal	-4(%r14), %ecx
	movl	$-2, %eax
	cmpl	$-3, %ecx
	jb	LBB0_36
## %bb.8:
	movl	20(%r15), %ecx
	movq	_NID_undef@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_36
## %bb.9:
	movl	%r14d, 24(%r15)
	jmp	LBB0_35
LBB0_10:
	movl	$-2, %eax
	cmpl	$2, %r14d
	ja	LBB0_36
## %bb.11:
	movl	%r14d, 4(%r15)
	jmp	LBB0_35
LBB0_12:
	cmpl	$0, 4(%r15)
	je	LBB0_28
## %bb.13:
	movl	%r14d, 8(%r15)
	jmp	LBB0_35
LBB0_14:
	movl	$-2, %eax
	cmpl	$256, %r14d                     ## imm = 0x100
	jl	LBB0_36
## %bb.15:
	movl	%r14d, (%r15)
	jmp	LBB0_35
LBB0_16:
	movl	$-2, %eax
	cmpl	$0, 4(%r15)
	jne	LBB0_36
## %bb.17:
	movl	%r14d, 16(%r15)
	jmp	LBB0_35
LBB0_18:
	movl	%r14d, 12(%r15)
	jmp	LBB0_35
LBB0_19:
	movl	$-2, %eax
	testl	%r14d, %r14d
	jle	LBB0_36
## %bb.20:
	cmpl	$0, 24(%r15)
	jne	LBB0_36
## %bb.21:
	movl	%r14d, 20(%r15)
	jmp	LBB0_35
LBB0_22:
	movq	40(%r15), %rdi
	callq	_OPENSSL_free
	movq	%rbx, 40(%r15)
	testq	%rbx, %rbx
	je	LBB0_34
## %bb.23:
	movl	%r14d, 48(%r15)
	jmp	LBB0_35
LBB0_24:
	cmpl	$-2, %r14d
	jne	LBB0_31
## %bb.25:
	movl	28(%r15), %eax
	jmp	LBB0_36
LBB0_26:
	testl	%r14d, %r14d
	jle	LBB0_28
## %bb.27:
	movl	%r14d, %eax
	movq	%rax, 32(%r15)
	jmp	LBB0_35
LBB0_28:
	movl	$-2, %eax
	jmp	LBB0_36
LBB0_29:
	movq	56(%r15), %rdi
	callq	_ASN1_OBJECT_free
	movq	%rbx, 56(%r15)
	jmp	LBB0_35
LBB0_30:
	movq	%rbx, 64(%r15)
	jmp	LBB0_35
LBB0_31:
	movq	_EVP_PKEY_DH_KDF_NONE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_33
## %bb.32:
	movq	_EVP_PKEY_DH_KDF_X9_42@GOTPCREL(%rip), %rcx
	movl	$-2, %eax
	cmpl	%r14d, (%rcx)
	jne	LBB0_36
LBB0_33:
	movl	%r14d, 28(%r15)
	jmp	LBB0_35
LBB0_34:
	movl	$0, 48(%r15)
LBB0_35:
	movl	$1, %eax
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
LJTI0_0:
	.long	L0_0_set_36
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_22
	.long	L0_0_set_24
	.long	L0_0_set_26
	.long	L0_0_set_29
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_EVP_PKEY_DH_KDF_NONE,4,2       ## @EVP_PKEY_DH_KDF_NONE
	.comm	_EVP_PKEY_DH_KDF_X9_42,4,2      ## @EVP_PKEY_DH_KDF_X9_42
	.no_dead_strip	_pkey_dh_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_dh_ctrl
_pkey_dh_ctrl:                          ; @pkey_dh_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	w8, w1, #128
	cmp	w8, #16
	b.hi	LBB0_32
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	ldr	x21, [x0]
	mov	w0, #1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x21, #40]
	str	x8, [x20]
	ldr	w0, [x21, #48]
	b	LBB0_33
LBB0_3:
	ldr	x8, [x21, #32]
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_33
LBB0_4:
	ldr	x8, [x21, #56]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x21, #64]
LBB0_6:
	str	x8, [x20]
	mov	w0, #1
	b	LBB0_33
LBB0_7:
	sub	w8, w19, #4
	cmn	w8, #3
	b.lo	LBB0_32
; %bb.8:
	ldr	w8, [x21, #20]
Lloh2:
	adrp	x9, _NID_undef@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NID_undef@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_32
; %bb.9:
	str	w19, [x21, #24]
	mov	w0, #1
	b	LBB0_33
LBB0_10:
	cmp	w19, #2
	b.hi	LBB0_32
; %bb.11:
	str	w19, [x21, #4]
	mov	w0, #1
	b	LBB0_33
LBB0_12:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_32
; %bb.13:
	str	w19, [x21, #8]
	mov	w0, #1
	b	LBB0_33
LBB0_14:
	cmp	w19, #256
	b.lt	LBB0_32
; %bb.15:
	str	w19, [x21]
	mov	w0, #1
	b	LBB0_33
LBB0_16:
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_32
; %bb.17:
	str	w19, [x21, #16]
	mov	w0, #1
	b	LBB0_33
LBB0_18:
	str	w19, [x21, #12]
	mov	w0, #1
	b	LBB0_33
LBB0_19:
	cmp	w19, #1
	b.lt	LBB0_32
; %bb.20:
	ldr	w8, [x21, #24]
	cbnz	w8, LBB0_32
; %bb.21:
	str	w19, [x21, #20]
	mov	w0, #1
	b	LBB0_33
LBB0_22:
	ldr	x0, [x21, #40]
	bl	_OPENSSL_free
	str	x20, [x21, #40]
	cbz	x20, LBB0_34
; %bb.23:
	str	w19, [x21, #48]
	mov	w0, #1
	b	LBB0_33
LBB0_24:
	cmn	w19, #2
	b.ne	LBB0_30
; %bb.25:
	ldr	w0, [x21, #28]
	b	LBB0_33
LBB0_26:
	cmp	w19, #1
	b.lt	LBB0_32
; %bb.27:
	mov	w8, w19
	str	x8, [x21, #32]
	mov	w0, #1
	b	LBB0_33
LBB0_28:
	ldr	x0, [x21, #56]
	bl	_ASN1_OBJECT_free
	str	x20, [x21, #56]
	mov	w0, #1
	b	LBB0_33
LBB0_29:
	str	x20, [x21, #64]
	mov	w0, #1
	b	LBB0_33
LBB0_30:
Lloh5:
	adrp	x8, _EVP_PKEY_DH_KDF_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVP_PKEY_DH_KDF_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EVP_PKEY_DH_KDF_X9_42@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EVP_PKEY_DH_KDF_X9_42@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_32
; %bb.31:
	str	w19, [x21, #28]
	mov	w0, #1
	b	LBB0_33
LBB0_32:
	mov	w0, #-2
LBB0_33:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_34:
	str	wzr, [x21, #48]
	mov	w0, #1
	b	LBB0_33
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_33-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
                                        ; -- End function
	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_EVP_PKEY_DH_KDF_NONE,4,2       ; @EVP_PKEY_DH_KDF_NONE
	.comm	_EVP_PKEY_DH_KDF_X9_42,4,2      ; @EVP_PKEY_DH_KDF_X9_42
	.no_dead_strip	_pkey_dh_ctrl
.subsections_via_symbols
