	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_determine_revision     ## -- Begin function flexcop_determine_revision
	.p2align	4, 0x90
_flexcop_determine_revision:            ## @flexcop_determine_revision
	.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	_misc_204@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*8(%rdi)
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$3, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$2, %ebx
	jne	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	movq	_FLEXCOP_II@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_deb_info
	movq	_FLEXCOP_III@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_info
	movq	_FLEXCOP_IIB@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_err
LBB0_8:
	shrq	$32, %rbx
	movl	%ebx, (%r14)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_deb_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_misc_204,4,2                   ## @misc_204
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found a FlexCopII.\n"

	.comm	_FLEXCOP_II,4,2                 ## @FLEXCOP_II
L_.str.1:                               ## @.str.1
	.asciz	"found a FlexCopIIb.\n"

	.comm	_FLEXCOP_IIB,4,2                ## @FLEXCOP_IIB
L_.str.2:                               ## @.str.2
	.asciz	"found a FlexCopIII.\n"

	.comm	_FLEXCOP_III,4,2                ## @FLEXCOP_III
L_.str.3:                               ## @.str.3
	.asciz	"unknown FlexCop Revision: %x. Please report this to linux-dvb@linuxtv.org."

L_.str.4:                               ## @.str.4
	.asciz	"this FlexCop has the additional 32 hardware pid filter.\n"

L_.str.5:                               ## @.str.5
	.asciz	"this FlexCop has the 6 basic main hardware pid filter.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_determine_revision     ; -- Begin function flexcop_determine_revision
	.p2align	2
_flexcop_determine_revision:            ; @flexcop_determine_revision
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _misc_204@GOTPAGE
Lloh1:
	ldr	x9, [x9, _misc_204@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	mov	x20, x0
	cbz	w20, LBB0_4
; %bb.1:
	cmp	w20, #3
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #2
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
Lloh5:
	adrp	x8, _FLEXCOP_II@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLEXCOP_II@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
Lloh9:
	adrp	x8, _FLEXCOP_III@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLEXCOP_III@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
Lloh13:
	adrp	x8, _FLEXCOP_IIB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FLEXCOP_IIB@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_err
LBB0_8:
	lsr	x8, x20, #32
Lloh17:
	adrp	x9, l_.str.4@PAGE
Lloh18:
	add	x9, x9, l_.str.4@PAGEOFF
	str	w8, [x19]
Lloh19:
	adrp	x10, l_.str.5@PAGE
Lloh20:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #0
	csel	x0, x10, x9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_deb_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_misc_204,4,2                   ; @misc_204
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found a FlexCopII.\n"

	.comm	_FLEXCOP_II,4,2                 ; @FLEXCOP_II
l_.str.1:                               ; @.str.1
	.asciz	"found a FlexCopIIb.\n"

	.comm	_FLEXCOP_IIB,4,2                ; @FLEXCOP_IIB
l_.str.2:                               ; @.str.2
	.asciz	"found a FlexCopIII.\n"

	.comm	_FLEXCOP_III,4,2                ; @FLEXCOP_III
l_.str.3:                               ; @.str.3
	.asciz	"unknown FlexCop Revision: %x. Please report this to linux-dvb@linuxtv.org."

l_.str.4:                               ; @.str.4
	.asciz	"this FlexCop has the additional 32 hardware pid filter.\n"

l_.str.5:                               ; @.str.5
	.asciz	"this FlexCop has the 6 basic main hardware pid filter.\n"

.subsections_via_symbols
