	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function demod_attach_cxd28xx
_demod_attach_cxd28xx:                  ## @demod_attach_cxd28xx
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %eax
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	24(%rdi), %rcx
	movq	(%rcx), %r14
	movl	(%rdi), %ecx
	andl	$1, %ecx
	addl	%ecx, %ecx
	addl	$216, %ecx
	movl	%ecx, -32(%rbp)
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	_SONY_XTAL_20500@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SONY_XTAL_24000@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_CXD2841ER_AUTO_IFHZ@GOTPCREL(%rip), %rcx
	movq	_CXD2841ER_EARLY_TUNE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	movq	_CXD2841ER_NO_WAIT_LOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_CXD2841ER_NO_AGCNEG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_CXD2841ER_TSBITS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_CXD2841ER_TS_SERIAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	_cxd2841er_attach_t_c@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_dvb_attach
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, 8(%rax)
	movl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_drxk_gate_ctrl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	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	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SONY_XTAL_24000,4,2            ## @SONY_XTAL_24000
	.comm	_SONY_XTAL_20500,4,2            ## @SONY_XTAL_20500
	.comm	_CXD2841ER_AUTO_IFHZ,4,2        ## @CXD2841ER_AUTO_IFHZ
	.comm	_CXD2841ER_EARLY_TUNE,4,2       ## @CXD2841ER_EARLY_TUNE
	.comm	_CXD2841ER_NO_WAIT_LOCK,4,2     ## @CXD2841ER_NO_WAIT_LOCK
	.comm	_CXD2841ER_NO_AGCNEG,4,2        ## @CXD2841ER_NO_AGCNEG
	.comm	_CXD2841ER_TSBITS,4,2           ## @CXD2841ER_TSBITS
	.comm	_CXD2841ER_TS_SERIAL,4,2        ## @CXD2841ER_TS_SERIAL
	.comm	_cxd2841er_attach_t_c,4,2       ## @cxd2841er_attach_t_c
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CXD28XX attach failed!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_drxk_gate_ctrl,4,2             ## @drxk_gate_ctrl
	.no_dead_strip	_demod_attach_cxd28xx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function demod_attach_cxd28xx
_demod_attach_cxd28xx:                  ; @demod_attach_cxd28xx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x1
	mov	x19, x0
	ldr	x9, [x0, #24]
	ldr	x20, [x9]
	ldr	w9, [x0]
	mov	w10, #216
	bfi	w10, w9, #1, #1
	str	w10, [sp]
Lloh0:
	adrp	x9, _SONY_XTAL_24000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SONY_XTAL_24000@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SONY_XTAL_20500@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SONY_XTAL_20500@GOTPAGEOFF]
	cmp	w2, #0
	csel	x9, x10, x9, eq
Lloh4:
	adrp	x10, _CXD2841ER_AUTO_IFHZ@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CXD2841ER_AUTO_IFHZ@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
Lloh7:
	adrp	x11, _CXD2841ER_EARLY_TUNE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _CXD2841ER_EARLY_TUNE@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh10:
	adrp	x11, _CXD2841ER_NO_WAIT_LOCK@GOTPAGE
Lloh11:
	ldr	x11, [x11, _CXD2841ER_NO_WAIT_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh13:
	adrp	x11, _CXD2841ER_NO_AGCNEG@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CXD2841ER_NO_AGCNEG@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh16:
	adrp	x11, _CXD2841ER_TSBITS@GOTPAGE
Lloh17:
	ldr	x11, [x11, _CXD2841ER_TSBITS@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh18:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh19:
	adrp	x11, _CXD2841ER_TS_SERIAL@GOTPAGE
Lloh20:
	ldr	x11, [x11, _CXD2841ER_TS_SERIAL@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w10, w10, w11
	stp	w10, w9, [sp, #4]
Lloh22:
	adrp	x9, _cxd2841er_attach_t_c@GOTPAGE
Lloh23:
	ldr	x9, [x9, _cxd2841er_attach_t_c@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
	mov	x1, sp
	mov	x2, x8
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	str	x19, [x8, #8]
	ldr	w9, [x8]
	str	w9, [x19, #16]
Lloh25:
	adrp	x9, _drxk_gate_ctrl@GOTPAGE
Lloh26:
	ldr	x9, [x9, _drxk_gate_ctrl@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_3
LBB0_2:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SONY_XTAL_24000,4,2            ; @SONY_XTAL_24000
	.comm	_SONY_XTAL_20500,4,2            ; @SONY_XTAL_20500
	.comm	_CXD2841ER_AUTO_IFHZ,4,2        ; @CXD2841ER_AUTO_IFHZ
	.comm	_CXD2841ER_EARLY_TUNE,4,2       ; @CXD2841ER_EARLY_TUNE
	.comm	_CXD2841ER_NO_WAIT_LOCK,4,2     ; @CXD2841ER_NO_WAIT_LOCK
	.comm	_CXD2841ER_NO_AGCNEG,4,2        ; @CXD2841ER_NO_AGCNEG
	.comm	_CXD2841ER_TSBITS,4,2           ; @CXD2841ER_TSBITS
	.comm	_CXD2841ER_TS_SERIAL,4,2        ; @CXD2841ER_TS_SERIAL
	.comm	_cxd2841er_attach_t_c,4,2       ; @cxd2841er_attach_t_c
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CXD28XX attach failed!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_drxk_gate_ctrl,4,2             ; @drxk_gate_ctrl
	.no_dead_strip	_demod_attach_cxd28xx
.subsections_via_symbols
