	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalomx_ComponentRoleEnum
_mmalomx_ComponentRoleEnum:             ## @mmalomx_ComponentRoleEnum
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_LOG_TRACE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_OMX_StateInvalid@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_OMX_ErrorInvalidState@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_1:
	movq	_OMX_ErrorInvalidComponent@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_4:
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_mmalomx_registry_component_roles
	movq	_OMX_ErrorNoMore@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mmalomx_role_to_name
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	callq	_mmalomx_role_to_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_strcpy
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rbx
LBB0_7:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hComponent %p, cRole %p, nIndex %i"

	.comm	_OMX_ErrorInvalidComponent,4,2  ## @OMX_ErrorInvalidComponent
	.comm	_OMX_StateInvalid,8,3           ## @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ## @OMX_ErrorInvalidState
	.comm	_OMX_ErrorNoMore,4,2            ## @OMX_ErrorNoMore
	.comm	_OMX_ErrorNone,4,2              ## @OMX_ErrorNone
	.no_dead_strip	_mmalomx_ComponentRoleEnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalomx_ComponentRoleEnum
_mmalomx_ComponentRoleEnum:             ; @mmalomx_ComponentRoleEnum
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_LOG_TRACE
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _OMX_StateInvalid@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OMX_StateInvalid@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _OMX_ErrorInvalidState@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMX_ErrorInvalidState@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh7:
	adrp	x8, _OMX_ErrorInvalidComponent@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMX_ErrorInvalidComponent@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_mmalomx_registry_component_roles
	cbz	w0, LBB0_7
; %bb.5:
	mov	x20, x0
	bl	_mmalomx_role_to_name
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_mmalomx_role_to_name
	mov	x1, x0
	mov	x0, x19
	bl	_strcpy
Lloh9:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _OMX_ErrorNoMore@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMX_ErrorNoMore@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hComponent %p, cRole %p, nIndex %i"

	.comm	_OMX_ErrorInvalidComponent,4,2  ; @OMX_ErrorInvalidComponent
	.comm	_OMX_StateInvalid,8,3           ; @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,4,2      ; @OMX_ErrorInvalidState
	.comm	_OMX_ErrorNoMore,4,2            ; @OMX_ErrorNoMore
	.comm	_OMX_ErrorNone,4,2              ; @OMX_ErrorNone
	.no_dead_strip	_mmalomx_ComponentRoleEnum
.subsections_via_symbols
