	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_param_mapping_generic  ## -- Begin function mmalomx_param_mapping_generic
	.p2align	4, 0x90
_mmalomx_param_mapping_generic:         ## @mmalomx_param_mapping_generic
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rdx), %r12d
	addl	$-16, %r12d
	movq	%r8, %rdi
	callq	_MMAL_PARAM_UNUSED
	xorl	%esi, %esi
	cmpq	$0, (%r13)
	sete	%sil
	shlq	$4, %rsi
	addq	%rbx, %rsi
	movslq	(%rbx), %rax
	leaq	(%rbx,%rax,4), %rax
	leaq	(%rsi,%r12,4), %rcx
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_VCOS_ALERT
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	addq	$64, %r14
	movq	_MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	jmp	LBB0_5
LBB0_4:
	movq	%rsi, %rdi
	movq	%r14, %rsi
LBB0_5:
	movl	%r12d, %edx
	callq	_memcpy
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmalomx_param_mapping_generic: mismatch between mmal and omx parameters for (%u)"

	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMALOMX_PARAM_MAPPING_TO_MMAL,8,3 ## @MMALOMX_PARAM_MAPPING_TO_MMAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_param_mapping_generic  ; -- Begin function mmalomx_param_mapping_generic
	.p2align	2
_mmalomx_param_mapping_generic:         ; @mmalomx_param_mapping_generic
	.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	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x21, x0
	mov	x20, x2
	ldr	w8, [x20], #64
	sub	w19, w8, #16
	mov	x0, x4
	bl	_MMAL_PARAM_UNUSED
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w8, eq
	add	x1, x23, w8, uxtw #4
	ldrsw	x8, [x23]
	add	x8, x23, x8, lsl #2
	add	x9, x1, w19, uxtw #2
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x22, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VCOS_ALERT
Lloh2:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh4:
	adrp	x8, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	b	LBB0_5
LBB0_4:
	mov	x0, x1
	mov	x1, x20
LBB0_5:
	mov	x2, x19
	bl	_memcpy
Lloh7:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmalomx_param_mapping_generic: mismatch between mmal and omx parameters for (%u)"

	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMALOMX_PARAM_MAPPING_TO_MMAL,8,3 ; @MMALOMX_PARAM_MAPPING_TO_MMAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
.subsections_via_symbols
