	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_cache_ring_register
_igc_cache_ring_register:               ## @igc_cache_ring_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.1:
	movq	16(%rdi), %rax
	leaq	-1(%r8), %rdx
	movl	%r8d, %ecx
	andl	$7, %ecx
	cmpq	$7, %rdx
	jae	LBB0_8
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_8:
	andl	$-8, %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	movl	%edx, (%rsi)
	movq	8(%rax,%rdx,8), %r9
	leal	1(%rdx), %esi
	movl	%esi, (%r9)
	movq	16(%rax,%rdx,8), %r9
	leal	2(%rdx), %esi
	movl	%esi, (%r9)
	movq	24(%rax,%rdx,8), %r9
	leal	3(%rdx), %esi
	movl	%esi, (%r9)
	movq	32(%rax,%rdx,8), %r9
	leal	4(%rdx), %esi
	movl	%esi, (%r9)
	movq	40(%rax,%rdx,8), %r9
	leal	5(%rdx), %esi
	movl	%esi, (%r9)
	movq	48(%rax,%rdx,8), %r9
	leal	6(%rdx), %esi
	movl	%esi, (%r9)
	movq	56(%rax,%rdx,8), %r9
	leal	7(%rdx), %esi
	movl	%esi, (%r9)
	addq	$8, %rdx
	cmpq	%r8, %rdx
	jne	LBB0_9
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	movl	%edx, (%rsi)
	incq	%rdx
	decq	%rcx
	jne	LBB0_4
LBB0_5:
	movl	4(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.6:
	movq	8(%rdi), %rax
	leaq	-1(%r8), %rdx
	movl	%r8d, %ecx
	andl	$7, %ecx
	cmpq	$7, %rdx
	jae	LBB0_10
## %bb.7:
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_10:
	andl	$-8, %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rdi
	movl	%edx, (%rdi)
	movq	8(%rax,%rdx,8), %rdi
	leal	1(%rdx), %esi
	movl	%esi, (%rdi)
	movq	16(%rax,%rdx,8), %rsi
	leal	2(%rdx), %edi
	movl	%edi, (%rsi)
	movq	24(%rax,%rdx,8), %rsi
	leal	3(%rdx), %edi
	movl	%edi, (%rsi)
	movq	32(%rax,%rdx,8), %rsi
	leal	4(%rdx), %edi
	movl	%edi, (%rsi)
	movq	40(%rax,%rdx,8), %rsi
	leal	5(%rdx), %edi
	movl	%edi, (%rsi)
	movq	48(%rax,%rdx,8), %rsi
	leal	6(%rdx), %edi
	movl	%edi, (%rsi)
	movq	56(%rax,%rdx,8), %rsi
	leal	7(%rdx), %edi
	movl	%edi, (%rsi)
	addq	$8, %rdx
	cmpq	%r8, %rdx
	jne	LBB0_11
LBB0_12:
	testq	%rcx, %rcx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	movl	%edx, (%rsi)
	incq	%rdx
	decq	%rcx
	jne	LBB0_13
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_igc_cache_ring_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igc_cache_ring_register
_igc_cache_ring_register:               ; @igc_cache_ring_register
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x9, [x0, #16]
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	mov	x11, #0
	and	x10, x8, #0xfffffffc
	add	x12, x9, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w13, w11, #1
	add	w14, w11, #2
	add	w15, w11, #3
	ldp	x16, x17, [x12, #-16]
	ldp	x1, x2, [x12], #32
	str	w11, [x16]
	str	w13, [x17]
	str	w14, [x1]
	str	w15, [x2]
	add	x11, x11, #4
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	str	w10, [x11]
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_6
LBB0_7:
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	ldr	x9, [x0, #8]
	cmp	w8, #4
	b.hs	LBB0_10
; %bb.9:
	mov	x10, #0
	b	LBB0_13
LBB0_10:
	mov	x11, #0
	and	x10, x8, #0xfffffffc
	add	x12, x9, #16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w13, w11, #1
	add	w14, w11, #2
	add	w15, w11, #3
	ldp	x16, x17, [x12, #-16]
	ldp	x0, x1, [x12], #32
	str	w11, [x16]
	str	w13, [x17]
	str	w14, [x0]
	str	w15, [x1]
	add	x11, x11, #4
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.12:
	cmp	x10, x8
	b.eq	LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	str	w10, [x11]
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_13
LBB0_14:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_igc_cache_ring_register
.subsections_via_symbols
