	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24120_attach                 ## -- Begin function cx24120_attach
	.p2align	4, 0x90
_cx24120_attach:                        ## @cx24120_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	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	_CX24120_REG_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cx24120_readreg
	cmpl	$7, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$5, %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	_info
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_cx24120_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, (%rbx)
	leaq	L_.str.5(%rip), %rdi
	callq	_info
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Conexant cx24120/cx24118 - DVBS/S2 Satellite demod/tuner\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate memory for cx24120_state\n"

	.comm	_CX24120_REG_REVISION,4,2       ## @CX24120_REG_REVISION
L_.str.2:                               ## @.str.2
	.asciz	"Demod cx24120 rev. 0x07 detected.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Demod cx24120 rev. 0x05 detected.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unsupported demod revision: 0x%x detected.\n"

	.comm	_cx24120_ops,4,2                ## @cx24120_ops
L_.str.5:                               ## @.str.5
	.asciz	"Conexant cx24120/cx24118 attached.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24120_attach                 ; -- Begin function cx24120_attach
	.p2align	2
_cx24120_attach:                        ; @cx24120_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, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	stp	x20, x21, [x19, #24]
Lloh5:
	adrp	x8, _CX24120_REG_REVISION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CX24120_REG_REVISION@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cx24120_readreg
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #7
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #5
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_info
	str	xzr, [x19, #16]
	add	x0, x19, #8
Lloh14:
	adrp	x1, _cx24120_ops@GOTPAGE
Lloh15:
	ldr	x1, [x1, _cx24120_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x19, [x19]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_info
	b	LBB0_9
LBB0_7:
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_8:
	bl	_err
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Conexant cx24120/cx24118 - DVBS/S2 Satellite demod/tuner\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate memory for cx24120_state\n"

	.comm	_CX24120_REG_REVISION,4,2       ; @CX24120_REG_REVISION
l_.str.2:                               ; @.str.2
	.asciz	"Demod cx24120 rev. 0x07 detected.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Demod cx24120 rev. 0x05 detected.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unsupported demod revision: 0x%x detected.\n"

	.comm	_cx24120_ops,4,2                ; @cx24120_ops
l_.str.5:                               ; @.str.5
	.asciz	"Conexant cx24120/cx24118 attached.\n"

.subsections_via_symbols
