	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_cx22702_frontend_attach
_cxusb_cx22702_frontend_attach:         ## @cxusb_cx22702_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_cxusb_table@GOTPCREL(%rip), %rax
	movq	_MEDION_MD95700@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	shlq	$2, %rbx
	addq	(%rax), %rbx
	cmpq	%rbx, %r15
	je	LBB0_1
LBB0_2:
	movq	_cx22702_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cxusb_cx22702_config@GOTPCREL(%rip), %rsi
	movq	%r12, %rdx
	callq	_dvb_attach
	movq	%rax, %rcx
	movq	(%r14), %rax
	movq	%rcx, (%rax)
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	cmpq	%rbx, %r15
	jne	LBB0_6
## %bb.5:
	movq	_cxusb_medion_fe_ts_bus_ctrl@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	jmp	LBB0_6
LBB0_1:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_cxusb_medion_set_mode
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_2
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cxusb_table,8,3                ## @cxusb_table
	.comm	_MEDION_MD95700,8,3             ## @MEDION_MD95700
	.comm	_cx22702_attach,4,2             ## @cx22702_attach
	.comm	_cxusb_cx22702_config,4,2       ## @cxusb_cx22702_config
	.comm	_EIO,4,2                        ## @EIO
	.comm	_cxusb_medion_fe_ts_bus_ctrl,4,2 ## @cxusb_medion_fe_ts_bus_ctrl
	.no_dead_strip	_cxusb_cx22702_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_cx22702_frontend_attach
_cxusb_cx22702_frontend_attach:         ; @cxusb_cx22702_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
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _cxusb_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cxusb_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MEDION_MD95700@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEDION_MD95700@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x22, x8, x9, lsl #2
	cmp	x21, x22
	b.eq	LBB0_4
LBB0_1:
Lloh6:
	adrp	x8, _cx22702_attach@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cx22702_attach@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, _cxusb_cx22702_config@GOTPAGE
Lloh10:
	ldr	x1, [x1, _cxusb_cx22702_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	ldr	x9, [x19]
	str	x0, [x9]
	cbz	x0, LBB0_5
; %bb.2:
	cmp	x21, x22
	b.eq	LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	mov	w1, #1
	bl	_cxusb_medion_set_mode
	cbnz	w0, LBB0_7
	b	LBB0_1
LBB0_5:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	x8, x0
	mov	w0, #0
Lloh14:
	adrp	x9, _cxusb_medion_fe_ts_bus_ctrl@GOTPAGE
Lloh15:
	ldr	x9, [x9, _cxusb_medion_fe_ts_bus_ctrl@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cxusb_table,8,3                ; @cxusb_table
	.comm	_MEDION_MD95700,8,3             ; @MEDION_MD95700
	.comm	_cx22702_attach,4,2             ; @cx22702_attach
	.comm	_cxusb_cx22702_config,4,2       ; @cxusb_cx22702_config
	.comm	_EIO,4,2                        ; @EIO
	.comm	_cxusb_medion_fe_ts_bus_ctrl,4,2 ; @cxusb_medion_fe_ts_bus_ctrl
	.no_dead_strip	_cxusb_cx22702_frontend_attach
.subsections_via_symbols
