	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tuner_attach_stv6110
_tuner_attach_stv6110:                  ## @tuner_attach_stv6110
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	8(%rax), %r14
	callq	_i2c_adapter_from_chan
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movq	(%rbx), %rsi
	movq	(%rcx,%rsi,8), %r15
	movq	(%rdx,%rsi,8), %rdx
	movq	_stv6110x_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%rbx), %esi
	movq	%rax, %rcx
	callq	_dvb_attach
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	40(%rax), %ecx
	movl	%ecx, 40(%r15)
	movl	36(%rax), %ecx
	movl	%ecx, 36(%r15)
	movl	32(%rax), %ecx
	movl	%ecx, 32(%r15)
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%r15)
	movups	(%rax), %xmm0
	movups	%xmm0, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stv6110x_attach,4,2            ## @stv6110x_attach
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No STV6110X found!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_tuner_attach_stv6110
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tuner_attach_stv6110
_tuner_attach_stv6110:                  ; @tuner_attach_stv6110
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8, #8]
	bl	_i2c_adapter_from_chan
	mov	x3, x0
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x20]
	lsl	x9, x9, #3
	ldp	x8, x10, [x8]
	ldr	x21, [x10, x9]
	ldr	x2, [x8, x9]
Lloh0:
	adrp	x8, _stv6110x_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stv6110x_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_dvb_attach
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x8, #40]
	str	w9, [x21, #40]
	ldr	d0, [x8, #32]
	str	d0, [x21, #32]
	ldr	q0, [x8, #16]
	str	q0, [x21, #16]
	ldr	q0, [x8]
	str	q0, [x21]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_stv6110x_attach,4,2            ; @stv6110x_attach
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No STV6110X found!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_tuner_attach_stv6110
.subsections_via_symbols
