	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxusb_medion_analog_init       ## -- Begin function cxusb_medion_analog_init
	.p2align	4, 0x90
_cxusb_medion_analog_init:              ## @cxusb_medion_analog_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rbx
	movaps	L___const.cxusb_medion_analog_init.tuner_analog_msg_data(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$97, -112(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	$16, -96(%rbp)
	addq	$8, %rdi
	leaq	-112(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_2:
	movl	12(%rbx), %edi
	movq	_core@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_4:
	movl	12(%rbx), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CX25840_COMPOSITE1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_6:
	movl	$1, (%rbx)
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %r12d
	movl	(%r15), %r15d
	movq	_s_io_pin_config@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_cxusub_medion_pin_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movq	_cxusub_medion_pin_config@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	%r12d, %edi
	movq	%r14, %r12
	movl	%r15d, %esi
	movl	%r13d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_8:
	movl	24(%rbx), %edi
	movq	_video@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_s_std@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movslq	16(%rbx), %rcx
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	movl	20(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r14), %edx
	movslq	16(%rbx), %rcx
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r14), %edx
	movslq	16(%rbx), %rcx
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -84(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -88(%rbp)
	movq	_MEDIA_BUS_FMT_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_V4L2_FIELD_SEQ_TB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	12(%rbx), %edi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_11
LBB0_10:
	movl	-84(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-88(%rbp), %eax
	movl	%eax, 4(%rbx)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.cxusb_medion_analog_init.tuner_analog_msg_data
L___const.cxusb_medion_analog_init.tuner_analog_msg_data:
	.long	156                             ## 0x9c
	.long	96                              ## 0x60
	.long	133                             ## 0x85
	.long	84                              ## 0x54

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner analog switch failed (%d)\n"

	.comm	_core,4,2                       ## @core
	.comm	_reset,4,2                      ## @reset
L_.str.1:                               ## @.str.1
	.asciz	"cx25840 reset failed (%d)\n"

	.comm	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_CX25840_COMPOSITE1,4,2         ## @CX25840_COMPOSITE1
L_.str.2:                               ## @.str.2
	.asciz	"cx25840 initial input setting failed (%d)\n"

	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_s_io_pin_config,4,2            ## @s_io_pin_config
	.comm	_cxusub_medion_pin_config,8,3   ## @cxusub_medion_pin_config
L_.str.3:                               ## @.str.3
	.asciz	"cx25840 pin config failed (%d)\n"

	.comm	_s_std,4,2                      ## @s_std
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_FIXED,4,2        ## @MEDIA_BUS_FMT_FIXED
	.comm	_V4L2_FIELD_SEQ_TB,4,2          ## @V4L2_FIELD_SEQ_TB
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
L_.str.4:                               ## @.str.4
	.asciz	"cx25840 format set failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cxusb_medion_analog_init
lCPI0_0:
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cxusb_medion_analog_init
	.p2align	2
_cxusb_medion_analog_init:              ; @cxusb_medion_analog_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x23, [x0, #16]
Lloh3:
	adrp	x8, l___const.cxusb_medion_analog_init.tuner_analog_msg_data@PAGE
Lloh4:
	add	x8, x8, l___const.cxusb_medion_analog_init.tuner_analog_msg_data@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp, #64]
	mov	w8, #97
	str	w8, [sp, #40]
	add	x8, sp, #64
	str	x8, [sp, #48]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #56]
	add	x0, x0, #8
	add	x1, sp, #40
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	ldr	w0, [x23, #12]
Lloh10:
	adrp	x21, _core@GOTPAGE
Lloh11:
	ldr	x21, [x21, _core@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh12:
	adrp	x8, _reset@GOTPAGE
Lloh13:
	ldr	x8, [x8, _reset@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
	ldr	x0, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_4:
	ldr	w0, [x23, #12]
Lloh17:
	adrp	x24, _video@GOTPAGE
Lloh18:
	ldr	x24, [x24, _video@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh19:
	adrp	x8, _s_routing@GOTPAGE
Lloh20:
	ldr	x8, [x8, _s_routing@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _CX25840_COMPOSITE1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CX25840_COMPOSITE1@GOTPAGEOFF]
Lloh24:
	ldrsw	x3, [x8]
	stp	xzr, xzr, [sp]
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
	ldr	x0, [x19]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_6:
	mov	w8, #1
	str	w8, [x23]
Lloh27:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	x9, [x23, #32]
	str	w8, [x9]
Lloh30:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x23, #16]
	ldr	w20, [x23, #12]
	ldr	w21, [x21]
Lloh33:
	adrp	x8, _s_io_pin_config@GOTPAGE
Lloh34:
	ldr	x8, [x8, _s_io_pin_config@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
Lloh36:
	adrp	x25, _cxusub_medion_pin_config@GOTPAGE
Lloh37:
	ldr	x25, [x25, _cxusub_medion_pin_config@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	x8, [x25]
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	x0, [x19]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
LBB0_8:
	ldr	w0, [x23, #24]
	ldr	w1, [x24]
Lloh40:
	adrp	x20, _s_std@GOTPAGE
Lloh41:
	ldr	x20, [x20, _s_std@GOTPAGEOFF]
	ldr	w2, [x20]
	ldrsw	x3, [x23, #16]
	bl	_v4l2_subdev_call
	ldr	w1, [x24]
	ldr	w2, [x20]
	ldp	w3, w0, [x23, #16]
                                        ; kill: def $w3 killed $w3 def $x3
	sxtw	x3, w3
	bl	_v4l2_subdev_call
	ldr	w1, [x24]
	ldr	w2, [x20]
	ldp	w0, w3, [x23, #12]
                                        ; kill: def $w3 killed $w3 def $x3
	sxtw	x3, w3
	bl	_v4l2_subdev_call
	add	x20, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh42:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	ldur	d0, [x23, #4]
Lloh45:
	adrp	x8, _MEDIA_BUS_FMT_FIXED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MEDIA_BUS_FMT_FIXED@GOTPAGEOFF]
	str	d0, [sp, #16]
Lloh47:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh48:
	adrp	x8, _V4L2_FIELD_SEQ_TB@GOTPAGE
Lloh49:
	ldr	x8, [x8, _V4L2_FIELD_SEQ_TB@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh52:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	ldr	w0, [x23, #12]
Lloh54:
	adrp	x8, _pad@GOTPAGE
Lloh55:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _set_fmt@GOTPAGE
Lloh58:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	str	x20, [sp]
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_10
; %bb.9:
	mov	x2, x0
	ldr	x0, [x19]
Lloh60:
	adrp	x1, l_.str.4@PAGE
Lloh61:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_warn
	b	LBB0_11
LBB0_10:
	ldr	d0, [sp, #16]
	stur	d0, [x23, #4]
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh62:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh63:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.cxusb_medion_analog_init.tuner_analog_msg_data
l___const.cxusb_medion_analog_init.tuner_analog_msg_data:
	.long	156                             ; 0x9c
	.long	96                              ; 0x60
	.long	133                             ; 0x85
	.long	84                              ; 0x54

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner analog switch failed (%d)\n"

	.comm	_core,4,2                       ; @core
	.comm	_reset,4,2                      ; @reset
l_.str.1:                               ; @.str.1
	.asciz	"cx25840 reset failed (%d)\n"

	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_CX25840_COMPOSITE1,4,2         ; @CX25840_COMPOSITE1
l_.str.2:                               ; @.str.2
	.asciz	"cx25840 initial input setting failed (%d)\n"

	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_s_io_pin_config,4,2            ; @s_io_pin_config
	.comm	_cxusub_medion_pin_config,8,3   ; @cxusub_medion_pin_config
l_.str.3:                               ; @.str.3
	.asciz	"cx25840 pin config failed (%d)\n"

	.comm	_s_std,4,2                      ; @s_std
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_FIXED,4,2        ; @MEDIA_BUS_FMT_FIXED
	.comm	_V4L2_FIELD_SEQ_TB,4,2          ; @V4L2_FIELD_SEQ_TB
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
l_.str.4:                               ; @.str.4
	.asciz	"cx25840 format set failed (%d)\n"

.subsections_via_symbols
