	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_ossl_decrypt
_gen_ossl_decrypt:                      ## @gen_ossl_decrypt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_6:
	movl	4(%rbx), %edi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rsi
	movq	%r12, %rcx
	movl	%r14d, %r8d
	callq	_EVP_DecryptUpdate
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.7:
	movq	_PXE_DECRYPT_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movl	4(%rbx), %edi
	movq	32(%rbx), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_DecryptInit_ex
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %edi
	movl	24(%rbx), %esi
	callq	_EVP_CIPHER_CTX_set_key_length
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	4(%rbx), %edi
	movq	16(%rbx), %rcx
	movq	8(%rbx), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_EVP_DecryptInit_ex
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movl	$1, (%rbx)
	jmp	LBB0_6
LBB0_2:
	movq	_PXE_CIPHER_INIT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_CIPHER_INIT,4,2            ## @PXE_CIPHER_INIT
	.comm	_PXE_DECRYPT_FAILED,4,2         ## @PXE_DECRYPT_FAILED
	.no_dead_strip	_gen_ossl_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_ossl_decrypt
_gen_ossl_decrypt:                      ; @gen_ossl_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	ldr	x22, [x0]
	ldr	w8, [x22]
	cbz	w8, LBB0_2
LBB0_1:
	ldr	w0, [x22, #4]
	add	x2, sp, #12
	mov	x1, x20
	mov	x3, x21
	mov	x4, x19
	bl	_EVP_DecryptUpdate
Lloh0:
	adrp	x8, _PXE_DECRYPT_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_DECRYPT_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_7
LBB0_2:
	ldr	w0, [x22, #4]
	ldr	x1, [x22, #32]
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_DecryptInit_ex
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x22, #4]
	ldr	w1, [x22, #24]
	bl	_EVP_CIPHER_CTX_set_key_length
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x22, #4]
	ldp	x4, x3, [x22, #8]
	mov	x1, #0
	mov	x2, #0
	bl	_EVP_DecryptInit_ex
	cbz	w0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_1
LBB0_6:
Lloh3:
	adrp	x8, _PXE_CIPHER_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PXE_CIPHER_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_CIPHER_INIT,4,2            ; @PXE_CIPHER_INIT
	.comm	_PXE_DECRYPT_FAILED,4,2         ; @PXE_DECRYPT_FAILED
	.no_dead_strip	_gen_ossl_decrypt
.subsections_via_symbols
