	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_limit_handshake_reneg
_php_openssl_limit_handshake_reneg:     ## @php_openssl_limit_handshake_reneg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_php_openssl_get_stream_from_ssl_handle
	movq	%rax, %r13
	movq	8(%rax), %r12
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	(%r12), %rsi
	movq	(%rsi), %rdi
	movslq	-48(%rbp), %rcx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rcx, (%rsi)
	movl	12(%rsi), %r8d
	movl	%r8d, %eax
	cltd
	idivl	16(%rsi)
	subl	%ecx, %edi
	imull	%edi, %eax
	addl	8(%rsi), %eax
	testl	%eax, %eax
	cmovgl	%eax, %ebx
	leal	1(%rbx), %eax
	movl	%eax, 8(%rsi)
	cmpl	%r8d, %ebx
	jl	LBB0_10
## %bb.3:
	movl	$1, 20(%rsi)
	movq	%r13, %rdi
	callq	_PHP_STREAM_CONTEXT
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%r13, %rdi
	callq	_PHP_STREAM_CONTEXT
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	callq	_php_stream_context_get_option
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %r14
	leaq	-52(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_php_stream_to_zval
	movq	_PHP_STREAM_FLAG_NO_FCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	-44(%rbp), %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$1, %r8d
	movq	%r15, %r9
	pushq	$0
	pushq	$0
	callq	_call_user_function_ex
	addq	$16, %rsp
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.6:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_php_error
LBB0_7:
	movq	_PHP_STREAM_FLAG_NO_FCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%r13)
	movl	-44(%rbp), %edi
	callq	_Z_TYPE
	movq	_IS_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	(%r12), %rax
	movl	$0, 20(%rax)
LBB0_9:
	leaq	-44(%rbp), %rdi
	callq	_zval_ptr_dtor
	jmp	LBB0_10
LBB0_1:
	movq	%rcx, (%rsi)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_php_error_docref               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssl"

L_.str.1:                               ## @.str.1
	.asciz	"reneg_limit_callback"

	.comm	_PHP_STREAM_FLAG_NO_FCLOSE,4,2  ## @PHP_STREAM_FLAG_NO_FCLOSE
	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"SSL: failed invoking reneg limit notification callback"

	.comm	_IS_TRUE,8,3                    ## @IS_TRUE
L_.str.3:                               ## @.str.3
	.asciz	"SSL: client-initiated handshake rate limit exceeded by peer"

	.no_dead_strip	_php_openssl_limit_handshake_reneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_limit_handshake_reneg
_php_openssl_limit_handshake_reneg:     ; @php_openssl_limit_handshake_reneg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	bl	_php_openssl_get_stream_from_ssl_handle
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
	ldr	x8, [x21]
	ldr	x10, [x8]
	ldrsw	x9, [sp, #8]
	cbz	x10, LBB0_9
; %bb.1:
	sub	w10, w10, w9
	str	x9, [x8]
	ldp	w11, w9, [x8, #12]
	ldr	w12, [x8, #8]
	sdiv	w9, w11, w9
	madd	w9, w9, w10, w12
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	add	w10, w9, #1
	str	w10, [x8, #8]
	cmp	w9, w11
	b.lt	LBB0_10
; %bb.2:
	mov	w9, #1
	str	w9, [x8, #20]
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
	cbz	x0, LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_php_stream_context_get_option
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	add	x1, sp, #4
	mov	x0, x19
	bl	_php_stream_to_zval
Lloh4:
	adrp	x22, _PHP_STREAM_FLAG_NO_FCLOSE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PHP_STREAM_FLAG_NO_FCLOSE@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh6:
	adrp	x8, _FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	mov	x3, sp
	add	x5, sp, #4
	mov	x0, #0
	mov	x1, #0
	mov	x2, x20
	mov	w4, #1
	mov	w6, #0
	mov	x7, #0
	bl	_call_user_function_ex
	cmp	x23, x0
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_php_error
LBB0_6:
	ldr	w8, [x22]
	ldr	w9, [x19]
	eor	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [sp]
	bl	_Z_TYPE
Lloh14:
	adrp	x8, _IS_TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IS_TRUE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21]
	str	wzr, [x8, #20]
LBB0_8:
	mov	x0, sp
	bl	_zval_ptr_dtor
	b	LBB0_10
LBB0_9:
	str	x9, [x8]
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
Lloh17:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	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
	add	sp, sp, #80
	b	_php_error_docref
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssl"

l_.str.1:                               ; @.str.1
	.asciz	"reneg_limit_callback"

	.comm	_PHP_STREAM_FLAG_NO_FCLOSE,4,2  ; @PHP_STREAM_FLAG_NO_FCLOSE
	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"SSL: failed invoking reneg limit notification callback"

	.comm	_IS_TRUE,8,3                    ; @IS_TRUE
l_.str.3:                               ; @.str.3
	.asciz	"SSL: client-initiated handshake rate limit exceeded by peer"

	.no_dead_strip	_php_openssl_limit_handshake_reneg
.subsections_via_symbols
