	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function budget_av_attach
_budget_av_attach:                      ## @budget_av_attach
	.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	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r15, %rdx
	callq	_dprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	$0, (%rax)
	leaq	8(%rax), %r14
	movq	$0, 40(%rax)
	movq	%rax, (%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_adapter_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ttpci_budget_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_4:
	movq	_DD1_STREAM_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$67108864, %edx                 ## imm = 0x4000000
	callq	_saa7146_write
	movq	_DD1_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$117442048, %edx                ## imm = 0x7000600
	callq	_saa7146_write
	movq	_MASK_09@GOTPCREL(%rip), %rax
	movq	_MASK_25@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MC2@GOTPCREL(%rip), %rax
	movq	_MASK_10@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_MASK_26@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_saa7146_write
	movq	%r12, %rdi
	callq	_saa7113_init
	testq	%rax, %rax
	je	LBB0_5
LBB0_10:
	movq	_PCI_BT_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$469766175, %edx                ## imm = 0x1C00101F
	callq	_saa7146_write
	movq	24(%r12), %rbx
	movq	%r12, %rdi
	addq	$32, %rdi
	movl	$160, %esi
	movl	$48, %edx
	movq	%rbx, %rcx
	movl	$6, %r8d
	callq	_i2c_readregs
	movl	16(%r12), %esi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_eth_zero_addr
	jmp	LBB0_13
LBB0_5:
	movl	$1, (%r12)
	movq	_vv_data@GOTPCREL(%rip), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_saa7146_vv_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rdx
	callq	_pr_info
LBB0_13:
	movq	%r12, 8(%r12)
	movq	%r12, %rdi
	callq	_frontend_init
	movq	%r12, %rdi
	callq	_ciintf_init
	movq	%r14, %rdi
	callq	_ttpci_budget_init_hooks
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_vidioc_enum_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_vidioc_g_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_vidioc_s_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	leaq	48(%r12), %rdi
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rsi
	callq	_saa7146_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	movq	%r15, %rdi
	callq	_saa7146_vv_release
	jmp	LBB0_14
LBB0_9:
	movq	_SAA7146_HPS_SOURCE_PORT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SAA7146_HPS_SYNC_PORT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_saa7146_set_hps_source_and_sync
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_saa7113_setinput
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev: %p\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_adapter_nr,4,2                 ## @adapter_nr
	.comm	_DD1_STREAM_B,4,2               ## @DD1_STREAM_B
	.comm	_DD1_INIT,4,2                   ## @DD1_INIT
	.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	_vv_data,12,2                   ## @vv_data
L_.str.1:                               ## @.str.1
	.asciz	"cannot init vv subsystem\n"

	.comm	_vidioc_enum_input,4,2          ## @vidioc_enum_input
	.comm	_vidioc_g_input,4,2             ## @vidioc_g_input
	.comm	_vidioc_s_input,4,2             ## @vidioc_s_input
L_.str.2:                               ## @.str.2
	.asciz	"knc1"

	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.3:                               ## @.str.3
	.asciz	"cannot register capture v4l2 device\n"

	.comm	_SAA7146_HPS_SOURCE_PORT_A,4,2  ## @SAA7146_HPS_SOURCE_PORT_A
	.comm	_SAA7146_HPS_SYNC_PORT_A,4,2    ## @SAA7146_HPS_SYNC_PORT_A
	.comm	_PCI_BT_V1,4,2                  ## @PCI_BT_V1
L_.str.4:                               ## @.str.4
	.asciz	"KNC1-%d: Could not read MAC from KNC1 card\n"

L_.str.5:                               ## @.str.5
	.asciz	"KNC1-%d: MAC addr = %pM\n"

	.no_dead_strip	_budget_av_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function budget_av_attach
_budget_av_attach:                      ; @budget_av_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x21
	bl	_dprintk
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	wzr, [x0]
	add	x20, x0, #8
	str	xzr, [x0, #40]
	str	x0, [x21]
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _adapter_nr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _adapter_nr@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_ttpci_budget_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_4:
Lloh14:
	adrp	x8, _DD1_STREAM_B@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DD1_STREAM_B@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #67108864
	bl	_saa7146_write
Lloh17:
	adrp	x8, _DD1_INIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DD1_INIT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1536
	movk	w2, #1792, lsl #16
	bl	_saa7146_write
Lloh20:
	adrp	x8, _MC2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MC2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _MASK_09@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MASK_09@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _MASK_25@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MASK_25@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _MASK_10@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MASK_10@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _MASK_26@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MASK_26@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x21
	bl	_saa7146_write
	mov	x0, x19
	bl	_saa7113_init
	cbz	x0, LBB0_7
LBB0_5:
Lloh35:
	adrp	x8, _PCI_BT_V1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCI_BT_V1@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #4127
	movk	w2, #7168, lsl #16
	bl	_saa7146_write
	ldr	x21, [x19, #24]
	add	x0, x19, #32
	mov	w1, #160
	mov	w2, #48
	mov	x3, x21
	mov	w4, #6
	bl	_i2c_readregs
	ldr	w1, [x19, #16]
	cbz	x0, LBB0_9
; %bb.6:
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
	mov	x0, x21
	bl	_eth_zero_addr
	b	LBB0_10
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
Lloh40:
	adrp	x23, _vv_data@GOTPAGE
Lloh41:
	ldr	x23, [x23, _vv_data@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x23
	bl	_saa7146_vv_init
	cbz	w0, LBB0_12
; %bb.8:
	mov	x22, x0
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	b	LBB0_11
LBB0_9:
Lloh44:
	adrp	x0, l_.str.5@PAGE
Lloh45:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_pr_info
LBB0_10:
	str	x19, [x19, #8]
	mov	x0, x19
	bl	_frontend_init
	mov	x0, x19
	bl	_ciintf_init
	mov	x0, x20
	bl	_ttpci_budget_init_hooks
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh46:
	adrp	x8, _vidioc_enum_input@GOTPAGE
Lloh47:
	ldr	x8, [x8, _vidioc_enum_input@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x23, #8]
Lloh49:
	adrp	x8, _vidioc_g_input@GOTPAGE
Lloh50:
	ldr	x8, [x8, _vidioc_g_input@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _vidioc_s_input@GOTPAGE
Lloh53:
	ldr	x9, [x9, _vidioc_s_input@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	stp	w9, w8, [x23]
	add	x0, x19, #48
Lloh55:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh56:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh57:
	ldr	w3, [x8]
Lloh58:
	adrp	x2, l_.str.2@PAGE
Lloh59:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_saa7146_register_device
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
Lloh60:
	adrp	x0, l_.str.3@PAGE
Lloh61:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	mov	x0, x21
	bl	_saa7146_vv_release
	b	LBB0_11
LBB0_14:
Lloh62:
	adrp	x8, _SAA7146_HPS_SOURCE_PORT_A@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SAA7146_HPS_SOURCE_PORT_A@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
Lloh65:
	adrp	x8, _SAA7146_HPS_SYNC_PORT_A@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SAA7146_HPS_SYNC_PORT_A@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_saa7146_set_hps_source_and_sync
	mov	x0, x19
	mov	w1, #0
	bl	_saa7113_setinput
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev: %p\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_adapter_nr,4,2                 ; @adapter_nr
	.comm	_DD1_STREAM_B,4,2               ; @DD1_STREAM_B
	.comm	_DD1_INIT,4,2                   ; @DD1_INIT
	.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	_vv_data,12,2                   ; @vv_data
l_.str.1:                               ; @.str.1
	.asciz	"cannot init vv subsystem\n"

	.comm	_vidioc_enum_input,4,2          ; @vidioc_enum_input
	.comm	_vidioc_g_input,4,2             ; @vidioc_g_input
	.comm	_vidioc_s_input,4,2             ; @vidioc_s_input
l_.str.2:                               ; @.str.2
	.asciz	"knc1"

	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.3:                               ; @.str.3
	.asciz	"cannot register capture v4l2 device\n"

	.comm	_SAA7146_HPS_SOURCE_PORT_A,4,2  ; @SAA7146_HPS_SOURCE_PORT_A
	.comm	_SAA7146_HPS_SYNC_PORT_A,4,2    ; @SAA7146_HPS_SYNC_PORT_A
	.comm	_PCI_BT_V1,4,2                  ; @PCI_BT_V1
l_.str.4:                               ; @.str.4
	.asciz	"KNC1-%d: Could not read MAC from KNC1 card\n"

l_.str.5:                               ; @.str.5
	.asciz	"KNC1-%d: MAC addr = %pM\n"

	.no_dead_strip	_budget_av_attach
.subsections_via_symbols
