	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24113_attach                 ## -- Begin function cx24113_attach
	.p2align	4, 0x90
_cx24113_attach:                        ## @cx24113_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, 24(%rax)
	movq	%r15, 16(%rax)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx_info
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cx24113_readreg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cx24113_readreg
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%eax, (%rbx)
	cmpl	$67, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx_info
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_cx_info
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cx24113_readreg
	movq	%rax, 8(%rbx)
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_cx_info
	leaq	8(%r14), %rdi
	movq	_cx24113_tuner_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, (%r14)
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_cx_err
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to detect myself\n"

L_.str.1:                               ## @.str.1
	.asciz	"CX24113 not found.\n"

L_.str.2:                               ## @.str.2
	.asciz	"detected CX24113 variant\n"

L_.str.3:                               ## @.str.3
	.asciz	"successfully detected\n"

L_.str.4:                               ## @.str.4
	.asciz	"unsupported device id: %x\n"

L_.str.5:                               ## @.str.5
	.asciz	"version: %x\n"

	.comm	_cx24113_tuner_ops,4,2          ## @cx24113_tuner_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24113_attach                 ; -- Begin function cx24113_attach
	.p2align	2
_cx24113_attach:                        ; @cx24113_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	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	stp	x21, x22, [x0, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cx_info
	mov	x0, x19
	mov	w1, #0
	bl	_cx24113_readreg
	mov	x0, x19
	mov	w1, #0
	bl	_cx24113_readreg
	mov	x1, x0
	tbnz	w1, #31, LBB0_5
; %bb.2:
	str	w1, [x19]
	cmp	w1, #67
	b.eq	LBB0_6
; %bb.3:
	cmp	w1, #128
	b.ne	LBB0_8
; %bb.4:
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_cx_info
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_cx_info
	mov	x0, x19
	mov	w1, #1
	bl	_cx24113_readreg
	str	x0, [x19, #8]
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_cx_info
	add	x0, x20, #8
Lloh13:
	adrp	x1, _cx24113_tuner_ops@GOTPAGE
Lloh14:
	ldr	x1, [x1, _cx24113_tuner_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x19, [x20]
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_cx_err
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to detect myself\n"

l_.str.1:                               ; @.str.1
	.asciz	"CX24113 not found.\n"

l_.str.2:                               ; @.str.2
	.asciz	"detected CX24113 variant\n"

l_.str.3:                               ; @.str.3
	.asciz	"successfully detected\n"

l_.str.4:                               ; @.str.4
	.asciz	"unsupported device id: %x\n"

l_.str.5:                               ; @.str.5
	.asciz	"version: %x\n"

	.comm	_cx24113_tuner_ops,4,2          ; @cx24113_tuner_ops
.subsections_via_symbols
