	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_pre_encrypt                ## -- Begin function tls_pre_encrypt
	.p2align	4, 0x90
_tls_pre_encrypt:                       ## @tls_pre_encrypt
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	$0, (%rdi)
	cmpq	$0, (%rsi)
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r13
	movq	_KEY_SCAN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	movq	8(%r13), %rcx
	movq	_S_ACTIVE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_now@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rbx
	cmpq	%rdx, (%rbx)
	jl	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rsi, %rsi
	cmoveq	%rbx, %rsi
	cmpq	8(%rbx), %r8
	jl	LBB0_7
	jmp	LBB0_11
LBB0_8:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_9
LBB0_11:
	leaq	24(%rbx), %rax
	movq	%rax, (%r14)
	movq	%rbx, (%r13)
	movq	_D_TLS_KEYSELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmsg                           ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	_D_TLS_KEYSELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-48(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_print_key_id
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_dmsg
	movq	%rbx, %rdi
	callq	_gc_free
LBB0_10:
	movq	$0, (%r15)
	movq	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_SCAN_SIZE,4,2              ## @KEY_SCAN_SIZE
	.comm	_S_ACTIVE,8,3                   ## @S_ACTIVE
	.comm	_now,8,3                        ## @now
	.comm	_D_TLS_KEYSELECT,4,2            ## @D_TLS_KEYSELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS: tls_pre_encrypt: key_id=%d"

L_.str.1:                               ## @.str.1
	.asciz	"TLS Warning: no data channel send key available: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_pre_encrypt                ; -- Begin function tls_pre_encrypt
	.p2align	2
_tls_pre_encrypt:                       ; @tls_pre_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	str	xzr, [x0]
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _KEY_SCAN_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_SCAN_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x9, #0
	ldr	x10, [x21, #8]
Lloh3:
	adrp	x11, _S_ACTIVE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _S_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _now@GOTPAGE
Lloh7:
	ldr	x12, [x12, _now@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	ldr	x14, [x13]
	cmp	x14, x11
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x13, #40]
	cbz	x14, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x13, #24]
	cbz	x14, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, #0
	csel	x9, x13, x9, eq
	ldr	x14, [x13, #8]
	cmp	x12, x14
	b.lt	LBB0_3
	b	LBB0_9
LBB0_8:
	mov	x13, x9
	cbz	x9, LBB0_10
LBB0_9:
	add	x8, x13, #24
	str	x8, [x19]
	str	x13, [x21]
Lloh9:
	adrp	x8, _D_TLS_KEYSELECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D_TLS_KEYSELECT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x13, #16]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dmsg
LBB0_10:
	bl	_gc_new
	str	w0, [sp, #8]
Lloh14:
	adrp	x8, _D_TLS_KEYSELECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D_TLS_KEYSELECT@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_print_key_id
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dmsg
	add	x0, sp, #8
	bl	_gc_free
LBB0_11:
	str	xzr, [x20]
	str	xzr, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_SCAN_SIZE,4,2              ; @KEY_SCAN_SIZE
	.comm	_S_ACTIVE,8,3                   ; @S_ACTIVE
	.comm	_now,8,3                        ; @now
	.comm	_D_TLS_KEYSELECT,4,2            ; @D_TLS_KEYSELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS: tls_pre_encrypt: key_id=%d"

l_.str.1:                               ; @.str.1
	.asciz	"TLS Warning: no data channel send key available: %s"

.subsections_via_symbols
