	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_util_rgb_order_fixed      ## -- Begin function mmal_util_rgb_order_fixed
	.p2align	4, 0x90
_mmal_util_rgb_order_fixed:             ## @mmal_util_rgb_order_fixed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	_MMAL_PARAMETER_SUPPORTED_ENCODINGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-16(%rbp), %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, -16(%rbp)
	callq	_mmal_port_parameter_get
	movq	%rax, %rcx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_MMAL_ENOSPC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
LBB0_2:
	movslq	-16(%rbp), %rdx
	movabsq	$34359738364, %rcx              ## imm = 0x7FFFFFFFC
	addq	%rdx, %rcx
	shrq	$3, %rcx
	movq	_MAX_ENCODINGS_NUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%ecx, %edx
	cmovll	%edx, %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.3:
	movq	-24(%rbp), %r8
	movq	_MMAL_ENCODING_BGR24@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_MMAL_ENCODING_RGB24@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%ecx, %edi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rcx,8), %rdx
	cmpq	%r10, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rsi, %rdx
	cmovel	%r9d, %eax
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_4
LBB0_6:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PARAMETER_SUPPORTED_ENCODINGS,4,2 ## @MMAL_PARAMETER_SUPPORTED_ENCODINGS
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOSPC,8,3                ## @MMAL_ENOSPC
	.comm	_MAX_ENCODINGS_NUM,4,2          ## @MAX_ENCODINGS_NUM
	.comm	_MMAL_ENCODING_BGR24,8,3        ## @MMAL_ENCODING_BGR24
	.comm	_MMAL_ENCODING_RGB24,8,3        ## @MMAL_ENCODING_RGB24
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_util_rgb_order_fixed      ; -- Begin function mmal_util_rgb_order_fixed
	.p2align	2
_mmal_util_rgb_order_fixed:             ; @mmal_util_rgb_order_fixed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, _MMAL_PARAMETER_SUPPORTED_ENCODINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_PARAMETER_SUPPORTED_ENCODINGS@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x9, sp, #8
	add	x1, x9, #8
	stp	xzr, xzr, [sp, #16]
	str	x8, [sp, #8]
	bl	_mmal_port_parameter_get
Lloh3:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MMAL_ENOSPC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMAL_ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldrsw	x8, [sp, #16]
	mov	x9, #34359738364
	add	x8, x8, x9
	lsr	x8, x8, #3
Lloh9:
	adrp	x9, _MAX_ENCODINGS_NUM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_ENCODINGS_NUM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w8
	csel	w8, w9, w8, lt
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w0, #0
	ldr	x9, [sp, #8]
Lloh12:
	adrp	x10, _MMAL_ENCODING_BGR24@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MMAL_ENCODING_BGR24@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _MMAL_ENCODING_RGB24@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MMAL_ENCODING_RGB24@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	cmp	x12, x10
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x12, x11
	csinc	w0, w0, wzr, ne
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PARAMETER_SUPPORTED_ENCODINGS,4,2 ; @MMAL_PARAMETER_SUPPORTED_ENCODINGS
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOSPC,8,3                ; @MMAL_ENOSPC
	.comm	_MAX_ENCODINGS_NUM,4,2          ; @MAX_ENCODINGS_NUM
	.comm	_MMAL_ENCODING_BGR24,8,3        ; @MMAL_ENCODING_BGR24
	.comm	_MMAL_ENCODING_RGB24,8,3        ; @MMAL_ENCODING_RGB24
.subsections_via_symbols
