	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function friio_frontend_attach
_friio_frontend_attach:                 ## @friio_frontend_attach
	.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
	callq	_adap_to_d
	movq	%rax, %r14
	movq	_friio_config@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	leaq	16(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	leaq	-32(%rbp), %r8
	callq	_dvb_module_probe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	-32(%rbp), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_adap_to_priv
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	_friio_tuner_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	$4, %edx
	callq	_strscpy
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movq	%rbx, 24(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	jmp	LBB0_3
LBB0_1:
	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	_friio_config,8,2               ## @friio_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tc90522"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_friio_tuner_i2c_algo,4,2       ## @friio_tuner_i2c_algo
L_.str.1:                               ## @.str.1
	.asciz	"-tuner"

	.no_dead_strip	_friio_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function friio_frontend_attach
_friio_frontend_attach:                 ; @friio_frontend_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_adap_to_d
	mov	x19, x0
Lloh0:
	adrp	x8, _friio_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _friio_config@GOTPAGEOFF]
	add	x2, x0, #16
	ldp	w3, w1, [x8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x4, sp, #8
	bl	_dvb_module_probe
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w8, [sp, #8]
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x20
	bl	_adap_to_priv
	mov	x20, x0
Lloh4:
	adrp	x8, _friio_tuner_i2c_algo@GOTPAGE
Lloh5:
	ldr	x8, [x8, _friio_tuner_i2c_algo@GOTPAGEOFF]
	str	x21, [x0, #32]
	ldr	x9, [x19, #8]
	stp	x9, x8, [x0, #8]
	ldr	w0, [x0]
	ldr	w1, [x19]
	mov	w2, #4
	bl	_strscpy
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	str	x20, [x20, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x20
	bl	_i2c_add_adapter
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_friio_config,8,2               ; @friio_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tc90522"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_friio_tuner_i2c_algo,4,2       ; @friio_tuner_i2c_algo
l_.str.1:                               ; @.str.1
	.asciz	"-tuner"

	.no_dead_strip	_friio_frontend_attach
.subsections_via_symbols
