	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_change_cipher_state       ## -- Begin function ssl3_change_cipher_state
	.p2align	4, 0x90
_ssl3_change_cipher_state:              ## @ssl3_change_cipher_state
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	48(%rdi), %r13
	movq	56(%rdi), %r12
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rax), %r15
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	movq	_SSL3_CC_READ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.7:
	movq	112(%r14), %r12
	movl	$1, %ebx
	testq	%r12, %r12
	jne	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, 112(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	callq	_EVP_CIPHER_CTX_reset
	movq	112(%r14), %r12
LBB0_11:
	leaq	104(%r14), %rdi
	movq	%r13, %rsi
	callq	_ssl_replace_hash
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	96(%r14), %rdi
	callq	_COMP_CTX_free
	movq	$0, 96(%r14)
	testq	%r15, %r15
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_COMP_CTX_new
	movq	%rax, 96(%r14)
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	leaq	64(%r14), %rdi
	callq	_RECORD_LAYER_reset_read_sequence
	leaq	8(%r14), %rax
	jmp	LBB0_23
LBB0_16:
	movq	_ENC_WRITE_STATE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	88(%r14), %r12
	movl	$1, %ebx
	testq	%r12, %r12
	jne	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, 88(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.18:
	movq	%rax, %rdi
	callq	_EVP_CIPHER_CTX_reset
	movq	88(%r14), %r12
LBB0_19:
	leaq	80(%r14), %rdi
	movq	%r13, %rsi
	callq	_ssl_replace_hash
	testq	%rax, %rax
	je	LBB0_9
## %bb.20:
	movq	72(%r14), %rdi
	callq	_COMP_CTX_free
	movq	$0, 72(%r14)
	testq	%r15, %r15
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_COMP_CTX_new
	movq	%rax, 72(%r14)
	testq	%rax, %rax
	je	LBB0_14
LBB0_22:
	leaq	64(%r14), %rdi
	callq	_RECORD_LAYER_reset_write_sequence
	leaq	16(%r14), %rax
LBB0_23:
	movq	(%rax), %r15
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.24:
	movq	%r12, %rdi
	callq	_EVP_CIPHER_CTX_reset
LBB0_25:
	movq	24(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_EVP_MD_size
	testl	%eax, %eax
	js	LBB0_1
## %bb.26:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_EVP_CIPHER_key_length
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_EVP_CIPHER_iv_length
	movq	_SSL3_CHANGE_CIPHER_CLIENT_WRITE@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	je	LBB0_28
## %bb.27:
	movq	_SSL3_CHANGE_CIPHER_SERVER_READ@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	je	LBB0_28
## %bb.29:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r13), %rsi
	leaq	(%rbx,%r13,2), %r15
	addq	%rax, %rbx
	addq	%r15, %rbx
	addq	%rbx, %rax
	movq	%rbx, %r8
	movq	%rax, %rbx
	cmpq	32(%r14), %rbx
	ja	LBB0_1
LBB0_31:
	addq	%rcx, %r15
	addq	%rcx, %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r8, %r13
	callq	_memcpy
	movq	_SSL3_CC_WRITE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	andl	(%rax), %r9d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_EVP_CipherInit_ex
	testl	%eax, %eax
	je	LBB0_32
## %bb.33:
	movq	_ENC_WRITE_STATE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$1, %ebx
	jmp	LBB0_34
LBB0_9:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_28:
	movq	%r13, %r15
	addq	%r13, %r15
	addq	%r13, %rbx
	leaq	(%rbx,%rbx), %r8
	addq	%rax, %rbx
	addq	%rbx, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rsi
	cmpq	32(%r14), %rbx
	jbe	LBB0_31
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
LBB0_34:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_COMPRESSION_LIBRARY_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_32:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_CHANGE_CIPHER_STATE,4,2 ## @SSL_F_SSL3_CHANGE_CIPHER_STATE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_CC_READ,4,2               ## @SSL3_CC_READ
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_SSL_R_COMPRESSION_LIBRARY_ERROR,4,2 ## @SSL_R_COMPRESSION_LIBRARY_ERROR
	.comm	_ENC_WRITE_STATE_INVALID,4,2    ## @ENC_WRITE_STATE_INVALID
	.comm	_SSL3_CHANGE_CIPHER_CLIENT_WRITE,4,2 ## @SSL3_CHANGE_CIPHER_CLIENT_WRITE
	.comm	_SSL3_CHANGE_CIPHER_SERVER_READ,4,2 ## @SSL3_CHANGE_CIPHER_SERVER_READ
	.comm	_SSL3_CC_WRITE,4,2              ## @SSL3_CC_WRITE
	.comm	_ENC_WRITE_STATE_VALID,4,2      ## @ENC_WRITE_STATE_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_change_cipher_state       ; -- Begin function ssl3_change_cipher_state
	.p2align	2
_ssl3_change_cipher_state:              ; @ssl3_change_cipher_state
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	ldp	x23, x20, [x0, #48]
	cmp	x23, #0
	cset	w0, ne
	bl	_ossl_assert
	cbz	w0, LBB0_31
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x24, [x8]
	b	LBB0_4
LBB0_3:
	mov	x24, #0
LBB0_4:
Lloh0:
	adrp	x8, _SSL3_CC_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL3_CC_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	ldr	x22, [x19, #112]
	cbz	x22, LBB0_9
; %bb.6:
	mov	w25, #1
	b	LBB0_11
LBB0_7:
Lloh3:
	adrp	x8, _ENC_WRITE_STATE_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENC_WRITE_STATE_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x22, [x19, #88]
	cbz	x22, LBB0_20
; %bb.8:
	mov	w25, #1
	b	LBB0_22
LBB0_9:
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19, #112]
	cbz	x0, LBB0_26
; %bb.10:
	bl	_EVP_CIPHER_CTX_reset
	mov	w25, #0
	ldr	x22, [x19, #112]
LBB0_11:
	add	x0, x19, #104
	mov	x1, x23
	bl	_ssl_replace_hash
	cbz	x0, LBB0_31
; %bb.12:
	ldr	x0, [x19, #96]
	bl	_COMP_CTX_free
	str	xzr, [x19, #96]
	cbz	x24, LBB0_14
; %bb.13:
	mov	x0, x24
	bl	_COMP_CTX_new
	str	x0, [x19, #96]
	cbz	x0, LBB0_34
LBB0_14:
	add	x0, x19, #64
	bl	_RECORD_LAYER_reset_read_sequence
	add	x8, x19, #8
	ldr	x24, [x8]
	cbz	w25, LBB0_16
LBB0_15:
	mov	x0, x22
	bl	_EVP_CIPHER_CTX_reset
LBB0_16:
	ldr	x26, [x19, #24]
	mov	x0, x23
	bl	_EVP_MD_size
	tbnz	w0, #31, LBB0_31
; %bb.17:
	mov	w23, w0
	mov	x0, x20
	bl	_EVP_CIPHER_key_length
	mov	x25, x0
	mov	x0, x20
	bl	_EVP_CIPHER_iv_length
Lloh6:
	adrp	x8, _SSL3_CHANGE_CIPHER_CLIENT_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL3_CHANGE_CIPHER_CLIENT_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_27
; %bb.18:
Lloh9:
	adrp	x8, _SSL3_CHANGE_CIPHER_SERVER_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL3_CHANGE_CIPHER_SERVER_READ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_27
; %bb.19:
	add	x1, x26, x23
	add	x8, x25, x23, lsl #1
	add	x9, x0, x25
	add	x9, x9, x8
	add	x10, x9, x0
	b	LBB0_28
LBB0_20:
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19, #88]
	cbz	x0, LBB0_26
; %bb.21:
	bl	_EVP_CIPHER_CTX_reset
	mov	w25, #0
	ldr	x22, [x19, #88]
LBB0_22:
	add	x0, x19, #80
	mov	x1, x23
	bl	_ssl_replace_hash
	cbz	x0, LBB0_26
; %bb.23:
	ldr	x0, [x19, #72]
	bl	_COMP_CTX_free
	str	xzr, [x19, #72]
	cbz	x24, LBB0_25
; %bb.24:
	mov	x0, x24
	bl	_COMP_CTX_new
	str	x0, [x19, #72]
	cbz	x0, LBB0_34
LBB0_25:
	add	x0, x19, #64
	bl	_RECORD_LAYER_reset_write_sequence
	add	x8, x19, #16
	ldr	x24, [x8]
	cbnz	w25, LBB0_15
	b	LBB0_16
LBB0_26:
Lloh12:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_32
LBB0_27:
	lsl	x8, x23, #1
	add	x9, x25, x23
	add	x10, x9, x0
	lsl	x9, x9, #1
	lsl	x10, x10, #1
	mov	x1, x26
LBB0_28:
	ldr	x11, [x19, #32]
	cmp	x10, x11
	b.hi	LBB0_31
; %bb.29:
	add	x25, x26, x8
	add	x26, x26, x9
	mov	x0, x24
	mov	x2, x23
	bl	_memcpy
Lloh20:
	adrp	x8, _SSL3_CC_WRITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL3_CC_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	and	w5, w8, w21
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	mov	x3, x25
	mov	x4, x26
	bl	_EVP_CipherInit_ex
	cbz	w0, LBB0_31
; %bb.30:
Lloh23:
	adrp	x8, _ENC_WRITE_STATE_VALID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENC_WRITE_STATE_VALID@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_33
LBB0_31:
Lloh26:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_32:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_33:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_34:
Lloh34:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SSL_F_SSL3_CHANGE_CIPHER_STATE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _SSL_R_COMPRESSION_LIBRARY_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SSL_R_COMPRESSION_LIBRARY_ERROR@GOTPAGEOFF]
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_CHANGE_CIPHER_STATE,4,2 ; @SSL_F_SSL3_CHANGE_CIPHER_STATE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_CC_READ,4,2               ; @SSL3_CC_READ
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_SSL_R_COMPRESSION_LIBRARY_ERROR,4,2 ; @SSL_R_COMPRESSION_LIBRARY_ERROR
	.comm	_ENC_WRITE_STATE_INVALID,4,2    ; @ENC_WRITE_STATE_INVALID
	.comm	_SSL3_CHANGE_CIPHER_CLIENT_WRITE,4,2 ; @SSL3_CHANGE_CIPHER_CLIENT_WRITE
	.comm	_SSL3_CHANGE_CIPHER_SERVER_READ,4,2 ; @SSL3_CHANGE_CIPHER_SERVER_READ
	.comm	_SSL3_CC_WRITE,4,2              ; @SSL3_CC_WRITE
	.comm	_ENC_WRITE_STATE_VALID,4,2      ; @ENC_WRITE_STATE_VALID
.subsections_via_symbols
