	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_led_find                 ## -- Begin function wacom_led_find
	.p2align	4, 0x90
_wacom_led_find:                        ## @wacom_led_find
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%esi, (%rdi)
	jbe	LBB0_4
## %bb.1:
	movq	8(%rdi), %rcx
	movl	%esi, %esi
	shlq	$4, %rsi
	movq	8(%rcx,%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	(%rcx,%rsi)
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(%rdi,%rdx,4), %rax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_led_find                 ; -- Begin function wacom_led_find
	.p2align	2
_wacom_led_find:                        ; @wacom_led_find
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, w1
	b.ls	LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
	add	x8, x9, w1, uxtw #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w10, w1
	lsl	x10, x10, #4
	ldr	w9, [x9, x10]
	udiv	w10, w2, w9
	msub	w9, w10, w9, w2
	add	x0, x8, w9, uxtw #2
	ret
LBB0_3:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
