	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pctv452e_frontend_attach
_pctv452e_frontend_attach:              ## @pctv452e_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_stb0899_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	addq	$8, %rdx
	movq	_stb0899_config@GOTPCREL(%rip), %rsi
	callq	_dvb_attach
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_lnbp22_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r14), %rdx
	addq	$8, %rdx
	movq	%rax, %rsi
	callq	_dvb_attach
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_4:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_USB_VID_TECHNOTREND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.5:
	movq	_USB_PID_TECHNOTREND_CONNECT_S2_3650_CI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	8(%rax), %rcx
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_tt3650_ci_init
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stb0899_attach,4,2             ## @stb0899_attach
	.comm	_stb0899_config,4,2             ## @stb0899_config
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_lnbp22_attach,4,2              ## @lnbp22_attach
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot attach lnbp22\n"

	.comm	_USB_VID_TECHNOTREND,8,3        ## @USB_VID_TECHNOTREND
	.comm	_USB_PID_TECHNOTREND_CONNECT_S2_3650_CI,8,3 ## @USB_PID_TECHNOTREND_CONNECT_S2_3650_CI
	.no_dead_strip	_pctv452e_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pctv452e_frontend_attach
_pctv452e_frontend_attach:              ; @pctv452e_frontend_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
Lloh0:
	adrp	x8, _stb0899_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stb0899_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	add	x2, x8, #8
Lloh3:
	adrp	x1, _stb0899_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _stb0899_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19, #8]
	str	x0, [x8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x1, x0
Lloh5:
	adrp	x8, _lnbp22_attach@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lnbp22_attach@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19]
	add	x2, x8, #8
	bl	_dvb_attach
	cbnz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _USB_VID_TECHNOTREND@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USB_VID_TECHNOTREND@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
Lloh13:
	adrp	x9, _USB_PID_TECHNOTREND_CONNECT_S2_3650_CI@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_PID_TECHNOTREND_CONNECT_S2_3650_CI@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_tt3650_ci_init
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_stb0899_attach,4,2             ; @stb0899_attach
	.comm	_stb0899_config,4,2             ; @stb0899_config
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_lnbp22_attach,4,2              ; @lnbp22_attach
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot attach lnbp22\n"

	.comm	_USB_VID_TECHNOTREND,8,3        ; @USB_VID_TECHNOTREND
	.comm	_USB_PID_TECHNOTREND_CONNECT_S2_3650_CI,8,3 ; @USB_PID_TECHNOTREND_CONNECT_S2_3650_CI
	.no_dead_strip	_pctv452e_frontend_attach
.subsections_via_symbols
