	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7175_get_fmt
_adv7175_get_fmt:                       ## @adv7175_get_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	%rdx, %rbx
	movl	$7, %esi
	callq	_adv7175_read
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	testb	$64, %al
	jne	LBB0_3
## %bb.4:
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MEDIA_BUS_FMT_UYVY8_1X16@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEDIA_BUS_FMT_UYVY8_1X16,4,2   ## @MEDIA_BUS_FMT_UYVY8_1X16
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.no_dead_strip	_adv7175_get_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7175_get_fmt
_adv7175_get_fmt:                       ; @adv7175_get_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, x2
	mov	w1, #7
	bl	_adv7175_read
	ldr	x9, [x19]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
	tst	w8, #0x40
Lloh5:
	adrp	x8, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	stp	xzr, xzr, [x19, #16]
Lloh10:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEDIA_BUS_FMT_UYVY8_1X16,4,2   ; @MEDIA_BUS_FMT_UYVY8_1X16
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.no_dead_strip	_adv7175_get_fmt
.subsections_via_symbols
