	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_csi_input_seq
_get_csi_input_seq:                     ## @get_csi_input_seq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %ecx
	andl	$61440, %esi                    ## imm = 0xF000
	xorl	%eax, %eax
	cmpl	$8192, %esi                     ## imm = 0x2000
	jne	LBB0_8
## %bb.1:
	leal	-128(%rdx), %eax
	cmpl	$8, %eax
	ja	LBB0_5
## %bb.2:
	movl	$460, %edx                      ## imm = 0x1CC
	btl	%eax, %edx
	jb	LBB0_4
## %bb.3:
	movl	$49, %edx
	btl	%eax, %edx
	jae	LBB0_7
LBB0_4:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
LBB0_6:
	callq	_dev_warn
LBB0_7:
	movq	_CSI_INPUT_SEQ_YUYV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	popq	%rbp
	retq
LBB0_5:
	movl	(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CSI_INPUT_SEQ_UYVY,4,2         ## @CSI_INPUT_SEQ_UYVY
	.comm	_CSI_INPUT_SEQ_VYUY,4,2         ## @CSI_INPUT_SEQ_VYUY
	.comm	_CSI_INPUT_SEQ_YUYV,4,2         ## @CSI_INPUT_SEQ_YUYV
	.comm	_CSI_INPUT_SEQ_YVYU,4,2         ## @CSI_INPUT_SEQ_YVYU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported mbus code: 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported pixformat: 0x%x, defaulting to YUYV\n"

	.no_dead_strip	_get_csi_input_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_csi_input_seq
_get_csi_input_seq:                     ; @get_csi_input_seq
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	and	w9, w1, #0xf000
	cmp	w9, #2, lsl #12                 ; =8192
	b.ne	LBB0_7
; %bb.1:
	sub	w9, w2, #128
	cmp	w9, #8
	b.hi	LBB0_8
; %bb.2:
	mov	x8, x1
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #460
	tst	w9, w10
	b.ne	LBB0_4
; %bb.3:
	mov	w10, #49
	tst	w9, w10
	b.eq	LBB0_6
LBB0_4:
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
LBB0_5:
	bl	_dev_warn
LBB0_6:
Lloh2:
	adrp	x8, _CSI_INPUT_SEQ_YUYV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSI_INPUT_SEQ_YUYV@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x0]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CSI_INPUT_SEQ_UYVY,4,2         ; @CSI_INPUT_SEQ_UYVY
	.comm	_CSI_INPUT_SEQ_VYUY,4,2         ; @CSI_INPUT_SEQ_VYUY
	.comm	_CSI_INPUT_SEQ_YUYV,4,2         ; @CSI_INPUT_SEQ_YUYV
	.comm	_CSI_INPUT_SEQ_YVYU,4,2         ; @CSI_INPUT_SEQ_YVYU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported mbus code: 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported pixformat: 0x%x, defaulting to YUYV\n"

	.no_dead_strip	_get_csi_input_seq
.subsections_via_symbols
