	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_peripheral                 ## -- Begin function get_peripheral
	.p2align	4, 0x90
_get_peripheral:                        ## @get_peripheral
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAXPERIPHERALS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_peripheralinfo@GOTPCREL(%rip), %rcx
	movslq	%edi, %rax
	shlq	$3, %rax
	addq	(%rcx), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_companyinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAXCOMPANY@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	$-8, %rax
LBB0_3:
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPERIPHERALS,4,2             ## @MAXPERIPHERALS
	.comm	_peripheralinfo,8,3             ## @peripheralinfo
	.comm	_companyinfo,8,3                ## @companyinfo
	.comm	_MAXCOMPANY,4,2                 ## @MAXCOMPANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_peripheral                 ; -- Begin function get_peripheral
	.p2align	2
_get_peripheral:                        ; @get_peripheral
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAXPERIPHERALS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXPERIPHERALS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _peripheralinfo@GOTPAGE
Lloh4:
	ldr	x9, [x9, _peripheralinfo@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, w0, sxtw #3
Lloh6:
	adrp	x10, _companyinfo@GOTPAGE
Lloh7:
	ldr	x10, [x10, _companyinfo@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _MAXCOMPANY@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MAXCOMPANY@GOTPAGEOFF]
Lloh11:
	ldrsw	x11, [x11]
	add	x10, x10, x11, lsl #3
	sub	x10, x10, #8
	cmp	w8, w0
	csel	x8, x9, x10, gt
	ldr	x0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPERIPHERALS,4,2             ; @MAXPERIPHERALS
	.comm	_peripheralinfo,8,3             ; @peripheralinfo
	.comm	_companyinfo,8,3                ; @companyinfo
	.comm	_MAXCOMPANY,4,2                 ; @MAXCOMPANY
.subsections_via_symbols
