	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgtc2_block_internal
_rgtc2_block_internal:                  ## @rgtc2_block_internal
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, (%rsp)
	leaq	-304(%rbp), %rdi
	xorl	%r13d, %r13d
	movl	$16, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_rgtc1_block_internal
	addq	$32, %r12
	movl	$4, (%rsp)
	leaq	-560(%rbp), %rdi
	movl	$16, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_rgtc1_block_internal
	movslq	%r14d, %rax
	addq	$60, %rbx
	shlq	$2, %rax
	movq	%rax, -568(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, -12(%rbx)
	movl	%r12d, -8(%rbx)
	movl	%r14d, -4(%rbx)
	movl	$255, (%rbx)
	addq	$64, %r13
	addq	-568(%rbp), %rbx                ## 8-byte Folded Reload
	cmpq	$256, %r13                      ## imm = 0x100
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-304(%rbp,%r13), %r12d
	movl	-560(%rbp,%r13), %r15d
	movl	%r12d, %eax
	imull	%r12d, %eax
	movl	%r15d, %ecx
	imull	%r15d, %ecx
	addl	%eax, %ecx
	movl	$65025, %edi                    ## imm = 0xFE01
	subl	%ecx, %edi
	movl	$127, %r14d
	movl	$127, %eax
	cmpl	$2, %edi
	jl	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	shrl	%edi
	callq	_sqrtf
	movl	%eax, %edi
	callq	_lrint
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, -60(%rbx)
	movl	%r15d, -56(%rbx)
	movl	%eax, -52(%rbx)
	movl	$255, -48(%rbx)
	movl	-288(%rbp,%r13), %r15d
	movl	-544(%rbp,%r13), %r12d
	movl	%r15d, %eax
	imull	%r15d, %eax
	movl	%r12d, %ecx
	imull	%r12d, %ecx
	addl	%eax, %ecx
	movl	$65025, %edi                    ## imm = 0xFE01
	subl	%ecx, %edi
	cmpl	$2, %edi
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	shrl	%edi
	callq	_sqrtf
	movl	%eax, %edi
	callq	_lrint
	movl	%eax, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, -44(%rbx)
	movl	%r12d, -40(%rbx)
	movl	%r14d, -36(%rbx)
	movl	$255, -32(%rbx)
	movl	-272(%rbp,%r13), %r15d
	movl	-528(%rbp,%r13), %r12d
	movl	%r15d, %eax
	imull	%r15d, %eax
	movl	%r12d, %ecx
	imull	%r12d, %ecx
	addl	%eax, %ecx
	movl	$65025, %edi                    ## imm = 0xFE01
	subl	%ecx, %edi
	movl	$127, %r14d
	movl	$127, %eax
	cmpl	$2, %edi
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	shrl	%edi
	callq	_sqrtf
	movl	%eax, %edi
	callq	_lrint
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, -28(%rbx)
	movl	%r12d, -24(%rbx)
	movl	%eax, -20(%rbx)
	movl	$255, -16(%rbx)
	movl	-256(%rbp,%r13), %r15d
	movl	-512(%rbp,%r13), %r12d
	movl	%r15d, %eax
	imull	%r15d, %eax
	movl	%r12d, %ecx
	imull	%r12d, %ecx
	addl	%eax, %ecx
	movl	$65025, %edi                    ## imm = 0xFE01
	subl	%ecx, %edi
	cmpl	$2, %edi
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	shrl	%edi
	callq	_sqrtf
	movl	%eax, %edi
	callq	_lrint
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rgtc2_block_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgtc2_block_internal
_rgtc2_block_internal:                  ; @rgtc2_block_internal
	.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
	sub	sp, sp, #544
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x23, sp, #272
	add	x0, sp, #272
	mov	w1, #16
	mov	w4, #0
	mov	w5, #0
	mov	w6, #4
	bl	_rgtc1_block_internal
	add	x2, x20, #32
	add	x20, sp, #16
	add	x0, sp, #16
	mov	w1, #16
	mov	x3, x19
	mov	w4, #0
	mov	w5, #0
	mov	w6, #4
	bl	_rgtc1_block_internal
	mov	x19, #0
	add	x22, x22, #32
	sbfiz	x8, x21, #2, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w24, #65025
	mov	w25, #255
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsr	w0, w8, #1
	bl	_sqrtf
	bl	_lrint
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	w26, w21, [x22, #16]
	stp	w0, w25, [x22, #24]
	add	x19, x19, #64
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x22, x8
	cmp	x19, #256
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x23, x19]
	ldr	w27, [x20, x19]
	mul	w8, w26, w26
	madd	w8, w27, w27, w8
	sub	w8, w24, w8
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w0, w8, #1
	bl	_sqrtf
	bl	_lrint
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #127
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	w26, w27, [x22, #-32]
	stp	w0, w25, [x22, #-24]
	add	x26, x23, x19
	ldr	w28, [x26, #16]
	add	x27, x20, x19
	ldr	w21, [x27, #16]
	mul	w8, w28, w28
	madd	w8, w21, w21, w8
	sub	w8, w24, w8
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w0, w8, #1
	bl	_sqrtf
	bl	_lrint
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #127
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	w28, w21, [x22, #-16]
	stp	w0, w25, [x22, #-8]
	ldr	w21, [x26, #32]
	ldr	w26, [x27, #32]
	mul	w8, w21, w21
	madd	w8, w26, w26, w8
	sub	w8, w24, w8
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	lsr	w0, w8, #1
	bl	_sqrtf
	bl	_lrint
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #127
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	w21, w26, [x22]
	stp	w0, w25, [x22, #8]
	add	x8, x23, x19
	ldr	w26, [x8, #48]
	add	x8, x20, x19
	ldr	w21, [x8, #48]
	mul	w8, w26, w26
	madd	w8, w21, w21, w8
	sub	w8, w24, w8
	cmp	w8, #2
	b.ge	LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #127
	b	LBB0_2
LBB0_14:
	ldur	x8, [x29, #-96]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #544
	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_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rgtc2_block_internal
.subsections_via_symbols
