	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttpci_budget_init              ## -- Begin function ttpci_budget_init
	.p2align	4, 0x90
_ttpci_budget_init:                     ## @ttpci_budget_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdx), %r15
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, 48(%rbx)
	movq	%r14, 72(%rbx)
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_1
## %bb.2:
	movslq	%eax, %rcx
	leaq	l_switch.table.ttpci_budget_init(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	l_switch.table.ttpci_budget_init.5(%rip), %rdx
	movq	(%rdx,%rcx,8), %rdx
	leaq	l_switch.table.ttpci_budget_init.6(%rip), %rsi
	movq	(%rsi,%rcx,8), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_TS_HEIGHT_MASK@GOTPCREL(%rip), %rcx
	movq	_TS_MAX_BUFSIZE_K@GOTPCREL(%rip), %rdx
	movq	_TS_WIDTH@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%rcx), %ecx
	movq	_dma_buffer_size@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	movq	_TS_MIN_BUFSIZE_K@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %eax
	jl	LBB0_5
## %bb.4:
	movl	(%rdx), %edi
	cmpl	%edi, %eax
	jle	LBB0_6
LBB0_5:
	movl	%edi, (%rsi)
	movl	%edi, %eax
LBB0_6:
	shll	$10, %eax
	movl	(%rbx), %r8d
	cltd
	idivl	%r8d
	cmpl	$4096, %eax                     ## imm = 0x1000
	jl	LBB0_8
## %bb.7:
	shrl	%eax
	andl	%ecx, %eax
	movl	%eax, 4(%rbx)
	movl	%eax, %ecx
	imull	%r8d, %ecx
	leal	(%rcx,%rcx), %esi
	jmp	LBB0_9
LBB0_8:
	andl	%ecx, %eax
	movl	%eax, 4(%rbx)
	movl	%eax, %ecx
	imull	%r8d, %ecx
	movl	%ecx, %esi
LBB0_9:
	movl	%esi, 8(%rbx)
	movl	%esi, %edx
	shll	$4, %edx
	leal	(%rdx,%rdx,4), %edx
	movslq	%edx, %rdx
	imulq	$1374389535, %rdx, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$37, %rdx
	addl	%edi, %edx
	movl	%edx, 12(%rbx)
	movq	$0, 88(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 80(%rbx)
	movslq	8(%r14), %rdx
	cmpl	%ecx, %esi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	cmovgq	%rsi, %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	movq	72(%rbx), %rax
	movl	8(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	callq	_printk
	leaq	16(%rbx), %rdi
	movq	48(%rbx), %rax
	movq	72(%rbx), %rcx
	movl	4(%rax), %esi
	movq	(%rcx), %rcx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r12, %r8
	callq	_dvb_register_adapter
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	_DD1_STREAM_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_saa7146_write
	movq	_MC2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MASK_09@GOTPCREL(%rip), %rax
	movq	_MASK_25@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_saa7146_write
	movl	(%r13), %esi
	movq	_MASK_10@GOTPCREL(%rip), %r12
	movq	_MASK_26@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	callq	_saa7146_write
	movq	_DD1_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$33554432, %edx                 ## imm = 0x2000000
	callq	_saa7146_write
	movl	(%r13), %esi
	movq	_MASK_25@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MASK_09@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r12), %edx
	movq	_MASK_26@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_saa7146_write
	cmpl	$133, (%r15)
	jne	LBB0_12
## %bb.13:
	movq	_BUDGET_VIDEO_PORTA@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movl	%eax, %r13d
	jmp	LBB0_26
LBB0_12:
	movq	_BUDGET_VIDEO_PORTB@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	leaq	60(%rbx), %rdi
	callq	_spin_lock_init
	leaq	56(%rbx), %rdi
	callq	_spin_lock_init
	cmpl	$133, (%r15)
	je	LBB0_16
## %bb.15:
	movq	_GPIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$5242880, %edx                  ## imm = 0x500000
	callq	_saa7146_write
LBB0_16:
	leaq	20(%rbx), %r12
	movl	20(%rbx), %edi
	movq	48(%rbx), %rax
	movl	4(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_SAA7146_I2C_BUS_BIT_RATE_120@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_saa7146_i2c_adapter_prepare
	movl	20(%rbx), %edi
	movq	48(%rbx), %rax
	movl	4(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	testq	%rax, %rax
	js	LBB0_17
## %bb.18:
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	callq	_ttpci_eeprom_parse_mac
	movq	(%r14), %rdi
	movl	8(%rbx), %esi
	leaq	24(%rbx), %r13
	movq	%r13, %rdx
	callq	_saa7146_vmalloc_build_pgtable
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_PCI_BT_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1835008, %edx                  ## imm = 0x1C0000
	callq	_saa7146_write
	movq	_GPIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_saa7146_write
	leaq	40(%rbx), %rdi
	movq	_vpeirq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	cmpl	$133, (%r15)
	je	LBB0_22
## %bb.21:
	movq	_SAA7146_GPIO_OUTHI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_saa7146_setgpio
LBB0_22:
	movq	%rbx, %rdi
	callq	_budget_register
	testl	%eax, %eax
	je	LBB0_26
## %bb.23:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movq	32(%rbx), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_saa7146_vfree_destroy_pgtable
	movl	%r15d, %r13d
	jmp	LBB0_24
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_24:
	movq	%r12, %rdi
	callq	_i2c_del_adapter
LBB0_25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_unregister_adapter
LBB0_26:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev: %p, budget: %p\n"

	.comm	_TS_WIDTH_ACTIVY,4,2            ## @TS_WIDTH_ACTIVY
	.comm	_TS_MAX_BUFSIZE_K_ACTIVY,4,2    ## @TS_MAX_BUFSIZE_K_ACTIVY
	.comm	_TS_HEIGHT_MASK_ACTIVY,4,2      ## @TS_HEIGHT_MASK_ACTIVY
	.comm	_TS_WIDTH_DVBC,4,2              ## @TS_WIDTH_DVBC
	.comm	_TS_MAX_BUFSIZE_K_DVBC,4,2      ## @TS_MAX_BUFSIZE_K_DVBC
	.comm	_TS_HEIGHT_MASK_DVBC,4,2        ## @TS_HEIGHT_MASK_DVBC
	.comm	_TS_WIDTH,4,2                   ## @TS_WIDTH
	.comm	_TS_MAX_BUFSIZE_K,4,2           ## @TS_MAX_BUFSIZE_K
	.comm	_TS_HEIGHT_MASK,4,2             ## @TS_HEIGHT_MASK
	.comm	_dma_buffer_size,4,2            ## @dma_buffer_size
	.comm	_TS_MIN_BUFSIZE_K,4,2           ## @TS_MIN_BUFSIZE_K
	.comm	_jiffies,4,2                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"%s: buffer type = %s, width = %d, height = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"odd/even"

L_.str.3:                               ## @.str.3
	.asciz	"single"

L_.str.4:                               ## @.str.4
	.asciz	"%s: dma buffer size %u\n"

	.comm	_DD1_STREAM_B,4,2               ## @DD1_STREAM_B
	.comm	_MC2,4,2                        ## @MC2
	.comm	_MASK_09,4,2                    ## @MASK_09
	.comm	_MASK_25,4,2                    ## @MASK_25
	.comm	_MASK_10,4,2                    ## @MASK_10
	.comm	_MASK_26,4,2                    ## @MASK_26
	.comm	_DD1_INIT,4,2                   ## @DD1_INIT
	.comm	_BUDGET_VIDEO_PORTB,4,2         ## @BUDGET_VIDEO_PORTB
	.comm	_BUDGET_VIDEO_PORTA,4,2         ## @BUDGET_VIDEO_PORTA
	.comm	_GPIO_CTRL,4,2                  ## @GPIO_CTRL
	.comm	_SAA7146_I2C_BUS_BIT_RATE_120,4,2 ## @SAA7146_I2C_BUS_BIT_RATE_120
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_BT_V1,4,2                  ## @PCI_BT_V1
	.comm	_vpeirq,4,2                     ## @vpeirq
	.comm	_SAA7146_GPIO_OUTHI,4,2         ## @SAA7146_GPIO_OUTHI
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ttpci_budget_init
l_switch.table.ttpci_budget_init:
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_ACTIVY
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC

	.p2align	3                               ## @switch.table.ttpci_budget_init.5
l_switch.table.ttpci_budget_init.5:
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_ACTIVY
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC

	.p2align	3                               ## @switch.table.ttpci_budget_init.6
l_switch.table.ttpci_budget_init.6:
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_ACTIVY
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttpci_budget_init              ; -- Begin function ttpci_budget_init
	.p2align	2
_ttpci_budget_init:                     ; @ttpci_budget_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x23, x3
	mov	x20, x1
	mov	x19, x0
	ldr	x25, [x2]
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	str	x19, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_dprintk
	str	x25, [x19, #48]
	str	x20, [x19, #72]
	ldr	w8, [x25]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x9, x8, #3, #32
Lloh2:
	adrp	x8, l_switch.table.ttpci_budget_init@PAGE
Lloh3:
	add	x8, x8, l_switch.table.ttpci_budget_init@PAGEOFF
	ldr	x10, [x8, x9]
Lloh4:
	adrp	x8, l_switch.table.ttpci_budget_init.5@PAGE
Lloh5:
	add	x8, x8, l_switch.table.ttpci_budget_init.5@PAGEOFF
	ldr	x8, [x8, x9]
Lloh6:
	adrp	x11, l_switch.table.ttpci_budget_init.6@PAGE
Lloh7:
	add	x11, x11, l_switch.table.ttpci_budget_init.6@PAGEOFF
	ldr	x9, [x11, x9]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x9, _TS_HEIGHT_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TS_HEIGHT_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x8, _TS_MAX_BUFSIZE_K@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TS_MAX_BUFSIZE_K@GOTPAGEOFF]
Lloh12:
	adrp	x10, _TS_WIDTH@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TS_WIDTH@GOTPAGEOFF]
LBB0_3:
	ldr	w10, [x10]
	str	w10, [x19]
Lloh14:
	adrp	x10, _dma_buffer_size@GOTPAGE
Lloh15:
	ldr	x10, [x10, _dma_buffer_size@GOTPAGEOFF]
	ldr	w9, [x9]
	ldr	w11, [x10]
Lloh16:
	adrp	x12, _TS_MIN_BUFSIZE_K@GOTPAGE
Lloh17:
	ldr	x12, [x12, _TS_MIN_BUFSIZE_K@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x12]
	cmp	w11, w12
	b.lt	LBB0_5
; %bb.4:
	ldr	w12, [x8]
	cmp	w11, w12
	b.le	LBB0_6
LBB0_5:
	str	w12, [x10]
	mov	x11, x12
LBB0_6:
	lsl	w10, w11, #10
	ldr	w8, [x19]
	sdiv	w10, w10, w8
	cmp	w10, #1, lsl #12                ; =4096
	b.lt	LBB0_8
; %bb.7:
	and	w9, w9, w10, lsr #1
	str	w9, [x19, #4]
	mul	w10, w9, w8
	lsl	w11, w10, #1
	b	LBB0_9
LBB0_8:
	and	w9, w10, w9
	str	w9, [x19, #4]
	mul	w10, w9, w8
	mov	x11, x10
LBB0_9:
	add	w12, w11, w11, lsl #2
	lsl	w12, w12, #4
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	smull	x12, w12, w13
	lsr	x13, x12, #63
	asr	x12, x12, #37
	add	w12, w12, w13
	stp	w11, w12, [x19, #8]
	str	xzr, [x19, #88]
Lloh19:
	adrp	x12, _jiffies@GOTPAGE
Lloh20:
	ldr	x12, [x12, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	str	w12, [x19, #80]
	ldrsw	x2, [x20, #8]
Lloh22:
	adrp	x12, l_.str.3@PAGE
Lloh23:
	add	x12, x12, l_.str.3@PAGEOFF
Lloh24:
	adrp	x13, l_.str.2@PAGE
Lloh25:
	add	x13, x13, l_.str.2@PAGEOFF
	cmp	w11, w10
	csel	x10, x13, x12, gt
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldr	x8, [x19, #72]
	ldr	w1, [x8, #8]
	ldr	w2, [x19, #8]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printk
	add	x21, x19, #16
	ldr	x8, [x19, #48]
	ldr	w1, [x8, #4]
	ldr	x8, [x19, #72]
	ldr	x3, [x8]
	mov	x0, x21
	mov	x2, x23
	mov	x4, x22
	bl	_dvb_register_adapter
	tbnz	w0, #31, LBB0_18
; %bb.10:
Lloh30:
	adrp	x8, _DD1_STREAM_B@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DD1_STREAM_B@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_saa7146_write
Lloh33:
	adrp	x22, _MC2@GOTPAGE
Lloh34:
	ldr	x22, [x22, _MC2@GOTPAGEOFF]
Lloh35:
	adrp	x23, _MASK_09@GOTPAGE
Lloh36:
	ldr	x23, [x23, _MASK_09@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x23]
Lloh37:
	adrp	x24, _MASK_25@GOTPAGE
Lloh38:
	ldr	x24, [x24, _MASK_25@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_saa7146_write
Lloh39:
	adrp	x26, _MASK_10@GOTPAGE
Lloh40:
	ldr	x26, [x26, _MASK_10@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x26]
Lloh41:
	adrp	x27, _MASK_26@GOTPAGE
Lloh42:
	ldr	x27, [x27, _MASK_26@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_saa7146_write
Lloh43:
	adrp	x8, _DD1_INIT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DD1_INIT@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #33554432
	bl	_saa7146_write
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_saa7146_write
Lloh46:
	adrp	x8, _BUDGET_VIDEO_PORTA@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BUDGET_VIDEO_PORTA@GOTPAGEOFF]
Lloh48:
	adrp	x9, _BUDGET_VIDEO_PORTB@GOTPAGE
Lloh49:
	ldr	x9, [x9, _BUDGET_VIDEO_PORTB@GOTPAGEOFF]
	ldr	w10, [x25]
	cmp	w10, #133
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #64]
	add	x0, x19, #60
	bl	_spin_lock_init
	add	x0, x19, #56
	bl	_spin_lock_init
	ldr	w8, [x25]
	cmp	w8, #133
	b.eq	LBB0_12
; %bb.11:
Lloh50:
	adrp	x8, _GPIO_CTRL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _GPIO_CTRL@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #5242880
	bl	_saa7146_write
LBB0_12:
	mov	x22, x19
	ldr	w0, [x22, #20]!
	ldur	x8, [x22, #28]
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_strscpy
Lloh53:
	adrp	x8, _SAA7146_I2C_BUS_BIT_RATE_120@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SAA7146_I2C_BUS_BIT_RATE_120@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_saa7146_i2c_adapter_prepare
	ldr	w0, [x22]
	ldur	x8, [x22, #28]
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_strscpy
	mov	x0, x22
	bl	_i2c_add_adapter
	tbnz	x0, #63, LBB0_19
; %bb.13:
	ldr	w1, [x19, #16]
	mov	x0, x22
	bl	_ttpci_eeprom_parse_mac
	ldr	x0, [x20]
	ldr	w1, [x19, #8]
	add	x23, x19, #24
	mov	x2, x23
	bl	_saa7146_vmalloc_build_pgtable
	str	x0, [x19, #32]
	cbz	x0, LBB0_20
; %bb.14:
Lloh56:
	adrp	x8, _PCI_BT_V1@GOTPAGE
Lloh57:
	ldr	x8, [x8, _PCI_BT_V1@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1835008
	bl	_saa7146_write
Lloh59:
	adrp	x8, _GPIO_CTRL@GOTPAGE
Lloh60:
	ldr	x8, [x8, _GPIO_CTRL@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_saa7146_write
	add	x0, x19, #40
Lloh62:
	adrp	x8, _vpeirq@GOTPAGE
Lloh63:
	ldr	x8, [x8, _vpeirq@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	ldr	w8, [x25]
	cmp	w8, #133
	b.eq	LBB0_16
; %bb.15:
Lloh65:
	adrp	x8, _SAA7146_GPIO_OUTHI@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SAA7146_GPIO_OUTHI@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #2
	bl	_saa7146_setgpio
LBB0_16:
	mov	x0, x19
	bl	_budget_register
	mov	x24, x0
	cbz	w0, LBB0_23
; %bb.17:
	ldr	x0, [x20]
	ldr	x1, [x19, #32]
	mov	x2, x23
	bl	_saa7146_vfree_destroy_pgtable
	b	LBB0_21
LBB0_18:
	mov	x24, x0
	b	LBB0_23
LBB0_19:
Lloh68:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_22
LBB0_20:
Lloh71:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_21:
	mov	x0, x22
	bl	_i2c_del_adapter
LBB0_22:
	mov	x0, x21
	bl	_dvb_unregister_adapter
LBB0_23:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev: %p, budget: %p\n"

	.comm	_TS_WIDTH_ACTIVY,4,2            ; @TS_WIDTH_ACTIVY
	.comm	_TS_MAX_BUFSIZE_K_ACTIVY,4,2    ; @TS_MAX_BUFSIZE_K_ACTIVY
	.comm	_TS_HEIGHT_MASK_ACTIVY,4,2      ; @TS_HEIGHT_MASK_ACTIVY
	.comm	_TS_WIDTH_DVBC,4,2              ; @TS_WIDTH_DVBC
	.comm	_TS_MAX_BUFSIZE_K_DVBC,4,2      ; @TS_MAX_BUFSIZE_K_DVBC
	.comm	_TS_HEIGHT_MASK_DVBC,4,2        ; @TS_HEIGHT_MASK_DVBC
	.comm	_TS_WIDTH,4,2                   ; @TS_WIDTH
	.comm	_TS_MAX_BUFSIZE_K,4,2           ; @TS_MAX_BUFSIZE_K
	.comm	_TS_HEIGHT_MASK,4,2             ; @TS_HEIGHT_MASK
	.comm	_dma_buffer_size,4,2            ; @dma_buffer_size
	.comm	_TS_MIN_BUFSIZE_K,4,2           ; @TS_MIN_BUFSIZE_K
	.comm	_jiffies,4,2                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"%s: buffer type = %s, width = %d, height = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"odd/even"

l_.str.3:                               ; @.str.3
	.asciz	"single"

l_.str.4:                               ; @.str.4
	.asciz	"%s: dma buffer size %u\n"

	.comm	_DD1_STREAM_B,4,2               ; @DD1_STREAM_B
	.comm	_MC2,4,2                        ; @MC2
	.comm	_MASK_09,4,2                    ; @MASK_09
	.comm	_MASK_25,4,2                    ; @MASK_25
	.comm	_MASK_10,4,2                    ; @MASK_10
	.comm	_MASK_26,4,2                    ; @MASK_26
	.comm	_DD1_INIT,4,2                   ; @DD1_INIT
	.comm	_BUDGET_VIDEO_PORTB,4,2         ; @BUDGET_VIDEO_PORTB
	.comm	_BUDGET_VIDEO_PORTA,4,2         ; @BUDGET_VIDEO_PORTA
	.comm	_GPIO_CTRL,4,2                  ; @GPIO_CTRL
	.comm	_SAA7146_I2C_BUS_BIT_RATE_120,4,2 ; @SAA7146_I2C_BUS_BIT_RATE_120
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_BT_V1,4,2                  ; @PCI_BT_V1
	.comm	_vpeirq,4,2                     ; @vpeirq
	.comm	_SAA7146_GPIO_OUTHI,4,2         ; @SAA7146_GPIO_OUTHI
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ttpci_budget_init
l_switch.table.ttpci_budget_init:
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_ACTIVY
	.quad	_TS_WIDTH_DVBC
	.quad	_TS_WIDTH_DVBC

	.p2align	3                               ; @switch.table.ttpci_budget_init.5
l_switch.table.ttpci_budget_init.5:
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_ACTIVY
	.quad	_TS_MAX_BUFSIZE_K_DVBC
	.quad	_TS_MAX_BUFSIZE_K_DVBC

	.p2align	3                               ; @switch.table.ttpci_budget_init.6
l_switch.table.ttpci_budget_init.6:
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_ACTIVY
	.quad	_TS_HEIGHT_MASK_DVBC
	.quad	_TS_HEIGHT_MASK_DVBC

.subsections_via_symbols
