	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_pkex_get_role_elem
_dpp_pkex_get_role_elem:                ## @dpp_pkex_get_role_elem
	.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
	movl	8(%rdi), %eax
	addl	$-19, %eax
	cmpl	$11, %eax
	ja	LBB0_4
## %bb.1:
	movl	$3591, %ecx                     ## imm = 0xE07
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.2:
	movl	%esi, %r13d
	movq	(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cltq
	leaq	l_switch.table.dpp_pkex_get_role_elem(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.dpp_pkex_get_role_elem.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	leaq	l_switch.table.dpp_pkex_get_role_elem.2(%rip), %rsi
	movq	(%rsi,%rax,8), %rsi
	leaq	l_switch.table.dpp_pkex_get_role_elem.3(%rip), %rbx
	movq	(%rbx,%rax,8), %rax
	movq	(%rcx), %r15
	movq	(%rdx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	(%rax), %r14
	movl	12(%rdi), %edi
	callq	_OBJ_txt2nid
	movl	%eax, %edi
	callq	_EC_GROUP_new_by_curve_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	testl	%r13d, %r13d
	cmoveq	%r14, %r12
	cmoveq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_dpp_set_pubkey_point_group
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_EC_GROUP_free
	movq	%r14, %rax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pkex_init_x_p256,8,3           ## @pkex_init_x_p256
	.comm	_pkex_resp_x_p256,8,3           ## @pkex_resp_x_p256
	.comm	_pkex_init_y_p256,8,3           ## @pkex_init_y_p256
	.comm	_pkex_resp_y_p256,8,3           ## @pkex_resp_y_p256
	.comm	_pkex_init_x_p384,8,3           ## @pkex_init_x_p384
	.comm	_pkex_resp_x_p384,8,3           ## @pkex_resp_x_p384
	.comm	_pkex_init_y_p384,8,3           ## @pkex_init_y_p384
	.comm	_pkex_resp_y_p384,8,3           ## @pkex_resp_y_p384
	.comm	_pkex_init_x_p521,8,3           ## @pkex_init_x_p521
	.comm	_pkex_resp_x_p521,8,3           ## @pkex_resp_x_p521
	.comm	_pkex_init_y_p521,8,3           ## @pkex_init_y_p521
	.comm	_pkex_resp_y_p521,8,3           ## @pkex_resp_y_p521
	.comm	_pkex_init_x_bp_p256r1,8,3      ## @pkex_init_x_bp_p256r1
	.comm	_pkex_resp_x_bp_p256r1,8,3      ## @pkex_resp_x_bp_p256r1
	.comm	_pkex_init_y_bp_p256r1,8,3      ## @pkex_init_y_bp_p256r1
	.comm	_pkex_resp_y_bp_p256r1,8,3      ## @pkex_resp_y_bp_p256r1
	.comm	_pkex_init_x_bp_p384r1,8,3      ## @pkex_init_x_bp_p384r1
	.comm	_pkex_resp_x_bp_p384r1,8,3      ## @pkex_resp_x_bp_p384r1
	.comm	_pkex_init_y_bp_p384r1,8,3      ## @pkex_init_y_bp_p384r1
	.comm	_pkex_resp_y_bp_p384r1,8,3      ## @pkex_resp_y_bp_p384r1
	.comm	_pkex_init_x_bp_p512r1,8,3      ## @pkex_init_x_bp_p512r1
	.comm	_pkex_resp_x_bp_p512r1,8,3      ## @pkex_resp_x_bp_p512r1
	.comm	_pkex_init_y_bp_p512r1,8,3      ## @pkex_init_y_bp_p512r1
	.comm	_pkex_resp_y_bp_p512r1,8,3      ## @pkex_resp_y_bp_p512r1
	.no_dead_strip	_dpp_pkex_get_role_elem
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.dpp_pkex_get_role_elem
l_switch.table.dpp_pkex_get_role_elem:
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p384
	.quad	_pkex_init_x_p521
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_bp_p256r1
	.quad	_pkex_init_x_bp_p384r1
	.quad	_pkex_init_x_bp_p512r1

	.p2align	3                               ## @switch.table.dpp_pkex_get_role_elem.1
l_switch.table.dpp_pkex_get_role_elem.1:
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p384
	.quad	_pkex_resp_x_p521
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_bp_p256r1
	.quad	_pkex_resp_x_bp_p384r1
	.quad	_pkex_resp_x_bp_p512r1

	.p2align	3                               ## @switch.table.dpp_pkex_get_role_elem.2
l_switch.table.dpp_pkex_get_role_elem.2:
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p384
	.quad	_pkex_init_y_p521
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_bp_p256r1
	.quad	_pkex_init_y_bp_p384r1
	.quad	_pkex_init_y_bp_p512r1

	.p2align	3                               ## @switch.table.dpp_pkex_get_role_elem.3
l_switch.table.dpp_pkex_get_role_elem.3:
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p384
	.quad	_pkex_resp_y_p521
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_bp_p256r1
	.quad	_pkex_resp_y_bp_p384r1
	.quad	_pkex_resp_y_bp_p512r1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_pkex_get_role_elem
_dpp_pkex_get_role_elem:                ; @dpp_pkex_get_role_elem
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0, #8]
	sub	w8, w8, #19
	cmp	w8, #11
	b.hi	LBB0_4
; %bb.1:
	mov	w9, #3591
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_4
; %bb.2:
	mov	x19, x1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.dpp_pkex_get_role_elem@PAGE
Lloh1:
	add	x9, x9, l_switch.table.dpp_pkex_get_role_elem@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.dpp_pkex_get_role_elem.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.dpp_pkex_get_role_elem.1@PAGEOFF
	ldr	x10, [x10, x8]
Lloh4:
	adrp	x11, l_switch.table.dpp_pkex_get_role_elem.2@PAGE
Lloh5:
	add	x11, x11, l_switch.table.dpp_pkex_get_role_elem.2@PAGEOFF
	ldr	x11, [x11, x8]
Lloh6:
	adrp	x12, l_switch.table.dpp_pkex_get_role_elem.3@PAGE
Lloh7:
	add	x12, x12, l_switch.table.dpp_pkex_get_role_elem.3@PAGEOFF
	ldr	x8, [x12, x8]
	ldr	x20, [x0]
	ldr	x22, [x9]
	ldr	x23, [x10]
	ldr	x24, [x11]
	ldr	x25, [x8]
	ldr	w0, [x0, #12]
	bl	_OBJ_txt2nid
	bl	_EC_GROUP_new_by_curve_name
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	cmp	w19, #0
	csel	x2, x25, x24, eq
	csel	x1, x23, x22, eq
	mov	x3, x20
	bl	_dpp_set_pubkey_point_group
	mov	x19, x0
	mov	x0, x21
	bl	_EC_GROUP_free
	mov	x0, x19
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pkex_init_x_p256,8,3           ; @pkex_init_x_p256
	.comm	_pkex_resp_x_p256,8,3           ; @pkex_resp_x_p256
	.comm	_pkex_init_y_p256,8,3           ; @pkex_init_y_p256
	.comm	_pkex_resp_y_p256,8,3           ; @pkex_resp_y_p256
	.comm	_pkex_init_x_p384,8,3           ; @pkex_init_x_p384
	.comm	_pkex_resp_x_p384,8,3           ; @pkex_resp_x_p384
	.comm	_pkex_init_y_p384,8,3           ; @pkex_init_y_p384
	.comm	_pkex_resp_y_p384,8,3           ; @pkex_resp_y_p384
	.comm	_pkex_init_x_p521,8,3           ; @pkex_init_x_p521
	.comm	_pkex_resp_x_p521,8,3           ; @pkex_resp_x_p521
	.comm	_pkex_init_y_p521,8,3           ; @pkex_init_y_p521
	.comm	_pkex_resp_y_p521,8,3           ; @pkex_resp_y_p521
	.comm	_pkex_init_x_bp_p256r1,8,3      ; @pkex_init_x_bp_p256r1
	.comm	_pkex_resp_x_bp_p256r1,8,3      ; @pkex_resp_x_bp_p256r1
	.comm	_pkex_init_y_bp_p256r1,8,3      ; @pkex_init_y_bp_p256r1
	.comm	_pkex_resp_y_bp_p256r1,8,3      ; @pkex_resp_y_bp_p256r1
	.comm	_pkex_init_x_bp_p384r1,8,3      ; @pkex_init_x_bp_p384r1
	.comm	_pkex_resp_x_bp_p384r1,8,3      ; @pkex_resp_x_bp_p384r1
	.comm	_pkex_init_y_bp_p384r1,8,3      ; @pkex_init_y_bp_p384r1
	.comm	_pkex_resp_y_bp_p384r1,8,3      ; @pkex_resp_y_bp_p384r1
	.comm	_pkex_init_x_bp_p512r1,8,3      ; @pkex_init_x_bp_p512r1
	.comm	_pkex_resp_x_bp_p512r1,8,3      ; @pkex_resp_x_bp_p512r1
	.comm	_pkex_init_y_bp_p512r1,8,3      ; @pkex_init_y_bp_p512r1
	.comm	_pkex_resp_y_bp_p512r1,8,3      ; @pkex_resp_y_bp_p512r1
	.no_dead_strip	_dpp_pkex_get_role_elem
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.dpp_pkex_get_role_elem
l_switch.table.dpp_pkex_get_role_elem:
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p384
	.quad	_pkex_init_x_p521
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_p256
	.quad	_pkex_init_x_bp_p256r1
	.quad	_pkex_init_x_bp_p384r1
	.quad	_pkex_init_x_bp_p512r1

	.p2align	3                               ; @switch.table.dpp_pkex_get_role_elem.1
l_switch.table.dpp_pkex_get_role_elem.1:
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p384
	.quad	_pkex_resp_x_p521
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_p256
	.quad	_pkex_resp_x_bp_p256r1
	.quad	_pkex_resp_x_bp_p384r1
	.quad	_pkex_resp_x_bp_p512r1

	.p2align	3                               ; @switch.table.dpp_pkex_get_role_elem.2
l_switch.table.dpp_pkex_get_role_elem.2:
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p384
	.quad	_pkex_init_y_p521
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_p256
	.quad	_pkex_init_y_bp_p256r1
	.quad	_pkex_init_y_bp_p384r1
	.quad	_pkex_init_y_bp_p512r1

	.p2align	3                               ; @switch.table.dpp_pkex_get_role_elem.3
l_switch.table.dpp_pkex_get_role_elem.3:
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p384
	.quad	_pkex_resp_y_p521
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_p256
	.quad	_pkex_resp_y_bp_p256r1
	.quad	_pkex_resp_y_bp_p384r1
	.quad	_pkex_resp_y_bp_p512r1

.subsections_via_symbols
