	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7180_mbus_fmt
_adv7180_mbus_fmt:                      ## @adv7180_mbus_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_state
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	$720, (%rbx)                    ## imm = 0x2D0
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movl	$576, %edx                      ## imm = 0x240
	movl	$480, %ecx                      ## imm = 0x1E0
	cmovel	%edx, %ecx
	movl	%ecx, 4(%rbx)
	movq	8(%rax), %rax
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.1:
	shrl	%ecx
	movl	%ecx, 4(%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ## @V4L2_FIELD_ALTERNATE
	.no_dead_strip	_adv7180_mbus_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7180_mbus_fmt
_adv7180_mbus_fmt:                      ; @adv7180_mbus_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_state
Lloh0:
	adrp	x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh3:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	mov	w8, #720
	str	w8, [x19]
	ldr	w8, [x0]
Lloh6:
	adrp	x10, _V4L2_STD_525_60@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	mov	w8, #480
	mov	w10, #576
	csel	w8, w10, w8, eq
	stp	w8, w9, [x19, #4]
	ldr	x9, [x0, #8]
Lloh9:
	adrp	x10, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	lsr	w8, w8, #1
	str	w8, [x19, #4]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
	.no_dead_strip	_adv7180_mbus_fmt
.subsections_via_symbols
