	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_registry_component_roles ## -- Begin function mmalomx_registry_component_roles
	.p2align	4, 0x90
_mmalomx_registry_component_roles:      ## @mmalomx_registry_component_roles
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_mmalomx_components@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_MMAL_COUNTOF
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	cmpl	%ebx, %eax
	jg	LBB0_3
LBB0_2:
	movq	(%r15), %rdi
	callq	_MMAL_COUNTOF
	movl	%eax, %ebx
	decl	%ebx
LBB0_3:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movl	%r14d, %edx
	movq	_MMALOMX_ROLE_UNDEFINED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rax,%rcx,8)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_6
## %bb.8:
	movl	%edx, %ecx
	jmp	LBB0_9
LBB0_4:
	xorl	%ecx, %ecx
LBB0_9:
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmalomx_components,8,3         ## @mmalomx_components
	.comm	_MMALOMX_ROLE_UNDEFINED,8,3     ## @MMALOMX_ROLE_UNDEFINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_registry_component_roles ; -- Begin function mmalomx_registry_component_roles
	.p2align	2
_mmalomx_registry_component_roles:      ; @mmalomx_registry_component_roles
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _mmalomx_components@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mmalomx_components@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_MMAL_COUNTOF
	tbnz	w20, #31, LBB0_2
; %bb.1:
	cmp	w0, w20
	b.gt	LBB0_3
LBB0_2:
	ldr	x0, [x21]
	bl	_MMAL_COUNTOF
	sub	w20, w0, #1
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8, w20, sxtw #3]
	cbz	w19, LBB0_8
; %bb.4:
	mov	x9, #0
	mov	w10, w19
Lloh2:
	adrp	x11, _MMALOMX_ROLE_UNDEFINED@GOTPAGE
Lloh3:
	ldr	x11, [x11, _MMALOMX_ROLE_UNDEFINED@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x9, lsl #3]
	cmp	x12, x11
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_5
; %bb.7:
	mov	x9, x10
	b	LBB0_9
LBB0_8:
	mov	w9, #0
LBB0_9:
	ldr	x0, [x8, w9, uxtw #3]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_mmalomx_components,8,3         ; @mmalomx_components
	.comm	_MMALOMX_ROLE_UNDEFINED,8,3     ; @MMALOMX_ROLE_UNDEFINED
.subsections_via_symbols
