	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az6007_tuner_attach
_az6007_tuner_attach:                   ## @az6007_tuner_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_adap_to_d
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	*%rcx
	movq	(%rbx), %rax
	movq	(%rax), %rsi
LBB0_2:
	movq	_mt2063_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_az6007_mt2063_config@GOTPCREL(%rip), %rdx
	movq	%r14, %rcx
	callq	_dvb_attach
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	callq	*%rcx
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attaching tuner mt2063\n"

	.comm	_mt2063_attach,4,2              ## @mt2063_attach
	.comm	_az6007_mt2063_config,4,2       ## @az6007_mt2063_config
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_az6007_tuner_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function az6007_tuner_attach
_az6007_tuner_attach:                   ; @az6007_tuner_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_adap_to_d
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19]
	ldr	x1, [x8]
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #1
	blr	x8
	ldr	x8, [x19]
	ldr	x1, [x8]
LBB0_2:
Lloh2:
	adrp	x8, _mt2063_attach@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mt2063_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x2, _az6007_mt2063_config@GOTPAGE
Lloh6:
	ldr	x2, [x2, _az6007_mt2063_config@GOTPAGEOFF]
	mov	x3, x20
	bl	_dvb_attach
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w1, #0
	blr	x8
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attaching tuner mt2063\n"

	.comm	_mt2063_attach,4,2              ; @mt2063_attach
	.comm	_az6007_mt2063_config,4,2       ; @az6007_mt2063_config
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_az6007_tuner_attach
.subsections_via_symbols
