	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tuner_attach_tda18271
_tuner_attach_tda18271:                 ## @tuner_attach_tda18271
	.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	8(%rdi), %rax
	movq	(%rax), %r14
	callq	_i2c_adapter_from_chan
	movq	%rax, %r15
	movq	(%rbx), %rsi
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	*%rcx
	movq	(%rbx), %rsi
LBB0_2:
	movq	_tda18271c2dd_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rdx
	movl	$96, %ecx
	callq	_dvb_attach
	movq	%rax, %r15
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	callq	*%rax
LBB0_4:
	xorl	%eax, %eax
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tda18271c2dd_attach,4,2        ## @tda18271c2dd_attach
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No TDA18271 found!\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tuner_attach_tda18271
_tuner_attach_tda18271:                 ; @tuner_attach_tda18271
	.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, #8]
	ldr	x19, [x8]
	bl	_i2c_adapter_from_chan
	mov	x21, x0
	ldr	x1, [x20]
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #1
	blr	x8
	ldr	x1, [x20]
LBB0_2:
Lloh0:
	adrp	x8, _tda18271c2dd_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tda18271c2dd_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x2, x21
	mov	w3, #96
	bl	_dvb_attach
	mov	x21, x0
	ldr	x0, [x20]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w1, #0
	blr	x8
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
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_7:
	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	_tda18271c2dd_attach,4,2        ; @tda18271c2dd_attach
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No TDA18271 found!\n"

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