	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalomx_parameter_set_xlat
_mmalomx_parameter_set_xlat:            ## @mmalomx_parameter_set_xlat
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_mmalomx_find_parameter_from_omx_id
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	48(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	16(%r14), %rsi
	movl	(%r15), %edx
	cmpl	(%rax), %edx
	jl	LBB0_16
LBB0_3:
	movq	(%rsi), %r14
	movq	8(%rax), %rdx
	movq	_MMALOMX_PARAM_TRANSLATION_TYPE_DIRECT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_10
## %bb.4:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	setne	%dl
	sete	%bl
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %rsi
	movq	(%r15,%rbx), %rcx
	movq	%rcx, -32(%rbp)
	movl	(%r15), %ecx
	leal	-4(%rcx,%rdx,4), %ecx
	movl	%ecx, (%r15,%rbx)
	movl	40(%rax), %eax
	movl	%eax, 4(%r15,%rbx)
	movq	%r14, %rdi
	callq	_mmal_port_parameter_set
	movq	-32(%rbp), %rcx
	movq	%rcx, (%r15,%rbx)
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmalil_error_to_omx            ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_LOG_DEBUG
LBB0_6:
	movq	_OMX_ErrorNotImplemented@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movl	(%r15), %edx
	cmpl	$15, %edx
	jbe	LBB0_16
## %bb.8:
	movq	8(%r15), %rsi
	cmpq	(%r14), %rsi
	jae	LBB0_13
## %bb.9:
	shlq	$3, %rsi
	addq	8(%r14), %rsi
	cmpl	(%rax), %edx
	jge	LBB0_3
	jmp	LBB0_16
LBB0_10:
	movq	24(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:
	movl	16(%rax), %ecx
	cmpl	$9, %ecx
	jae	LBB0_16
## %bb.12:
	movl	%ecx, -32(%rbp)
	movl	40(%rax), %ecx
	movl	%ecx, -28(%rbp)
	movq	_MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	-32(%rbp), %rdx
	movq	%rax, %rsi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	*%rbx
	jmp	LBB0_20
LBB0_13:
	movq	_OMX_ErrorBadPortIndex@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	32(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.15:
	movl	16(%rax), %edx
	cmpl	$8, %edx
	jbe	LBB0_19
LBB0_16:
	movq	_OMX_ErrorBadParameter@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%edx, -32(%rbp)
	movl	40(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdx
	callq	*%rcx
LBB0_20:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mmal_port_parameter_set
LBB0_22:
	movq	%rax, %rdi
	callq	_mmalil_error_to_omx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no translation for omx id 0x%08x"

	.comm	_OMX_ErrorNotImplemented,4,2    ## @OMX_ErrorNotImplemented
	.comm	_OMX_ErrorBadParameter,4,2      ## @OMX_ErrorBadParameter
	.comm	_OMX_ErrorBadPortIndex,4,2      ## @OMX_ErrorBadPortIndex
	.comm	_MMALOMX_PARAM_TRANSLATION_TYPE_DIRECT,8,3 ## @MMALOMX_PARAM_TRANSLATION_TYPE_DIRECT
	.comm	_MMALOMX_PARAM_MAPPING_TO_MMAL,4,2 ## @MMALOMX_PARAM_MAPPING_TO_MMAL
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.no_dead_strip	_mmalomx_parameter_set_xlat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalomx_parameter_set_xlat
_mmalomx_parameter_set_xlat:            ; @mmalomx_parameter_set_xlat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_mmalomx_find_parameter_from_omx_id
	cbz	x0, LBB0_6
; %bb.1:
	mov	x1, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x10, [x20, #16]
	ldr	w9, [x19]
LBB0_3:
	ldr	w11, [x1]
	cmp	w9, w11
	b.lt	LBB0_17
; %bb.4:
	ldr	x20, [x10]
	ldr	x9, [x1, #8]
Lloh0:
	adrp	x10, _MMALOMX_PARAM_TRANSLATION_TYPE_DIRECT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMALOMX_PARAM_TRANSLATION_TYPE_DIRECT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.5:
	cmp	x8, #0
	cset	w8, eq
	add	x21, x19, w8, uxtw #4
	ldr	x8, [x21]
	str	x8, [sp, #8]
	ldr	w8, [x19]
	mov	w9, #-4
	csel	w9, w9, wzr, eq
	add	w8, w8, w9
	ldr	w9, [x1, #40]
	stp	w8, w9, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_mmal_port_parameter_set
	ldr	x8, [sp, #8]
	str	x8, [x21]
	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
	add	sp, sp, #64
	b	_mmalil_error_to_omx
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_LOG_DEBUG
LBB0_7:
Lloh5:
	adrp	x8, _OMX_ErrorNotImplemented@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMX_ErrorNotImplemented@GOTPAGEOFF]
	b	LBB0_18
LBB0_8:
	ldr	w9, [x19]
	cmp	w9, #15
	b.ls	LBB0_17
; %bb.9:
	ldr	x10, [x19, #8]
	ldr	x11, [x20]
	cmp	x10, x11
	b.hs	LBB0_14
; %bb.10:
	ldr	x11, [x20, #8]
	add	x10, x11, x10, lsl #3
	b	LBB0_3
LBB0_11:
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	w9, [x1, #16]
	cmp	w9, #9
	b.hs	LBB0_17
; %bb.13:
	ldr	w10, [x1, #40]
	stp	w9, w10, [sp, #8]
Lloh7:
	adrp	x9, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	add	x2, sp, #8
	mov	x3, x19
	mov	x4, x20
	blr	x8
	b	LBB0_21
LBB0_14:
Lloh10:
	adrp	x8, _OMX_ErrorBadPortIndex@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OMX_ErrorBadPortIndex@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_7
; %bb.16:
	ldr	w9, [x1, #16]
	cmp	w9, #8
	b.ls	LBB0_20
LBB0_17:
Lloh12:
	adrp	x8, _OMX_ErrorBadParameter@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMX_ErrorBadParameter@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
LBB0_19:
	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
	add	sp, sp, #64
	ret
LBB0_20:
	ldr	w10, [x1, #40]
	stp	w9, w10, [sp, #8]
Lloh14:
	adrp	x9, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	add	x1, sp, #8
	mov	x2, x19
	blr	x8
LBB0_21:
Lloh17:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.22:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mmal_port_parameter_set
LBB0_23:
	bl	_mmalil_error_to_omx
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no translation for omx id 0x%08x"

	.comm	_OMX_ErrorNotImplemented,4,2    ; @OMX_ErrorNotImplemented
	.comm	_OMX_ErrorBadParameter,4,2      ; @OMX_ErrorBadParameter
	.comm	_OMX_ErrorBadPortIndex,4,2      ; @OMX_ErrorBadPortIndex
	.comm	_MMALOMX_PARAM_TRANSLATION_TYPE_DIRECT,8,3 ; @MMALOMX_PARAM_TRANSLATION_TYPE_DIRECT
	.comm	_MMALOMX_PARAM_MAPPING_TO_MMAL,4,2 ; @MMALOMX_PARAM_MAPPING_TO_MMAL
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.no_dead_strip	_mmalomx_parameter_set_xlat
.subsections_via_symbols
