	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_check_ctr_renegotiate
_ssl_check_ctr_renegotiate:             ## @ssl_check_ctr_renegotiate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ssl_ep_len
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_MBEDTLS_SSL_HANDSHAKE_OVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	movq	_MBEDTLS_SSL_RENEGOTIATION_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	_MBEDTLS_SSL_RENEGOTIATION_DISABLED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.3:
	movq	32(%rbx), %rdi
	addq	%r14, %rdi
	movq	8(%rax), %rsi
	addq	%r14, %rsi
	movl	$8, %r15d
	subl	%r14d, %r15d
	movl	%r15d, %edx
	callq	_memcmp
	movl	%eax, %r12d
	movq	24(%rbx), %rdi
	addq	%r14, %rdi
	movq	16(%rbx), %rax
	addq	8(%rax), %r14
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	testl	%r12d, %r12d
	jg	LBB0_6
## %bb.4:
	testl	%eax, %eax
	jg	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mbedtls_ssl_renegotiate        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_SSL_HANDSHAKE_OVER,8,3 ## @MBEDTLS_SSL_HANDSHAKE_OVER
	.comm	_MBEDTLS_SSL_RENEGOTIATION_PENDING,8,3 ## @MBEDTLS_SSL_RENEGOTIATION_PENDING
	.comm	_MBEDTLS_SSL_RENEGOTIATION_DISABLED,8,3 ## @MBEDTLS_SSL_RENEGOTIATION_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"record counter limit reached: renegotiate"

	.no_dead_strip	_ssl_check_ctr_renegotiate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_check_ctr_renegotiate
_ssl_check_ctr_renegotiate:             ; @ssl_check_ctr_renegotiate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_ssl_ep_len
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MBEDTLS_SSL_HANDSHAKE_OVER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_SSL_HANDSHAKE_OVER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MBEDTLS_SSL_RENEGOTIATION_PENDING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_SSL_RENEGOTIATION_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
Lloh6:
	adrp	x10, _MBEDTLS_SSL_RENEGOTIATION_DISABLED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MBEDTLS_SSL_RENEGOTIATION_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	x9, [x19, #32]
	add	x0, x9, x0
	ldr	x8, [x8, #8]
	add	x1, x8, x20
	mov	w8, #8
	sub	w21, w8, w20
	mov	x2, x21
	bl	_memcmp
	mov	x22, x0
	ldp	x9, x8, [x19, #16]
	add	x0, x8, x20
	ldr	x8, [x9, #8]
	add	x1, x8, x20
	mov	x2, x21
	bl	_memcmp
	cmp	w22, #0
	ccmp	w0, #1, #0, le
	b.lt	LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mbedtls_ssl_renegotiate
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_SSL_HANDSHAKE_OVER,8,3 ; @MBEDTLS_SSL_HANDSHAKE_OVER
	.comm	_MBEDTLS_SSL_RENEGOTIATION_PENDING,8,3 ; @MBEDTLS_SSL_RENEGOTIATION_PENDING
	.comm	_MBEDTLS_SSL_RENEGOTIATION_DISABLED,8,3 ; @MBEDTLS_SSL_RENEGOTIATION_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"record counter limit reached: renegotiate"

	.no_dead_strip	_ssl_check_ctr_renegotiate
.subsections_via_symbols
