	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_find_led                ## -- Begin function em28xx_find_led
	.p2align	4, 0x90
_em28xx_find_led:                       ## @em28xx_find_led
	.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), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	movq	(%rcx), %rdi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	js	LBB0_8
## %bb.2:
	movq	_EM28XX_NUM_LED_ROLES@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rdi
	jge	LBB0_8
## %bb.3:
	movl	%esi, %esi
	cmpq	%rsi, %rdi
	jne	LBB0_5
## %bb.4:
	movq	%rcx, %rax
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rdi
	testq	%rdi, %rdi
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, %eax
	cmpq	%rdx, %rdi
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rcx
	movq	%rcx, %rax
	cmpq	%rsi, %rdi
	jne	LBB0_5
LBB0_8:
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_NUM_LED_ROLES,8,3       ## @EM28XX_NUM_LED_ROLES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_find_led                ; -- Begin function em28xx_find_led
	.p2align	2
_em28xx_find_led:                       ; @em28xx_find_led
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x0, #0
	ldr	x11, [x8]
	tbnz	x11, #63, LBB0_8
; %bb.2:
Lloh0:
	adrp	x9, _EM28XX_NUM_LED_ROLES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EM28XX_NUM_LED_ROLES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x11, x9
	b.ge	LBB0_8
; %bb.3:
	mov	w10, w1
	cmp	x11, x10
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x8
	ret
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	ldr	x11, [x8, #8]
	tbnz	x11, #63, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x11, x9
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #8
	mov	x0, x8
	cmp	x11, x10
	b.ne	LBB0_5
LBB0_8:
	ret
LBB0_9:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_NUM_LED_ROLES,8,3       ; @EM28XX_NUM_LED_ROLES
.subsections_via_symbols
