	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_enum_mbus_code
_adv7511_enum_mbus_code:                ## @adv7511_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
	cmpq	$0, (%rdx)
	je	LBB0_1
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	movl	8(%rdx), %eax
	cmpl	$2, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$1, %eax
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_MEDIA_BUS_FMT_RGB888_1X24@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_MEDIA_BUS_FMT_UYVY8_1X16@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_MEDIA_BUS_FMT_YUYV8_1X16@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 12(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ## @MEDIA_BUS_FMT_RGB888_1X24
	.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	_adv7511_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 adv7511_enum_mbus_code
_adv7511_enum_mbus_code:                ; @adv7511_enum_mbus_code
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldr	w8, [x2, #8]
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w8, LBB0_1
; %bb.5:
	mov	w0, #0
Lloh3:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
Lloh5:
	adrp	x8, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
Lloh7:
	adrp	x8, _MEDIA_BUS_FMT_YUYV8_1X16@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MEDIA_BUS_FMT_YUYV8_1X16@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x2, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ; @MEDIA_BUS_FMT_RGB888_1X24
	.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	_adv7511_enum_mbus_code
.subsections_via_symbols
