	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_schedule_select_one
_key_schedule_select_one:               ## @key_schedule_select_one
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%edi, %edi
	cmpl	$1, (%rbx)
	sete	%dil
	callq	_assert
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.1:
	movl	$8, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax,%r14), %rdi
	movq	_PTLS_HASH_FINAL_MODE_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	*(%rdi)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addq	$16, %r14
	cmpq	8(%rbx), %r12
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	-8(%rax,%r14), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	sete	%dil
	callq	_assert
	movq	%r12, %r13
	jmp	LBB0_5
LBB0_6:
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	24(%rbx), %rax
	shlq	$4, %r13
	movups	(%rax,%r13), %xmm0
	movups	%xmm0, (%rax)
	movq	$1, 8(%rbx)
	jmp	LBB0_9
LBB0_8:
	movq	$1, 8(%rbx)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
LBB0_9:
	decl	(%rbx)
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ptls_iovec_init
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_key_schedule_extract
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_PTLS_HASH_FINAL_MODE_FREE,4,2  ## @PTLS_HASH_FINAL_MODE_FREE
	.no_dead_strip	_key_schedule_select_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_schedule_select_one
_key_schedule_select_one:               ; @key_schedule_select_one
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SIZE_MAX@GOTPAGEOFF]
	ldr	x22, [x23]
	ldr	w8, [x0]
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x24, #0
	mov	x25, #0
Lloh2:
	adrp	x26, _PTLS_HASH_FINAL_MODE_FREE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PTLS_HASH_FINAL_MODE_FREE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x24
	ldr	x0, [x8, #8]
	ldr	x8, [x0]
	ldr	w2, [x26]
	mov	x1, #0
	blr	x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	x8, [x19, #8]
	add	x24, x24, #16
	cmp	x25, x8
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x8, x24]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	cmp	x22, x8
	cset	w0, eq
	bl	_assert
	mov	x22, x25
	b	LBB0_3
LBB0_6:
	cbz	x22, LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	q0, [x8, x22, lsl #4]
	str	q0, [x8]
	mov	w8, #1
	str	x8, [x19, #8]
	b	LBB0_9
LBB0_8:
	mov	w8, #1
	str	x8, [x19, #8]
	cbz	w20, LBB0_10
LBB0_9:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, #0
	mov	w1, #0
	bl	_ptls_iovec_init
	mov	x1, x0
	mov	x0, x19
	bl	_key_schedule_extract
	cbnz	w0, LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_PTLS_HASH_FINAL_MODE_FREE,4,2  ; @PTLS_HASH_FINAL_MODE_FREE
	.no_dead_strip	_key_schedule_select_one
.subsections_via_symbols
