	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt848A_set_timing
_bt848A_set_timing:                     ## @bt848A_set_timing
	.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, %r13
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	cmpq	16(%rdi), %rdx
	jne	LBB0_6
## %bb.1:
	movl	(%rax,%rcx,8), %r14d
	movl	28(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_dprintk
	movq	_BT848_TGCTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_btwrite
	movl	(%rbx), %esi
	movl	$2, %edi
	callq	_btwrite
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_btwrite
	movq	_SRAM_Table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %r14
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.2:
	incq	%rbx
	movl	4(%rax), %edi
	movq	_BT848_TGLB@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_btwrite
	cmpl	$2, %ebx
	je	LBB0_5
## %bb.3:
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SRAM_Table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r12,4), %edi
	movl	(%r15), %esi
	callq	_btwrite
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_4
LBB0_5:
	movl	$27000000, 24(%r13)             ## imm = 0x19BFCC0
	movq	%r13, %rdi
	callq	_set_pll
	movq	_BT848_TGCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$17, %edi
	callq	_btwrite
	movl	$65, %edi
	jmp	LBB0_7
LBB0_6:
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, 24(%r13)
	movq	%r13, %rdi
	callq	_set_pll
	xorl	%edi, %edi
LBB0_7:
	movq	_BT848_DVSIF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_btwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bttv_tvnorms,8,3               ## @bttv_tvnorms
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: load digital timing table (table_idx=%d)\n"

	.comm	_BT848_TGCTRL,4,2               ## @BT848_TGCTRL
	.comm	_SRAM_Table,8,3                 ## @SRAM_Table
	.comm	_BT848_TGLB,4,2                 ## @BT848_TGLB
	.comm	_BT848_DVSIF,4,2                ## @BT848_DVSIF
	.no_dead_strip	_bt848A_set_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt848A_set_timing
_bt848A_set_timing:                     ; @bt848A_set_timing
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _bttv_tvnorms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bttv_tvnorms@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x0]
	ldr	x11, [x0, #16]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.1:
	lsl	x9, x9, #3
	ldr	w20, [x8, x9]
	ldr	w1, [x19, #28]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dprintk
Lloh5:
	adrp	x21, _BT848_TGCTRL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _BT848_TGCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_btwrite
	ldr	w1, [x21]
	mov	w0, #2
	bl	_btwrite
	ldr	w1, [x21]
	mov	w0, #0
	bl	_btwrite
Lloh7:
	adrp	x22, _SRAM_Table@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SRAM_Table@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, w20, sxtw #3]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	add	x23, x9, #1
	ldr	w0, [x8, #4]
Lloh9:
	adrp	x24, _BT848_TGLB@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BT848_TGLB@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_btwrite
	cmp	w23, #2
	b.eq	LBB0_5
; %bb.3:
	sxtw	x20, w20
	mov	w25, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8, x25, lsl #2]
	ldr	w1, [x24]
	bl	_btwrite
	add	x25, x25, #1
	cmp	x23, x25
	b.ne	LBB0_4
LBB0_5:
	mov	w8, #64704
	movk	w8, #411, lsl #16
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_set_pll
	ldr	w1, [x21]
	mov	w0, #17
	bl	_btwrite
	mov	w0, #65
	b	LBB0_7
LBB0_6:
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_set_pll
	mov	w0, #0
LBB0_7:
Lloh11:
	adrp	x8, _BT848_DVSIF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BT848_DVSIF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_btwrite
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_bttv_tvnorms,8,3               ; @bttv_tvnorms
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: load digital timing table (table_idx=%d)\n"

	.comm	_BT848_TGCTRL,4,2               ; @BT848_TGCTRL
	.comm	_SRAM_Table,8,3                 ; @SRAM_Table
	.comm	_BT848_TGLB,4,2                 ; @BT848_TGLB
	.comm	_BT848_DVSIF,4,2                ; @BT848_DVSIF
	.no_dead_strip	_bt848A_set_timing
.subsections_via_symbols
