	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_change_cipher_spec ## -- Begin function tls_process_change_cipher_spec
	.p2align	4, 0x90
_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_PACKET_remaining
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_SSL_IS_DTLS
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rcx
	movq	_DTLS1_BAD_VER@GOTPCREL(%rip), %rdx
	movq	_DTLS1_CCS_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_5:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	decl	%eax
	cltq
	cmpq	%rax, %rbx
	jne	LBB0_5
LBB0_8:
	cmpq	$0, 24(%r14)
	je	LBB0_9
## %bb.10:
	movl	$1, 16(%r14)
	movq	%r14, %rdi
	callq	_ssl3_do_change_cipher_spec
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_SSL_IS_DTLS
	movq	_MSG_PROCESS_CONTINUE_READING@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_SSL3_CC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dtls1_reset_seq_numbers
	movq	(%r14), %rax
	movq	_DTLS1_BAD_VER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	8(%r14), %rax
	incl	(%rax)
LBB0_15:
	movq	%r14, %rdi
	callq	_SSL_get_wbio
	movq	_BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_BIO_ctrl
	jmp	LBB0_16
LBB0_9:
	movq	_SSL_AD_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_CCS_RECEIVED_EARLY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	movq	_MSG_PROCESS_ERROR@GOTPCREL(%rip), %rbx
LBB0_16:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DTLS1_BAD_VER,8,3              ## @DTLS1_BAD_VER
	.comm	_DTLS1_CCS_HEADER_LENGTH,4,2    ## @DTLS1_CCS_HEADER_LENGTH
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC,4,2 ## @SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC
	.comm	_SSL_R_BAD_CHANGE_CIPHER_SPEC,4,2 ## @SSL_R_BAD_CHANGE_CIPHER_SPEC
	.comm	_MSG_PROCESS_ERROR,4,2          ## @MSG_PROCESS_ERROR
	.comm	_SSL_AD_UNEXPECTED_MESSAGE,4,2  ## @SSL_AD_UNEXPECTED_MESSAGE
	.comm	_SSL_R_CCS_RECEIVED_EARLY,4,2   ## @SSL_R_CCS_RECEIVED_EARLY
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_CC_READ,4,2               ## @SSL3_CC_READ
	.comm	_BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD,4,2 ## @BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD
	.comm	_MSG_PROCESS_CONTINUE_READING,4,2 ## @MSG_PROCESS_CONTINUE_READING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_change_cipher_spec ; -- Begin function tls_process_change_cipher_spec
	.p2align	2
_tls_process_change_cipher_spec:        ; @tls_process_change_cipher_spec
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_PACKET_remaining
	mov	x20, x0
	mov	x0, x19
	bl	_SSL_IS_DTLS
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _DTLS1_BAD_VER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DTLS1_BAD_VER@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _DTLS1_CCS_HEADER_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DTLS1_CCS_HEADER_LENGTH@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	add	x8, x8, #1
	cmp	x20, x8
	b.ne	LBB0_4
	b	LBB0_6
LBB0_3:
	cbz	x20, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _SSL_R_BAD_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_R_BAD_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
	b	LBB0_15
LBB0_5:
	sub	w8, w8, #1
	cmp	x20, w8, sxtw
	b.ne	LBB0_4
LBB0_6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_ssl3_do_change_cipher_spec
	cbz	w0, LBB0_14
; %bb.8:
	mov	x0, x19
	bl	_SSL_IS_DTLS
	cbz	x0, LBB0_12
; %bb.9:
Lloh14:
	adrp	x8, _SSL3_CC_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL3_CC_READ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dtls1_reset_seq_numbers
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _DTLS1_BAD_VER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DTLS1_BAD_VER@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_11:
	mov	x0, x19
	bl	_SSL_get_wbio
Lloh20:
	adrp	x8, _BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #1
	mov	x3, #0
	bl	_BIO_ctrl
LBB0_12:
Lloh23:
	adrp	x8, _MSG_PROCESS_CONTINUE_READING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_PROCESS_CONTINUE_READING@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh25:
	adrp	x8, _SSL_AD_UNEXPECTED_MESSAGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_AD_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _SSL_R_CCS_RECEIVED_EARLY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SSL_R_CCS_RECEIVED_EARLY@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh33:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_15:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh41:
	adrp	x8, _MSG_PROCESS_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MSG_PROCESS_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_DTLS1_BAD_VER,8,3              ; @DTLS1_BAD_VER
	.comm	_DTLS1_CCS_HEADER_LENGTH,4,2    ; @DTLS1_CCS_HEADER_LENGTH
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC,4,2 ; @SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC
	.comm	_SSL_R_BAD_CHANGE_CIPHER_SPEC,4,2 ; @SSL_R_BAD_CHANGE_CIPHER_SPEC
	.comm	_MSG_PROCESS_ERROR,4,2          ; @MSG_PROCESS_ERROR
	.comm	_SSL_AD_UNEXPECTED_MESSAGE,4,2  ; @SSL_AD_UNEXPECTED_MESSAGE
	.comm	_SSL_R_CCS_RECEIVED_EARLY,4,2   ; @SSL_R_CCS_RECEIVED_EARLY
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_CC_READ,4,2               ; @SSL3_CC_READ
	.comm	_BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD,4,2 ; @BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD
	.comm	_MSG_PROCESS_CONTINUE_READING,4,2 ; @MSG_PROCESS_CONTINUE_READING
.subsections_via_symbols
