	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az6007_cablestar_hdci_frontend_attach
_az6007_cablestar_hdci_frontend_attach: ## @az6007_cablestar_hdci_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_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_adap_to_d
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_drxk_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cablestar_hdci_drxk@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rbx, 8(%rcx)
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_drxk_gate_ctrl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_az6007_ci_init
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attaching demod drxk\n"

	.comm	_drxk_attach,4,2                ## @drxk_attach
	.comm	_cablestar_hdci_drxk,4,2        ## @cablestar_hdci_drxk
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_drxk_gate_ctrl,4,2             ## @drxk_gate_ctrl
	.no_dead_strip	_az6007_cablestar_hdci_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function az6007_cablestar_hdci_frontend_attach
_az6007_cablestar_hdci_frontend_attach: ; @az6007_cablestar_hdci_frontend_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_adap_to_priv
	mov	x20, x0
	mov	x0, x19
	bl	_adap_to_d
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _drxk_attach@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drxk_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, _cablestar_hdci_drxk@GOTPAGE
Lloh6:
	ldr	x1, [x1, _cablestar_hdci_drxk@GOTPAGEOFF]
	mov	x2, x21
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	str	x19, [x9, #8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	str	w9, [x20]
Lloh7:
	adrp	x9, _drxk_gate_ctrl@GOTPAGE
Lloh8:
	ldr	x9, [x9, _drxk_gate_ctrl@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x8]
	mov	x0, x19
	bl	_az6007_ci_init
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	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
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attaching demod drxk\n"

	.comm	_drxk_attach,4,2                ; @drxk_attach
	.comm	_cablestar_hdci_drxk,4,2        ; @cablestar_hdci_drxk
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_drxk_gate_ctrl,4,2             ; @drxk_gate_ctrl
	.no_dead_strip	_az6007_cablestar_hdci_frontend_attach
.subsections_via_symbols
