	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vce_v3_0_set_ring_funcs
_vce_v3_0_set_ring_funcs:               ## @vce_v3_0_set_ring_funcs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	(%rdi), %rcx
	movq	_CHIP_STONEY@GOTPCREL(%rip), %rdx
	movl	8(%rdi), %r9d
	cmpq	(%rdx), %rcx
	jge	LBB0_1
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	testl	%r9d, %r9d
	jle	LBB0_16
## %bb.7:
	movq	16(%rax), %r8
	cmpl	$1, %r9d
	jne	LBB0_11
## %bb.8:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	testl	%r9d, %r9d
	jle	LBB0_16
## %bb.2:
	movq	16(%rax), %r8
	cmpl	$1, %r9d
	jne	LBB0_9
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_11:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	24(%r8), %rax
	xorl	%edx, %edx
	movq	_vce_v3_0_ring_phys_funcs@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -16(%rax)
	movl	%edx, -24(%rax)
	movq	%rcx, (%rax)
	leal	1(%rdx), %esi
	movl	%esi, -8(%rax)
	addq	$2, %rdx
	addq	$32, %rax
	cmpq	%r10, %rdx
	jne	LBB0_12
LBB0_13:
	testb	$1, %r9b
	je	LBB0_16
## %bb.14:
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	_vce_v3_0_ring_phys_funcs@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_9:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	24(%r8), %rax
	xorl	%edx, %edx
	movq	_vce_v3_0_ring_vm_funcs@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -16(%rax)
	movl	%edx, -24(%rax)
	movq	%rcx, (%rax)
	leal	1(%rdx), %esi
	movl	%esi, -8(%rax)
	addq	$2, %rdx
	addq	$32, %rax
	cmpq	%r10, %rdx
	jne	LBB0_10
LBB0_4:
	testb	$1, %r9b
	je	LBB0_16
## %bb.5:
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	_vce_v3_0_ring_vm_funcs@GOTPCREL(%rip), %rcx
LBB0_15:
	movq	%rcx, 8(%r8,%rax)
	movl	%edx, (%r8,%rax)
LBB0_16:
	popq	%rbp
	jmp	_DRM_INFO                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_STONEY,8,3                ## @CHIP_STONEY
	.comm	_vce_v3_0_ring_vm_funcs,4,2     ## @vce_v3_0_ring_vm_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VCE enabled in VM mode\n"

	.comm	_vce_v3_0_ring_phys_funcs,4,2   ## @vce_v3_0_ring_phys_funcs
L_.str.1:                               ## @.str.1
	.asciz	"VCE enabled in physical mode\n"

	.no_dead_strip	_vce_v3_0_set_ring_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vce_v3_0_set_ring_funcs
_vce_v3_0_set_ring_funcs:               ; @vce_v3_0_set_ring_funcs
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _CHIP_STONEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHIP_STONEY@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x0, #8]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x11, [x0, #16]
Lloh3:
	adrp	x9, _vce_v3_0_ring_phys_funcs@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vce_v3_0_ring_phys_funcs@GOTPAGEOFF]
	cmp	w8, #4
	b.hs	LBB0_7
; %bb.3:
	mov	x10, #0
	b	LBB0_11
LBB0_4:
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.5:
	ldr	x11, [x0, #16]
Lloh5:
	adrp	x9, _vce_v3_0_ring_vm_funcs@GOTPAGE
Lloh6:
	ldr	x9, [x9, _vce_v3_0_ring_vm_funcs@GOTPAGEOFF]
	cmp	w8, #4
	b.hs	LBB0_13
; %bb.6:
	mov	x10, #0
	b	LBB0_17
LBB0_7:
	mov	x12, #0
	and	x10, x8, #0xfffffffc
	add	x13, x11, #32
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w12, #1
	stur	x9, [x13, #-24]
	add	w15, w12, #2
	add	w16, w12, #3
	stur	x9, [x13, #-8]
	str	x9, [x13, #8]
	str	x9, [x13, #24]
	stur	w12, [x13, #-32]
	stur	w14, [x13, #-16]
	add	x12, x12, #4
	str	w15, [x13]
	str	w16, [x13, #16]
	add	x13, x13, #64
	cmp	x10, x12
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x8
	b.ne	LBB0_11
LBB0_10:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_11:
	add	x11, x11, x10, lsl #4
	add	x11, x11, #8
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	x9, [x11]
	stur	w10, [x11, #-8]
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x8, x10
	b.ne	LBB0_12
	b	LBB0_19
LBB0_13:
	mov	x12, #0
	and	x10, x8, #0xfffffffc
	add	x13, x11, #32
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	w14, w12, #1
	stur	x9, [x13, #-24]
	add	w15, w12, #2
	add	w16, w12, #3
	stur	x9, [x13, #-8]
	str	x9, [x13, #8]
	str	x9, [x13, #24]
	stur	w12, [x13, #-32]
	stur	w14, [x13, #-16]
	add	x12, x12, #4
	str	w15, [x13]
	str	w16, [x13, #16]
	add	x13, x13, #64
	cmp	x10, x12
	b.ne	LBB0_14
; %bb.15:
	cmp	x10, x8
	b.ne	LBB0_17
LBB0_16:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	_DRM_INFO
LBB0_17:
	add	x11, x11, x10, lsl #4
	add	x11, x11, #8
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	str	x9, [x11]
	stur	w10, [x11, #-8]
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x8, x10
	b.ne	LBB0_18
LBB0_19:
	b	_DRM_INFO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_STONEY,8,3                ; @CHIP_STONEY
	.comm	_vce_v3_0_ring_vm_funcs,4,2     ; @vce_v3_0_ring_vm_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VCE enabled in VM mode\n"

	.comm	_vce_v3_0_ring_phys_funcs,4,2   ; @vce_v3_0_ring_phys_funcs
l_.str.1:                               ; @.str.1
	.asciz	"VCE enabled in physical mode\n"

	.no_dead_strip	_vce_v3_0_set_ring_funcs
.subsections_via_symbols
