	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rj_encrypt
_rj_encrypt:                            ## @rj_encrypt
	.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	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	(%rdi), %rbx
	cmpl	$0, 24(%rbx)
	je	LBB0_1
LBB0_3:
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.4:
	testb	$15, %r12b
	je	LBB0_6
## %bb.5:
	movq	_PXE_NOTBLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rj_real_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_PXE_CIPHER_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	_MODE_CBC@GOTPCREL(%rip), %rcx
	leaq	8(%rbx), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	16(%rbx), %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_aes_cbc_encrypt
	movq	16(%rbx), %rdi
	movl	%r12d, %eax
	leaq	(%r14,%rax,4), %rsi
	addq	$-64, %rsi
	movl	$16, %edx
	callq	_memcpy
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_aes_ecb_encrypt
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_CIPHER_INIT,4,2            ## @PXE_CIPHER_INIT
	.comm	_PXE_NOTBLOCKSIZE,4,2           ## @PXE_NOTBLOCKSIZE
	.comm	_MODE_CBC,8,3                   ## @MODE_CBC
	.no_dead_strip	_rj_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rj_encrypt
_rj_encrypt:                            ; @rj_encrypt
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	ldr	x21, [x0]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_4
LBB0_1:
	cbz	w19, LBB0_9
; %bb.2:
	tst	w19, #0xf
	b.eq	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _PXE_NOTBLOCKSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_NOTBLOCKSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_4:
	mov	x0, x21
	mov	w1, #1
	bl	_rj_real_init
	cbz	x0, LBB0_1
; %bb.5:
Lloh3:
	adrp	x8, _PXE_CIPHER_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PXE_CIPHER_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	mov	x0, x21
	ldr	x8, [x0], #8
Lloh6:
	adrp	x9, _MODE_CBC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MODE_CBC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [x21, #16]
	mov	x2, x20
	mov	x3, x19
	bl	_aes_cbc_encrypt
	ldr	x0, [x21, #16]
	add	x8, x20, w19, uxtw #2
	sub	x1, x8, #64
	mov	w2, #16
	bl	_memcpy
	b	LBB0_9
LBB0_8:
	mov	x1, x20
	mov	x2, x19
	bl	_aes_ecb_encrypt
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_CIPHER_INIT,4,2            ; @PXE_CIPHER_INIT
	.comm	_PXE_NOTBLOCKSIZE,4,2           ; @PXE_NOTBLOCKSIZE
	.comm	_MODE_CBC,8,3                   ; @MODE_CBC
	.no_dead_strip	_rj_encrypt
.subsections_via_symbols
