	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sixaxis_set_leds_from_id
_sixaxis_set_leds_from_id:              ## @sixaxis_set_leds_from_id
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movq	_MAX_LEDS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	_sixaxis_set_leds_from_id.sixaxis_leds(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpq	%rax, %r12
	setl	%dil
	callq	_BUILD_BUG_ON
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movl	%ebx, %eax
	movl	$3435973837, %ecx               ## imm = 0xCCCCCCCD
	imulq	%rax, %rcx
	shrq	$35, %rcx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %eax
	subl	%eax, %ebx
	movl	4(%r14), %edi
	shlq	$6, %rbx
	addq	%rbx, %r15
	movq	%r15, %rsi
	movl	$64, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @sixaxis_set_leds_from_id.sixaxis_leds
_sixaxis_set_leds_from_id.sixaxis_leds:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	16
	.space	16
	.space	16
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	16
	.space	16
	.space	16
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.space	16
	.space	16
	.space	16
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	16
	.space	16
	.space	16
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	16
	.space	16
	.space	16
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	16
	.space	16
	.space	16
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	16
	.space	16
	.space	16
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	16
	.space	16
	.space	16
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	16
	.space	16
	.space	16
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	16
	.space	16
	.space	16

	.comm	_MAX_LEDS,8,3                   ## @MAX_LEDS
	.no_dead_strip	_sixaxis_set_leds_from_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sixaxis_set_leds_from_id
_sixaxis_set_leds_from_id:              ; @sixaxis_set_leds_from_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _MAX_LEDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_LEDS@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x20, _sixaxis_set_leds_from_id.sixaxis_leds@PAGE
Lloh4:
	add	x20, x20, _sixaxis_set_leds_from_id.sixaxis_leds@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x22, x0
	cset	w0, lt
	bl	_BUILD_BUG_ON
	tbnz	w21, #31, LBB0_2
; %bb.1:
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	umull	x8, w21, w8
	lsr	x8, x8, #35
	mov	w9, #10
	msub	w8, w8, w9, w21
	ldr	w0, [x19, #4]
	add	x1, x20, x8, lsl #6
	mov	w2, #64
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @sixaxis_set_leds_from_id.sixaxis_leds
_sixaxis_set_leds_from_id.sixaxis_leds:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	16
	.space	16
	.space	16
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	16
	.space	16
	.space	16
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.space	16
	.space	16
	.space	16
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.space	16
	.space	16
	.space	16
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.space	16
	.space	16
	.space	16
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.space	16
	.space	16
	.space	16
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.space	16
	.space	16
	.space	16
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.space	16
	.space	16
	.space	16
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.space	16
	.space	16
	.space	16
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.space	16
	.space	16
	.space	16

	.comm	_MAX_LEDS,8,3                   ; @MAX_LEDS
	.no_dead_strip	_sixaxis_set_leds_from_id
.subsections_via_symbols
