	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_field_order
_cxusb_medion_field_order:              ## @cxusb_medion_field_order
	.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
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	12(%rdi), %edi
	callq	_cxusb_medion_norm2field_order
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.2:
	movl	8(%rbx), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_cxusb_vprintk
	jmp	LBB0_5
LBB0_4:
	movl	-28(%rbp), %edi
	callq	_cxusb_medion_norm2field_order
	cmpq	(%r15), %rax
	jne	LBB0_7
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_6:
	movq	_V4L2_FIELD_SEQ_TB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_SEQ_TB,8,3          ## @V4L2_FIELD_SEQ_TB
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.comm	_video,4,2                      ## @video
	.comm	_g_std,4,2                      ## @g_std
	.comm	_OPS,4,2                        ## @OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot get current standard for input %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot determine field order for the current standard setup and received signal, using TB\n"

	.no_dead_strip	_cxusb_medion_field_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_field_order
_cxusb_medion_field_order:              ; @cxusb_medion_field_order
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x0, #12]
	bl	_cxusb_medion_norm2field_order
Lloh0:
	adrp	x21, _V4L2_FIELD_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _V4L2_FIELD_NONE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _video@GOTPAGE
Lloh3:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _g_std@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_std@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _OPS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w3, [x20]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cxusb_vprintk
	b	LBB0_5
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_cxusb_medion_norm2field_order
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_5:
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_6:
Lloh15:
	adrp	x8, _V4L2_FIELD_SEQ_TB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_FIELD_SEQ_TB@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_SEQ_TB,8,3          ; @V4L2_FIELD_SEQ_TB
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.comm	_video,4,2                      ; @video
	.comm	_g_std,4,2                      ; @g_std
	.comm	_OPS,4,2                        ; @OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot get current standard for input %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot determine field order for the current standard setup and received signal, using TB\n"

	.no_dead_strip	_cxusb_medion_field_order
.subsections_via_symbols
