	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_querystd
_cxusb_medion_querystd:                 ## @cxusb_medion_querystd
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %r15
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	8(%rbx), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_querystd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	jmp	LBB0_3
LBB0_2:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	cmoveq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	(%r14), %r8
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	andq	%r12, (%r14)
LBB0_3:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_PAL,8,3               ## @V4L2_STD_PAL
	.comm	_V4L2_STD_ALL,8,3               ## @V4L2_STD_ALL
	.comm	_video,4,2                      ## @video
	.comm	_querystd,4,2                   ## @querystd
	.comm	_OPS,4,2                        ## @OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot get detected standard for input %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"input %u detected standard is %lx\n"

	.no_dead_strip	_cxusb_medion_querystd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_querystd
_cxusb_medion_querystd:                 ; @cxusb_medion_querystd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
	ldr	x24, [x22]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	ldr	w0, [x22, #8]
Lloh6:
	adrp	x8, _video@GOTPAGE
Lloh7:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _querystd@GOTPAGE
Lloh10:
	ldr	x8, [x8, _querystd@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_v4l2_subdev_call
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _OPS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OPS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_cxusb_vprintk
	b	LBB0_3
LBB0_2:
	cmp	x24, #0
	csel	x23, x23, x25, eq
Lloh17:
	adrp	x8, _OPS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OPS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w3, [x22]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_cxusb_vprintk
	ldr	x8, [x19]
	and	x8, x8, x23
	str	x8, [x19]
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_PAL,8,3               ; @V4L2_STD_PAL
	.comm	_V4L2_STD_ALL,8,3               ; @V4L2_STD_ALL
	.comm	_video,4,2                      ; @video
	.comm	_querystd,4,2                   ; @querystd
	.comm	_OPS,4,2                        ; @OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot get detected standard for input %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"input %u detected standard is %lx\n"

	.no_dead_strip	_cxusb_medion_querystd
.subsections_via_symbols
