	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_server_change_cipher_spec
_tls_process_server_change_cipher_spec: ## @tls_process_server_change_cipher_spec
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_1
## %bb.7:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.9:
	movq	(%r15), %rdx
	movq	_TLS_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	cmpq	(%rax), %rdx
	jne	LBB0_10
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	12(%r12), %rdi
	callq	_tlsv1_record_change_read_cipher
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	movq	$1, (%r14)
	movq	_SERVER_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_14
LBB0_1:
	movq	%rsi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 24(%r12)
	je	LBB0_5
## %bb.2:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	$0, 24(%r12)
	movl	16(%r12), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*(%r12)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_SERVER_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tls_process_certificate        ## TAILCALL
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_5:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movl	(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tls_alert
	movl	$-1, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,8,3 ## @TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Expected ChangeCipherSpec; received content type 0x%x"

L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Server may have rejected SessionTicket"

L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: SessionTicket callback indicated failure"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_HANDSHAKE_FAILURE,4,2 ## @TLS_ALERT_HANDSHAKE_FAILURE
	.comm	_SERVER_CERTIFICATE,4,2         ## @SERVER_CERTIFICATE
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @TLS_ALERT_UNEXPECTED_MESSAGE
L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: Too short ChangeCipherSpec"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ## @TLS_ALERT_DECODE_ERROR
	.comm	_TLS_CHANGE_CIPHER_SPEC,8,3     ## @TLS_CHANGE_CIPHER_SPEC
L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Expected ChangeCipherSpec; received data 0x%x"

L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: Received ChangeCipherSpec"

L_.str.6:                               ## @.str.6
	.asciz	"TLSv1: Failed to change read cipher for record layer"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
	.comm	_SERVER_FINISHED,4,2            ## @SERVER_FINISHED
	.no_dead_strip	_tls_process_server_change_cipher_spec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_server_change_cipher_spec
_tls_process_server_change_cipher_spec: ; @tls_process_server_change_cipher_spec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.2:
Lloh3:
	adrp	x9, _TLS_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLS_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	add	x0, x19, #12
	bl	_tlsv1_record_change_read_cipher
	tbnz	x0, #63, LBB0_12
; %bb.4:
	mov	w0, #0
	mov	w8, #1
	str	x8, [x20]
Lloh10:
	adrp	x8, _SERVER_FINISHED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SERVER_FINISHED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_14
LBB0_5:
	mov	x22, x1
Lloh13:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x1, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	w0, [x23]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	str	xzr, [x19, #24]
	ldr	x8, [x19]
	ldr	w0, [x19, #16]
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	blr	x8
	tbnz	w0, #31, LBB0_11
; %bb.7:
Lloh19:
	adrp	x8, _SERVER_CERTIFICATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SERVER_CERTIFICATE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	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
	add	sp, sp, #80
	b	_tls_process_certificate
LBB0_8:
Lloh22:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh27:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _TLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_10:
Lloh34:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	ldr	w0, [x23]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh41:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _TLS_ALERT_HANDSHAKE_FAILURE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TLS_ALERT_HANDSHAKE_FAILURE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	ldr	w0, [x21]
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
Lloh48:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tls_alert
	mov	w0, #-1
LBB0_14:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,8,3 ; @TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Expected ChangeCipherSpec; received content type 0x%x"

l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Server may have rejected SessionTicket"

l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: SessionTicket callback indicated failure"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_HANDSHAKE_FAILURE,4,2 ; @TLS_ALERT_HANDSHAKE_FAILURE
	.comm	_SERVER_CERTIFICATE,4,2         ; @SERVER_CERTIFICATE
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @TLS_ALERT_UNEXPECTED_MESSAGE
l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: Too short ChangeCipherSpec"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ; @TLS_ALERT_DECODE_ERROR
	.comm	_TLS_CHANGE_CIPHER_SPEC,8,3     ; @TLS_CHANGE_CIPHER_SPEC
l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Expected ChangeCipherSpec; received data 0x%x"

l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: Received ChangeCipherSpec"

l_.str.6:                               ; @.str.6
	.asciz	"TLSv1: Failed to change read cipher for record layer"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
	.comm	_SERVER_FINISHED,4,2            ; @SERVER_FINISHED
	.no_dead_strip	_tls_process_server_change_cipher_spec
.subsections_via_symbols
