	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_validate_iv
_php_openssl_validate_iv:               ## @php_openssl_validate_iv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	(%rsi), %rdx
	movq	_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	%rbx, %rdx
	je	LBB0_11
## %bb.1:
	cmpq	$0, 8(%r9)
	je	LBB0_4
## %bb.2:
	movl	(%r9), %esi
	movq	%r8, %rdi
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	cmpl	$1, %eax
	je	LBB0_11
## %bb.3:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_php_error_docref
	movq	_FAILURE@GOTPCREL(%rip), %r13
	jmp	LBB0_11
LBB0_4:
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	1(%rbx), %rsi
	movl	$1, %edi
	callq	_ecalloc
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	_E_WARNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	%rbx, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_php_error_docref
	movq	(%r15), %rsi
	movq	(%r12), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, (%r12)
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_php_error_docref
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
LBB0_9:
	callq	_memcpy
	movq	%rbx, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_10:
	movq	%rax, (%r15)
	movl	$1, (%r14)
LBB0_11:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting of IV length for AEAD mode failed"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"IV passed is only %zd bytes long, cipher expects an IV of precisely %zd bytes, padding with \\0"

L_.str.2:                               ## @.str.2
	.asciz	"IV passed is %zd bytes long which is longer than the %zd expected by selected cipher, truncating"

	.no_dead_strip	_php_openssl_validate_iv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_validate_iv
_php_openssl_validate_iv:               ; @php_openssl_validate_iv
	.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
	mov	x21, x2
	ldr	x2, [x1]
	cmp	x2, x21
	b.eq	LBB0_10
; %bb.1:
	ldr	x8, [x5, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w1, [x5]
	mov	x0, x4
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
Lloh5:
	adrp	x8, _FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
	add	x1, x21, #1
	mov	w24, #1
	mov	w0, #1
	bl	_ecalloc
	mov	x23, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.5:
Lloh7:
	adrp	x9, _E_WARNING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _E_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	cmp	x8, x21
	b.hs	LBB0_8
; %bb.6:
	stp	x8, x21, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	ldr	x1, [x20]
	ldr	x2, [x22]
	mov	x0, x23
	b	LBB0_9
LBB0_7:
	str	x21, [x22]
	str	x23, [x20]
	str	w24, [x19]
	b	LBB0_10
LBB0_8:
	stp	x8, x21, [sp]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	ldr	x1, [x20]
	mov	x0, x23
	mov	x2, x21
LBB0_9:
	bl	_memcpy
	str	x21, [x22]
	str	x23, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
Lloh14:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting of IV length for AEAD mode failed"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"IV passed is only %zd bytes long, cipher expects an IV of precisely %zd bytes, padding with \\0"

l_.str.2:                               ; @.str.2
	.asciz	"IV passed is %zd bytes long which is longer than the %zd expected by selected cipher, truncating"

	.no_dead_strip	_php_openssl_validate_iv
.subsections_via_symbols
