	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_enum_mbus_code
_ccdc_enum_mbus_code:                   ## @ccdc_enum_mbus_code
	.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, %rbx
	movq	%rsi, %r14
	callq	_v4l2_get_subdevdata
	movl	(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$130, %ecx
	jne	LBB0_13
## %bb.3:
	movq	8(%rbx), %r15
	movq	_ccdc_fmts@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r15
	jae	LBB0_13
## %bb.4:
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_16
LBB0_5:
	cmpq	$0, 8(%rbx)
	jne	LBB0_13
## %bb.6:
	movl	20(%rbx), %ecx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	$128, %edx
	callq	___ccdc_get_format
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_13
LBB0_7:
	movl	20(%rbx), %ecx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	$129, %edx
	callq	___ccdc_get_format
	movl	(%rax), %eax
	movq	_MEDIA_BUS_FMT_YUYV8_2X8@GOTPCREL(%rip), %rdx
	movq	8(%rbx), %rcx
	cmpl	(%rdx), %eax
	je	LBB0_10
## %bb.8:
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_10
## %bb.9:
	testq	%rcx, %rcx
	jne	LBB0_13
	jmp	LBB0_16
LBB0_10:
	cmpq	$1, %rcx
	je	LBB0_14
## %bb.11:
	testq	%rcx, %rcx
	jne	LBB0_13
## %bb.12:
	movq	_MEDIA_BUS_FMT_YUYV8_1X16@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_14:
	movq	_MEDIA_BUS_FMT_UYVY8_1X16@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ccdc_fmts,8,3                  ## @ccdc_fmts
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ## @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_MEDIA_BUS_FMT_YUYV8_1X16,4,2   ## @MEDIA_BUS_FMT_YUYV8_1X16
	.comm	_MEDIA_BUS_FMT_UYVY8_1X16,4,2   ## @MEDIA_BUS_FMT_UYVY8_1X16
	.no_dead_strip	_ccdc_enum_mbus_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_enum_mbus_code
_ccdc_enum_mbus_code:                   ; @ccdc_enum_mbus_code
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_v4l2_get_subdevdata
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_12
; %bb.3:
	ldr	x21, [x19, #8]
Lloh0:
	adrp	x20, _ccdc_fmts@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ccdc_fmts@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_12
; %bb.4:
	mov	w0, #0
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #16]
	b	LBB0_13
LBB0_5:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_12
; %bb.6:
	ldr	w3, [x19, #20]
	mov	x1, x20
	mov	w2, #128
	bl	___ccdc_get_format
	ldr	w8, [x0]
	cbnz	w8, LBB0_14
	b	LBB0_12
LBB0_7:
	ldr	w3, [x19, #20]
	mov	x1, x20
	mov	w2, #129
	bl	___ccdc_get_format
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
Lloh5:
	adrp	x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x9]
	ldr	x9, [x19, #8]
	cmp	w8, w10
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_11
; %bb.8:
	cmp	x9, #1
	b.eq	LBB0_15
; %bb.9:
	cbnz	x9, LBB0_12
; %bb.10:
	mov	w0, #0
Lloh8:
	adrp	x8, _MEDIA_BUS_FMT_YUYV8_1X16@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEDIA_BUS_FMT_YUYV8_1X16@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	cbz	x9, LBB0_14
LBB0_12:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_13
LBB0_15:
	mov	w0, #0
Lloh13:
	adrp	x8, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ccdc_fmts,8,3                  ; @ccdc_fmts
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ; @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_MEDIA_BUS_FMT_YUYV8_1X16,4,2   ; @MEDIA_BUS_FMT_YUYV8_1X16
	.comm	_MEDIA_BUS_FMT_UYVY8_1X16,4,2   ; @MEDIA_BUS_FMT_UYVY8_1X16
	.no_dead_strip	_ccdc_enum_mbus_code
.subsections_via_symbols
