	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_key_share
_select_key_share:                      ## @select_key_share
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	$0, (%rdi)
	movq	(%rcx), %rax
	testl	%r9d, %r9d
	je	LBB0_3
## %bb.1:
	cmpq	%r12, %rax
	jne	LBB0_3
LBB0_2:
	movq	_PTLS_ALERT_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_3:
	cmpq	%r12, %rax
	je	LBB0_16
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	leaq	-72(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_decode_key_share_entry
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax
	movl	-44(%rbp), %ecx
	movq	(%rbx), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%rdx, (%rbx)
	movl	%ecx, (%r13)
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	(%rsi), %rdx
	addq	$8, %rsi
	testq	%rdx, %rdx
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpq	%rax, (%rdx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	xorl	%edi, %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r12, (%r15)
	jne	LBB0_5
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	je	LBB0_2
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ## @PTLS_ALERT_ILLEGAL_PARAMETER
	.no_dead_strip	_select_key_share
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_key_share
_select_key_share:                      ; @select_key_share
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	str	xzr, [x0]
	ldr	x8, [x3]
	cbz	w5, LBB0_3
; %bb.1:
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_3:
	cmp	x8, x20
	b.eq	LBB0_15
; %bb.4:
	add	x25, x22, #8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, x21
	mov	x3, x20
	bl	_decode_key_share_entry
	cbnz	w0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x22]
	cbz	x10, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	w9, [sp, #4]
	mov	x11, x25
	ldr	x12, [x23]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	x10, [x23]
	str	w9, [x24]
	mov	x12, x10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x10, [x11], #8
	cbz	x10, LBB0_13
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	x12, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x12, [x10]
	cmp	x12, x8
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x12, #0
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w19, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_5
LBB0_15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w0, w9, wzr, eq
LBB0_17:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ; @PTLS_ALERT_ILLEGAL_PARAMETER
	.no_dead_strip	_select_key_share
.subsections_via_symbols
