	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx8802_check_driver
_cx8802_check_driver:                   ## @cx8802_check_driver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %rax
	movq	_CX88_MPEG_DVB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_CX88_MPEG_BLACKBIRD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_4:
	movq	8(%rdi), %rax
	movq	_CX8802_DRVCTL_SHARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_CX8802_DRVCTL_EXCLUSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_6:
	cmpl	$0, 28(%rdi)
	je	LBB0_10
## %bb.7:
	cmpl	$0, 24(%rdi)
	je	LBB0_10
## %bb.8:
	cmpl	$0, 20(%rdi)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	cmpl	$0, 16(%rdi)
	jne	LBB0_12
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CX88_MPEG_DVB,8,3              ## @CX88_MPEG_DVB
	.comm	_CX88_MPEG_BLACKBIRD,8,3        ## @CX88_MPEG_BLACKBIRD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CX8802_DRVCTL_SHARED,8,3       ## @CX8802_DRVCTL_SHARED
	.comm	_CX8802_DRVCTL_EXCLUSIVE,8,3    ## @CX8802_DRVCTL_EXCLUSIVE
	.no_dead_strip	_cx8802_check_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx8802_check_driver
_cx8802_check_driver:                   ; @cx8802_check_driver
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CX88_MPEG_DVB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CX88_MPEG_DVB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CX88_MPEG_BLACKBIRD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CX88_MPEG_BLACKBIRD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _CX8802_DRVCTL_SHARED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CX8802_DRVCTL_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _CX8802_DRVCTL_EXCLUSIVE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CX8802_DRVCTL_EXCLUSIVE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_8
; %bb.5:
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_8
; %bb.7:
	mov	w0, #0
	ret
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CX88_MPEG_DVB,8,3              ; @CX88_MPEG_DVB
	.comm	_CX88_MPEG_BLACKBIRD,8,3        ; @CX88_MPEG_BLACKBIRD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CX8802_DRVCTL_SHARED,8,3       ; @CX8802_DRVCTL_SHARED
	.comm	_CX8802_DRVCTL_EXCLUSIVE,8,3    ; @CX8802_DRVCTL_EXCLUSIVE
	.no_dead_strip	_cx8802_check_driver
.subsections_via_symbols
