	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_server_decrypt           ## -- Begin function tlsv1_server_decrypt
	.p2align	4, 0x90
_tlsv1_server_decrypt:                  ## @tlsv1_server_decrypt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r9
	testq	%rdx, %rdx
	jle	LBB0_21
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	(%rsi,%rdx,8), %rdx
	leaq	(%rcx,%r8,8), %rsi
	leaq	12(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r9
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	subq	%r9, %rsi
	sarq	$3, %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -56(%rbp)
	movq	%rdx, %r12
	subq	%rbx, %rdx
	shrq	$3, %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r9, %r14
	movq	%r9, %rcx
	leaq	-56(%rbp), %r8
	leaq	-72(%rbp), %r9
	callq	_tlsv1_record_receive
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %r15d
	movq	_TLS_CONTENT_TYPE_ALERT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpq	$1, -56(%rbp)
	jbe	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	%r14, %r9
	incl	8(%r13)
	movq	(%r14), %rax
	movq	_TLS_ALERT_LEVEL_WARNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%r15d, %eax
	leaq	(%rbx,%rax,8), %rbx
	movq	%r12, %rdx
	cmpq	%r12, %rbx
	jb	LBB0_3
	jmp	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r9
	movq	-56(%rbp), %rax
	leaq	(%r14,%rax,8), %r9
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %r9
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	ja	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	leaq	(%rbx,%rax,8), %rbx
	movq	%r12, %rdx
	cmpq	%r12, %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jb	LBB0_2
	jmp	LBB0_21
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdx
	jmp	LBB0_16
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rdx
LBB0_16:
	movq	%r14, %rdi
	jmp	LBB0_19
LBB0_17:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r9), %rdx
LBB0_18:
	movq	%r13, %rdi
LBB0_19:
	callq	_tlsv1_server_alert
	movl	$-1, %r9d
	jmp	LBB0_22
LBB0_20:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_21:
	subq	%rcx, %r9
	shrq	$3, %r9
LBB0_22:
	movl	%r9d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_24:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Record layer processing failed"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Partial processing not yet supported"

	.comm	_TLS_CONTENT_TYPE_ALERT,8,3     ## @TLS_CONTENT_TYPE_ALERT
L_.str.2:                               ## @.str.2
	.asciz	"Alert underflow"

	.comm	_TLS_ALERT_DECODE_ERROR,8,3     ## @TLS_ALERT_DECODE_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Received alert %d:%d"

	.comm	_TLS_ALERT_LEVEL_WARNING,8,3    ## @TLS_ALERT_LEVEL_WARNING
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,8,3 ## @TLS_CONTENT_TYPE_APPLICATION_DATA
L_.str.4:                               ## @.str.4
	.asciz	"Unexpected content type 0x%x"

	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,8,3 ## @TLS_ALERT_UNEXPECTED_MESSAGE
L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: Buffer not large enough for processing the received record"

	.comm	_TLS_ALERT_INTERNAL_ERROR,8,3   ## @TLS_ALERT_INTERNAL_ERROR
	.comm	_TLS_BREAK_SRV_KEY_X_HASH,4,2   ## @TLS_BREAK_SRV_KEY_X_HASH
	.comm	_TLS_BREAK_SRV_KEY_X_SIGNATURE,4,2 ## @TLS_BREAK_SRV_KEY_X_SIGNATURE
	.comm	_TLS_BREAK_VERIFY_DATA,4,2      ## @TLS_BREAK_VERIFY_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_server_decrypt           ; -- Begin function tlsv1_server_decrypt
	.p2align	2
_tlsv1_server_decrypt:                  ; @tlsv1_server_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x3
	cmp	x2, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	add	x26, x1, x2, lsl #3
	add	x23, x0, #12
Lloh0:
	adrp	x27, _TLS_CONTENT_TYPE_ALERT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TLS_CONTENT_TYPE_ALERT@GOTPAGEOFF]
	add	x8, x20, x4, lsl #3
	mov	x22, x20
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	sub	x8, x8, x22
	asr	x28, x8, #3
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x21]
	str	x28, [sp, #32]
	sub	x8, x26, x21
	lsr	x2, x8, #3
	add	x4, sp, #32
	add	x5, sp, #40
	mov	x0, x23
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x22
	bl	_tlsv1_record_receive
	tbnz	w0, #31, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x25, x0
	cbz	w0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [x27]
	cmp	x24, x8
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp, #32]
	cmp	x8, #1
	b.ls	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=2
	ldp	x8, x9, [x22]
	stp	x8, x9, [sp]
	mov	x0, x19
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_tlsv1_server_log
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _TLS_ALERT_LEVEL_WARNING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TLS_ALERT_LEVEL_WARNING@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x21, x21, w25, uxtw #3
	cmp	x21, x26
	b.lo	LBB0_3
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh7:
	adrp	x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #32]
	add	x22, x22, x8, lsl #3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x22, x8
	b.hi	LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, w25, uxtw #3
	cmp	x21, x26
	b.lo	LBB0_2
LBB0_12:
	sub	x8, x22, x20
	lsr	x0, x8, #3
	b	LBB0_20
LBB0_13:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_15:
Lloh17:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x2, [sp, #40]
	b	LBB0_19
LBB0_16:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh22:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _TLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
LBB0_17:
	ldr	x2, [x8]
	b	LBB0_19
LBB0_18:
Lloh27:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	x2, [x22, #8]
LBB0_19:
	mov	x0, x19
	bl	_tlsv1_server_alert
	mov	w0, #-1
LBB0_20:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
	ldr	x8, [x21]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh32:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_17
LBB0_22:
Lloh37:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh42:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Record layer processing failed"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Partial processing not yet supported"

	.comm	_TLS_CONTENT_TYPE_ALERT,8,3     ; @TLS_CONTENT_TYPE_ALERT
l_.str.2:                               ; @.str.2
	.asciz	"Alert underflow"

	.comm	_TLS_ALERT_DECODE_ERROR,8,3     ; @TLS_ALERT_DECODE_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Received alert %d:%d"

	.comm	_TLS_ALERT_LEVEL_WARNING,8,3    ; @TLS_ALERT_LEVEL_WARNING
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,8,3 ; @TLS_CONTENT_TYPE_APPLICATION_DATA
l_.str.4:                               ; @.str.4
	.asciz	"Unexpected content type 0x%x"

	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,8,3 ; @TLS_ALERT_UNEXPECTED_MESSAGE
l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: Buffer not large enough for processing the received record"

	.comm	_TLS_ALERT_INTERNAL_ERROR,8,3   ; @TLS_ALERT_INTERNAL_ERROR
	.comm	_TLS_BREAK_SRV_KEY_X_HASH,4,2   ; @TLS_BREAK_SRV_KEY_X_HASH
	.comm	_TLS_BREAK_SRV_KEY_X_SIGNATURE,4,2 ; @TLS_BREAK_SRV_KEY_X_SIGNATURE
	.comm	_TLS_BREAK_VERIFY_DATA,4,2      ; @TLS_BREAK_VERIFY_DATA
.subsections_via_symbols
