	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_record_change_read_cipher ## -- Begin function tlsv1_record_change_read_cipher
	.p2align	4, 0x90
_tlsv1_record_change_read_cipher:       ## @tlsv1_record_change_read_cipher
	.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	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	32(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	28(%rbx), %edi
	movl	32(%rbx), %eax
	movl	%eax, 36(%rbx)
	movq	_TLS_SEQ_NUM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_crypto_cipher_deinit
	movq	$0, 8(%rbx)
LBB0_2:
	movq	(%rbx), %rdi
	movq	_CRYPTO_CIPHER_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.3:
	movl	24(%rbx), %esi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	callq	_crypto_cipher_init
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Record Layer - New read cipher suite 0x%04x"

	.comm	_TLS_SEQ_NUM_LEN,4,2            ## @TLS_SEQ_NUM_LEN
	.comm	_CRYPTO_CIPHER_NULL,8,3         ## @CRYPTO_CIPHER_NULL
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Failed to initialize cipher"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_record_change_read_cipher ; -- Begin function tlsv1_record_change_read_cipher
	.p2align	2
_tlsv1_record_change_read_cipher:       ; @tlsv1_record_change_read_cipher
	.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	x20, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldp	w0, w8, [x19, #28]
	str	w8, [x19, #36]
Lloh4:
	adrp	x8, _TLS_SEQ_NUM_LEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TLS_SEQ_NUM_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_os_memset
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_crypto_cipher_deinit
	str	xzr, [x19, #8]
LBB0_2:
	ldr	x0, [x19]
Lloh7:
	adrp	x8, _CRYPTO_CIPHER_NULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CRYPTO_CIPHER_NULL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	ldp	w2, w1, [x19, #20]
	ldr	w3, [x19, #16]
	bl	_crypto_cipher_init
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Record Layer - New read cipher suite 0x%04x"

	.comm	_TLS_SEQ_NUM_LEN,4,2            ; @TLS_SEQ_NUM_LEN
	.comm	_CRYPTO_CIPHER_NULL,8,3         ; @CRYPTO_CIPHER_NULL
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Failed to initialize cipher"

.subsections_via_symbols
