	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_find_parameter_from_mmal_id ## -- Begin function mmalomx_find_parameter_from_mmal_id
	.p2align	4, 0x90
_mmalomx_find_parameter_from_mmal_id:   ## @mmalomx_find_parameter_from_mmal_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_mmalomx_param_list@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_MMAL_COUNTOF
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_MMAL_PARAMETER_UNUSED@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r14), %rdi
	movq	(%rdi,%r15,8), %rcx
	movq	(%r13), %rax
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	movq	(%rcx,%rbx,8), %rdx
	cmpq	%r12, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%rax, %rdx
	jne	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %rdx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	callq	_MMAL_COUNTOF
	movl	%eax, %eax
	cmpq	%rax, %r15
	jb	LBB0_3
	jmp	LBB0_8
LBB0_1:
                                        ## implicit-def: $ebx
LBB0_8:
	movq	(%r14), %rdi
	callq	_MMAL_COUNTOF
	cmpl	%eax, %r15d
	jae	LBB0_9
## %bb.10:
	movq	(%r14), %rcx
	movl	%r15d, %edx
	movl	%ebx, %eax
	shlq	$3, %rax
	addq	(%rcx,%rdx,8), %rax
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmalomx_param_list,8,3         ## @mmalomx_param_list
	.comm	_MMAL_PARAMETER_UNUSED,8,3      ## @MMAL_PARAMETER_UNUSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_find_parameter_from_mmal_id ; -- Begin function mmalomx_find_parameter_from_mmal_id
	.p2align	2
_mmalomx_find_parameter_from_mmal_id:   ; @mmalomx_find_parameter_from_mmal_id
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _mmalomx_param_list@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mmalomx_param_list@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_MMAL_COUNTOF
	cbz	w0, LBB0_6
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x23, _MMAL_PARAMETER_UNUSED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MMAL_PARAMETER_UNUSED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x0, [x20]
	ldr	x8, [x0, x21, lsl #3]
	ldr	x9, [x23]
	mov	w22, #-1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w22, w22, #1
	ldr	x10, [x8, w22, uxtw #3]
	cmp	x10, x19
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x10, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	bl	_MMAL_COUNTOF
	cmp	x21, w0, uxtw
	b.lo	LBB0_2
	b	LBB0_7
LBB0_6:
	mov	w21, #0
                                        ; implicit-def: $w22
LBB0_7:
	ldr	x0, [x20]
	bl	_MMAL_COUNTOF
	cmp	w21, w0
	b.hs	LBB0_9
; %bb.8:
	ldr	x8, [x20]
	ldr	x8, [x8, w21, uxtw #3]
	add	x0, x8, w22, uxtw #3
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mmalomx_param_list,8,3         ; @mmalomx_param_list
	.comm	_MMAL_PARAMETER_UNUSED,8,3      ; @MMAL_PARAMETER_UNUSED
.subsections_via_symbols
