	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_format_from_pixel         ## -- Begin function rvin_format_from_pixel
	.p2align	4, 0x90
_rvin_format_from_pixel:                ## @rvin_format_from_pixel
	.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	%rsi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_RCAR_M1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_V4L2_PIX_FMT_XBGR32@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_rvin_formats@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	%r12, (%rdi,%r13)
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_7
LBB0_6:
	addq	%r13, %rdi
	movq	%rdi, %r14
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_M1,8,3                    ## @RCAR_M1
	.comm	_V4L2_PIX_FMT_XBGR32,8,3        ## @V4L2_PIX_FMT_XBGR32
	.comm	_rvin_formats,8,3               ## @rvin_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_format_from_pixel         ; -- Begin function rvin_format_from_pixel
	.p2align	2
_rvin_format_from_pixel:                ; @rvin_format_from_pixel
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RCAR_M1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCAR_M1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_PIX_FMT_XBGR32@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_PIX_FMT_XBGR32@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x1, #0, eq
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
Lloh6:
	adrp	x20, _rvin_formats@GOTPAGE
Lloh7:
	ldr	x20, [x20, _rvin_formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x0, x21]
	cmp	x8, x19
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	mov	x0, #0
LBB0_6:
	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
LBB0_7:
	add	x0, x0, x21
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_M1,8,3                    ; @RCAR_M1
	.comm	_V4L2_PIX_FMT_XBGR32,8,3        ; @V4L2_PIX_FMT_XBGR32
	.comm	_rvin_formats,8,3               ; @rvin_formats
.subsections_via_symbols
