	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_cipher_init
_php_openssl_cipher_init:               ## @php_openssl_cipher_init
	.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
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	24(%rbp), %r14
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	$0, (%r9)
	callq	_EVP_CIPHER_iv_length
	movq	%rax, %r12
	cmpl	$0, 64(%rbp)
	je	LBB0_5
## %bb.1:
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.2:
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	cmpl	$0, 4(%r13)
	jne	LBB0_5
## %bb.4:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	64(%rbp), %r9d
	callq	_EVP_CipherInit_ex
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	32(%rbp), %rcx
	movq	16(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%rbx, %r8
	movq	%r13, %r9
	callq	_php_openssl_validate_iv
	movq	_FAILURE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_34
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	48(%rbp), %edx
	cmpl	$0, 64(%rbp)
	je	LBB0_13
## %bb.9:
	cmpq	$0, 8(%r13)
	je	LBB0_13
## %bb.10:
	movl	(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_12
LBB0_13:
	testl	%edx, %edx
	jle	LBB0_18
## %bb.14:
	movq	40(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.15:
	cmpl	$0, 64(%rbp)
	jne	LBB0_18
## %bb.16:
	cmpl	$0, 4(%r13)
	je	LBB0_17
## %bb.22:
	movl	(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_CIPHER_CTX_ctrl
	testl	%eax, %eax
	jne	LBB0_18
## %bb.23:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_12
LBB0_17:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
LBB0_18:
	movl	56(%rbp), %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_EVP_CIPHER_key_length
	cmpl	%r14d, %eax
	jle	LBB0_25
## %bb.19:
	movl	%eax, %r15d
	movq	_OPENSSL_DONT_ZERO_PAD_KEY@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_24
## %bb.20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_EVP_CIPHER_CTX_set_key_length
	testl	%eax, %eax
	je	LBB0_21
LBB0_24:
	movl	%r15d, %edi
	callq	_emalloc
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movl	%r13d, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%r12, (%r13)
	movl	%ebx, %r13d
	movslq	%r15d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_29
LBB0_25:
	jge	LBB0_28
## %bb.26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_EVP_CIPHER_CTX_set_key_length
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	callq	_php_openssl_store_errors
LBB0_28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
LBB0_29:
	movq	16(%rbp), %rbx
	movq	(%rbx), %r8
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movl	64(%rbp), %r9d
	callq	_EVP_CipherInit_ex
	testl	%eax, %eax
	je	LBB0_6
## %bb.30:
	movq	_OPENSSL_ZERO_PADDING@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_32
## %bb.31:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EVP_CIPHER_CTX_set_padding
LBB0_32:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_6:
	xorl	%eax, %eax
	callq	_php_openssl_store_errors
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_33:
	movl	(%rax), %eax
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	callq	_php_openssl_store_errors
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_12:
	xorl	%edi, %edi
	callq	_php_error_docref
	movl	(%r12), %eax
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using an empty Initialization Vector (iv) is potentially insecure and not recommended"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Setting tag length for AEAD cipher failed"

L_.str.2:                               ## @.str.2
	.asciz	"The tag cannot be used because the cipher method does not support AEAD"

L_.str.3:                               ## @.str.3
	.asciz	"Setting tag for AEAD cipher decryption failed"

	.comm	_OPENSSL_DONT_ZERO_PAD_KEY,4,2  ## @OPENSSL_DONT_ZERO_PAD_KEY
L_.str.4:                               ## @.str.4
	.asciz	"Key length cannot be set for the cipher method"

	.comm	_OPENSSL_ZERO_PADDING,4,2       ## @OPENSSL_ZERO_PADDING
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_php_openssl_cipher_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_cipher_init
_php_openssl_cipher_init:               ; @php_openssl_cipher_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x7
	mov	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x26, x2
	mov	x19, x1
	mov	x25, x0
	ldr	w20, [x29, #40]
	str	wzr, [x5]
	bl	_EVP_CIPHER_iv_length
	mov	x28, x0
	cbz	w20, LBB0_4
; %bb.1:
	ldr	x8, [x27]
	cmp	x8, #0
	ccmp	x28, #0, #4, eq
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x26, #4]
	cbnz	w8, LBB0_4
; %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
LBB0_4:
	mov	x0, x19
	mov	x1, x25
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, x20
	bl	_EVP_CipherInit_ex
	cbz	w0, LBB0_29
; %bb.5:
	ldr	x3, [x29, #16]
	mov	x0, x21
	mov	x1, x27
	mov	x2, x28
	mov	x4, x19
	mov	x5, x26
	bl	_php_openssl_validate_iv
Lloh5:
	adrp	x27, _FAILURE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _FAILURE@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_31
; %bb.6:
	ldr	w2, [x29, #32]
	cbz	w20, LBB0_10
; %bb.7:
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w1, [x26]
	mov	x0, x19
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cbnz	w0, LBB0_17
; %bb.9:
Lloh7:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_33
LBB0_10:
	cmp	w2, #1
	b.lt	LBB0_17
; %bb.11:
	ldr	x3, [x29, #24]
	cbz	x3, LBB0_17
; %bb.12:
	cbnz	w20, LBB0_17
; %bb.13:
	ldr	w8, [x26, #4]
	cbz	w8, LBB0_16
; %bb.14:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_ctrl
	cbnz	w0, LBB0_17
; %bb.15:
Lloh12:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_33
LBB0_16:
Lloh17:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
LBB0_17:
	ldr	w28, [x29, #36]
	ldr	w26, [x24]
	mov	x0, x25
	bl	_EVP_CIPHER_key_length
	cmp	w0, w26
	b.le	LBB0_21
; %bb.18:
	mov	x25, x0
Lloh22:
	adrp	x8, _OPENSSL_DONT_ZERO_PAD_KEY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OPENSSL_DONT_ZERO_PAD_KEY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w28
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x19
	mov	x1, x26
	bl	_EVP_CIPHER_CTX_set_key_length
	cbz	w0, LBB0_32
LBB0_20:
	mov	x0, x25
	bl	_emalloc
	mov	x27, x0
	mov	w1, #0
	mov	x2, x25
	bl	_memset
	ldr	x1, [x22]
	mov	x0, x27
	mov	x2, x26
	bl	_memcpy
	str	x27, [x22]
	sxtw	x8, w25
	str	x8, [x24]
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_25
LBB0_21:
	b.ge	LBB0_24
; %bb.22:
	mov	x0, x19
	mov	x1, x26
	bl	_EVP_CIPHER_CTX_set_key_length
	cbnz	w0, LBB0_24
; %bb.23:
	bl	_php_openssl_store_errors
LBB0_24:
	ldr	x27, [x22]
LBB0_25:
	ldr	x4, [x21]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, x27
	mov	x5, x20
	bl	_EVP_CipherInit_ex
	cbz	w0, LBB0_29
; %bb.26:
Lloh25:
	adrp	x8, _OPENSSL_ZERO_PADDING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OPENSSL_ZERO_PADDING@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w28
	b.eq	LBB0_28
; %bb.27:
	mov	x0, x19
	mov	w1, #0
	bl	_EVP_CIPHER_CTX_set_padding
LBB0_28:
Lloh28:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:
	bl	_php_openssl_store_errors
Lloh30:
	adrp	x8, _FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_30:
	ldr	w0, [x8]
LBB0_31:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_32:
	bl	_php_openssl_store_errors
Lloh32:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.4@PAGE
Lloh36:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_33:
	mov	x0, #0
	bl	_php_error_docref
	ldr	w0, [x27]
	b	LBB0_31
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using an empty Initialization Vector (iv) is potentially insecure and not recommended"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Setting tag length for AEAD cipher failed"

l_.str.2:                               ; @.str.2
	.asciz	"The tag cannot be used because the cipher method does not support AEAD"

l_.str.3:                               ; @.str.3
	.asciz	"Setting tag for AEAD cipher decryption failed"

	.comm	_OPENSSL_DONT_ZERO_PAD_KEY,4,2  ; @OPENSSL_DONT_ZERO_PAD_KEY
l_.str.4:                               ; @.str.4
	.asciz	"Key length cannot be set for the cipher method"

	.comm	_OPENSSL_ZERO_PADDING,4,2       ; @OPENSSL_ZERO_PADDING
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_php_openssl_cipher_init
.subsections_via_symbols
