	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_set_norm
_cxusb_medion_set_norm:                 ## @cxusb_medion_set_norm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	movq	_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %ecx
	movslq	%r14d, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %r8
	callq	_cxusb_vprintk
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.3:
	movl	12(%r12), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movl	%r14d, 8(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_6:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%r14d, %eax
	jne	LBB0_1
## %bb.7:
	movl	20(%r12), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movl	16(%r12), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_12:
	movl	12(%r12), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_4
## %bb.13:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPS,4,2                        ## @OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to set standard for input %u to %lx\n"

	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
L_.str.1:                               ## @.str.1
	.asciz	"tda9887 norm setup failed (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"tuner norm setup failed (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"cx25840 norm setup failed (%d)\n"

	.no_dead_strip	_cxusb_medion_set_norm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_set_norm
_cxusb_medion_set_norm:                 ; @cxusb_medion_set_norm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x8, _OPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x0]
	sxtw	x4, w19
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_cxusb_vprintk
Lloh5:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
LBB0_1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x20, #12]
Lloh11:
	adrp	x8, _video@GOTPAGE
Lloh12:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _s_std@GOTPAGE
Lloh15:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_v4l2_subdev_call
	mov	x22, x0
	cbnz	w0, LBB0_13
LBB0_4:
	mov	w22, #0
	str	w19, [x20, #8]
	b	LBB0_13
LBB0_5:
Lloh17:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bics	wzr, w19, w8
	b.ne	LBB0_1
; %bb.6:
	ldr	w0, [x20, #20]
Lloh20:
	adrp	x23, _video@GOTPAGE
Lloh21:
	ldr	x23, [x23, _video@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh22:
	adrp	x24, _s_std@GOTPAGE
Lloh23:
	ldr	x24, [x24, _s_std@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
	ldr	x0, [x21]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
	ldr	w0, [x20, #16]
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
	ldr	x0, [x21]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	w0, [x20, #12]
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_4
; %bb.11:
	mov	x22, x0
	ldr	x0, [x21]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x2, x22
	bl	_dev_err
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_OPS,4,2                        ; @OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to set standard for input %u to %lx\n"

	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
l_.str.1:                               ; @.str.1
	.asciz	"tda9887 norm setup failed (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"tuner norm setup failed (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"cx25840 norm setup failed (%d)\n"

	.no_dead_strip	_cxusb_medion_set_norm
.subsections_via_symbols
