	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_idcard                    ## -- Begin function bttv_idcard
	.p2align	4, 0x90
_bttv_idcard:                           ## @bttv_idcard
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movl	(%rax), %r9d
	movl	4(%rax), %eax
	shll	$16, %r9d
	orl	%eax, %r9d
	movl	%r9d, (%rdi)
	leal	1(%r9), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.1:
	movq	_cards@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.2:
	leaq	24(%rcx), %rdi
	movl	$-1, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r9d, %esi
	cmovel	%ebx, %edx
	movl	(%rdi), %esi
	incl	%ebx
	addq	$24, %rdi
	testl	%esi, %esi
	jne	LBB0_3
## %bb.4:
	cmpl	$-1, %edx
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rsi
	movslq	%edx, %rdx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rbx
	movl	16(%rcx,%rbx), %edx
	movq	8(%rcx,%rbx), %rcx
	movzwl	%ax, %r8d
	shrl	$16, %r9d
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_pr_info
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_7
LBB0_6:
	movq	8(%r14), %rsi
	movzwl	%ax, %edx
	shrl	$16, %r9d
	leaq	L_.str.1(%rip), %rdi
	movl	%r9d, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
LBB0_7:
	movq	_card@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	8(%r14), %rsi
	movq	(%rdx,%rsi,8), %rcx
	movq	_bttv_num_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_9
## %bb.8:
	movq	%rcx, 16(%r14)
	movq	(%rdx,%rsi,8), %rdi
	jmp	LBB0_10
LBB0_9:
	movq	%rcx, %rdi
	movq	16(%r14), %rcx
LBB0_10:
	movq	_bttv_tvcards@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, %rbx
	shlq	$4, %rbx
	movl	12(%rdx,%rbx), %edx
	cmpq	%rax, %rdi
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %r8
	cmovlq	%rax, %r8
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_audioall@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	_audiomux@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	cmpl	%r15d, %ebx
	jne	LBB0_13
## %bb.11:
	cmpl	%r13d, %ebx
	jne	LBB0_13
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r13d, %ebx
	jne	LBB0_17
## %bb.14:
	testl	%eax, %eax
	jle	LBB0_22
## %bb.15:
	xorl	%ebx, %ebx
	movq	_bttv_tvcards@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	movq	(%r13), %rcx
	movq	16(%r14), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rdx
	movl	%eax, (%rdx,%rbx,4)
	incq	%rbx
	movq	(%rcx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_16
	jmp	LBB0_23
LBB0_17:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.18:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	_bttv_tvcards@GOTPCREL(%rip), %r13
	movq	_audiomux@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	(%r13), %rdx
	movq	16(%r14), %rsi
	shlq	$4, %rsi
	movq	(%rdx,%rsi), %rsi
	movl	%ecx, (%rsi,%rbx,4)
	orl	(%rax,%rbx,4), %r15d
	incq	%rbx
	movq	(%rdx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_19
	jmp	LBB0_23
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	movq	_bttv_tvcards@GOTPCREL(%rip), %r13
LBB0_23:
	movq	_gpiomask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UNSET@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	cmovnel	%eax, %r15d
	movq	(%r13), %rax
	movq	16(%r14), %rcx
	shlq	$4, %rcx
	movl	%r15d, 8(%rax,%rcx)
	movq	8(%r14), %rsi
	leaq	L_.str.6(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_info
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_26
## %bb.24:
	leaq	L_.str.8(%rip), %r12
	leaq	L_.str.7(%rip), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	movq	%r12, %rsi
	leaq	L_.str.9(%rip), %rax
	cmoveq	%rax, %rsi
	movq	(%r13), %rax
	movq	16(%r14), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movl	(%rax,%r15,4), %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	incq	%r15
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jl	LBB0_25
LBB0_26:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_cont                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cards,8,3                      ## @cards
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: detected: %s [card=%d], PCI subsystem ID is %04x:%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d: subsystem: %04x:%04x (UNKNOWN)\n"

L_.str.2:                               ## @.str.2
	.asciz	"please mail id, board name and the correct card= insmod option to linux-media@vger.kernel.org\n"

	.comm	_card,8,3                       ## @card
	.comm	_bttv_num_tvcards,8,3           ## @bttv_num_tvcards
L_.str.3:                               ## @.str.3
	.asciz	"%d: using: %s [card=%d,%s]\n"

	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
L_.str.4:                               ## @.str.4
	.asciz	"insmod option"

L_.str.5:                               ## @.str.5
	.asciz	"autodetected"

	.comm	_UNSET,4,2                      ## @UNSET
	.comm	_audioall,4,2                   ## @audioall
	.comm	_audiomux,8,3                   ## @audiomux
	.comm	_gpiomask,4,2                   ## @gpiomask
L_.str.6:                               ## @.str.6
	.asciz	"%d: gpio config override: mask=0x%x, mux="

L_.str.7:                               ## @.str.7
	.asciz	"%s0x%x"

L_.str.8:                               ## @.str.8
	.asciz	","

L_.str.9:                               ## @.str.9
	.space	1

L_.str.10:                              ## @.str.10
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_idcard                    ; -- Begin function bttv_idcard
	.p2align	2
_bttv_idcard:                           ; @bttv_idcard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldp	w10, w9, [x8]
	orr	w8, w9, w10, lsl #16
	str	w8, [x0]
	add	w10, w8, #1
	cmp	w10, #2
	b.lo	LBB0_7
; %bb.1:
Lloh0:
	adrp	x20, _cards@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cards@GOTPAGEOFF]
	ldr	x10, [x20]
	ldr	w12, [x10]
	cbz	w12, LBB0_6
; %bb.2:
	mov	w11, #0
	add	x13, x10, #24
	mov	w21, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, w8
	csel	w21, w11, w21, eq
	ldr	w12, [x13], #24
	add	w11, w11, #1
	cbnz	w12, LBB0_3
; %bb.4:
	cmn	w21, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	x1, [x19, #8]
	mov	w22, #24
	smaddl	x10, w21, w22, x10
	ldr	w2, [x10, #16]
	ldr	x10, [x10, #8]
	and	w9, w9, #0xffff
	lsr	w8, w8, #16
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	x8, [x20]
	smaddl	x8, w21, w22, x8
	ldr	x8, [x8, #8]
	str	x8, [x19, #16]
	b	LBB0_7
LBB0_6:
	ldr	x1, [x19, #8]
	and	w2, w9, #0xffff
	lsr	w8, w8, #16
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_7:
Lloh8:
	adrp	x8, _card@GOTPAGE
Lloh9:
	ldr	x8, [x8, _card@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
	ldr	x1, [x19, #8]
	ldr	x8, [x10, x1, lsl #3]
Lloh11:
	adrp	x9, _bttv_num_tvcards@GOTPAGE
Lloh12:
	ldr	x9, [x9, _bttv_num_tvcards@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.8:
	str	x8, [x19, #16]
	ldr	x10, [x10, x1, lsl #3]
	b	LBB0_10
LBB0_9:
	mov	x10, x8
	ldr	x8, [x19, #16]
LBB0_10:
Lloh14:
	adrp	x21, _bttv_tvcards@GOTPAGE
Lloh15:
	ldr	x21, [x21, _bttv_tvcards@GOTPAGEOFF]
	ldr	x11, [x21]
	add	x11, x11, x8, lsl #4
	ldr	w2, [x11, #12]
Lloh16:
	adrp	x11, l_.str.5@PAGE
Lloh17:
	add	x11, x11, l_.str.5@PAGEOFF
Lloh18:
	adrp	x12, l_.str.4@PAGE
Lloh19:
	add	x12, x12, l_.str.4@PAGEOFF
	cmp	x10, x9
	csel	x9, x12, x11, lt
	stp	x8, x9, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
Lloh22:
	adrp	x20, _UNSET@GOTPAGE
Lloh23:
	ldr	x20, [x20, _UNSET@GOTPAGEOFF]
	ldr	w25, [x20]
Lloh24:
	adrp	x24, _audioall@GOTPAGE
Lloh25:
	ldr	x24, [x24, _audioall@GOTPAGEOFF]
	ldr	w22, [x24]
Lloh26:
	adrp	x23, _audiomux@GOTPAGE
Lloh27:
	ldr	x23, [x23, _audiomux@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w26, [x8]
	cmp	w25, w22
	b.ne	LBB0_13
; %bb.11:
	cmp	w25, w26
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w25, w26
	b.ne	LBB0_17
; %bb.14:
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.15:
	mov	x23, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	x9, [x21]
	ldr	x10, [x19, #16]
	lsl	x10, x10, #4
	ldr	x10, [x9, x10]
	str	w8, [x10, x23, lsl #2]
	add	x23, x23, #1
	ldr	x0, [x9]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_16
	b	LBB0_21
LBB0_17:
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.18:
	mov	x24, #0
	mov	w22, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	lsl	x9, x24, #2
	ldr	w10, [x8, x9]
	ldr	x11, [x21]
	ldr	x12, [x19, #16]
	lsl	x12, x12, #4
	ldr	x12, [x11, x12]
	str	w10, [x12, x9]
	ldr	w8, [x8, x9]
	orr	w22, w8, w22
	add	x24, x24, #1
	ldr	x0, [x11]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_19
	b	LBB0_21
LBB0_20:
	mov	w22, #0
LBB0_21:
	ldr	w8, [x20]
Lloh28:
	adrp	x9, _gpiomask@GOTPAGE
Lloh29:
	ldr	x9, [x9, _gpiomask@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w2, w22, w9, eq
	ldr	x8, [x21]
	ldp	x1, x9, [x19, #8]
	add	x8, x8, x9, lsl #4
	str	w2, [x8, #8]
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_info
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x22, #0
Lloh33:
	adrp	x23, l_.str.8@PAGE
Lloh34:
	add	x23, x23, l_.str.8@PAGEOFF
Lloh35:
	adrp	x24, l_.str.9@PAGE
Lloh36:
	add	x24, x24, l_.str.9@PAGEOFF
Lloh37:
	adrp	x20, l_.str.7@PAGE
Lloh38:
	add	x20, x20, l_.str.7@PAGEOFF
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, #0
	csel	x8, x24, x23, eq
	ldr	x9, [x21]
	ldr	x10, [x19, #16]
	lsl	x10, x10, #4
	ldr	x9, [x9, x10]
	ldr	w9, [x9, x22, lsl #2]
	stp	x8, x9, [sp]
	mov	x0, x20
	bl	_pr_cont
	add	x22, x22, #1
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_23
LBB0_24:
Lloh39:
	adrp	x0, l_.str.10@PAGE
Lloh40:
	add	x0, x0, l_.str.10@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_pr_cont
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_cards,8,3                      ; @cards
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: detected: %s [card=%d], PCI subsystem ID is %04x:%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d: subsystem: %04x:%04x (UNKNOWN)\n"

l_.str.2:                               ; @.str.2
	.asciz	"please mail id, board name and the correct card= insmod option to linux-media@vger.kernel.org\n"

	.comm	_card,8,3                       ; @card
	.comm	_bttv_num_tvcards,8,3           ; @bttv_num_tvcards
l_.str.3:                               ; @.str.3
	.asciz	"%d: using: %s [card=%d,%s]\n"

	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
l_.str.4:                               ; @.str.4
	.asciz	"insmod option"

l_.str.5:                               ; @.str.5
	.asciz	"autodetected"

	.comm	_UNSET,4,2                      ; @UNSET
	.comm	_audioall,4,2                   ; @audioall
	.comm	_audiomux,8,3                   ; @audiomux
	.comm	_gpiomask,4,2                   ; @gpiomask
l_.str.6:                               ; @.str.6
	.asciz	"%d: gpio config override: mask=0x%x, mux="

l_.str.7:                               ; @.str.7
	.asciz	"%s0x%x"

l_.str.8:                               ; @.str.8
	.asciz	","

l_.str.9:                               ; @.str.9
	.space	1

l_.str.10:                              ; @.str.10
	.asciz	"\n"

.subsections_via_symbols
