	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_to_service
_handle_to_service:                     ## @handle_to_service
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_vchiq_instance@GOTPCREL(%rip), %rcx
	movq	_VCHIQ_MAX_INSTANCE_SERVICES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	decq	%rdx
	movslq	%edi, %rax
	andq	%rdx, %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vchiq_instance,8,3             ## @vchiq_instance
	.comm	_VCHIQ_MAX_INSTANCE_SERVICES,4,2 ## @VCHIQ_MAX_INSTANCE_SERVICES
	.no_dead_strip	_handle_to_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_to_service
_handle_to_service:                     ; @handle_to_service
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _vchiq_instance@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vchiq_instance@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VCHIQ_MAX_INSTANCE_SERVICES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VCHIQ_MAX_INSTANCE_SERVICES@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w9, w9, w0
	add	x0, x8, w9, sxtw #2
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_vchiq_instance,8,3             ; @vchiq_instance
	.comm	_VCHIQ_MAX_INSTANCE_SERVICES,4,2 ; @VCHIQ_MAX_INSTANCE_SERVICES
	.no_dead_strip	_handle_to_service
.subsections_via_symbols
