	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_change_cipher_spec
_tls_process_change_cipher_spec:        ## @tls_process_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %r14
	movq	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jne	LBB0_1
## %bb.2:
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.4:
	movq	(%rdx), %rdx
	movq	_TLS_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	leaq	4(%r14), %rdi
	callq	_tlsv1_record_change_read_cipher
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movq	$1, (%r15)
	movq	_CLIENT_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_1:
	movq	%rsi, %rax
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	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
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
LBB0_6:
	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
LBB0_7:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_tlsv1_server_alert
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,8,3 ## @TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected ChangeCipherSpec; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @TLS_ALERT_UNEXPECTED_MESSAGE
L_.str.1:                               ## @.str.1
	.asciz	"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.2:                               ## @.str.2
	.asciz	"Expected ChangeCipherSpec; received data 0x%x"

L_.str.3:                               ## @.str.3
	.asciz	"Received ChangeCipherSpec"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Failed to change read cipher for record layer"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
	.comm	_CLIENT_FINISHED,4,2            ## @CLIENT_FINISHED
	.no_dead_strip	_tls_process_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_change_cipher_spec
_tls_process_change_cipher_spec:        ; @tls_process_change_cipher_spec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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:
	mov	x20, x3
	ldr	x8, [x3]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x2]
Lloh3:
	adrp	x9, _TLS_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLS_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
	add	x0, x19, #4
	bl	_tlsv1_record_change_read_cipher
	tbnz	x0, #63, LBB0_11
; %bb.4:
	mov	w0, #0
	mov	w8, #1
	str	x8, [x20]
Lloh8:
	adrp	x8, _CLIENT_FINISHED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLIENT_FINISHED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_10
LBB0_5:
	str	x1, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh15:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _TLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	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_UNEXPECTED_MESSAGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
LBB0_9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh27:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
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_INTERNAL_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,8,3 ; @TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected ChangeCipherSpec; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @TLS_ALERT_UNEXPECTED_MESSAGE
l_.str.1:                               ; @.str.1
	.asciz	"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.2:                               ; @.str.2
	.asciz	"Expected ChangeCipherSpec; received data 0x%x"

l_.str.3:                               ; @.str.3
	.asciz	"Received ChangeCipherSpec"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Failed to change read cipher for record layer"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
	.comm	_CLIENT_FINISHED,4,2            ; @CLIENT_FINISHED
	.no_dead_strip	_tls_process_change_cipher_spec
.subsections_via_symbols
