	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_PXC200
_init_PXC200:                           ## @init_PXC200
	.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, %r12
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	movl	$8192, %esi                     ## imm = 0x2000
	callq	_gpio_inout
	xorl	%edi, %edi
	callq	_gpio_write
	movl	$3, %edi
	callq	_udelay
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_gpio_write
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	xorl	%esi, %esi
	callq	_gpio_bits
	movq	_bttv_gpio@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_bttv_gpio_tracking
LBB0_2:
	movq	_BT848_ADC_RESERVED@GOTPCREL(%rip), %rax
	movq	_BT848_ADC_AGC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_BT848_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r12, %rdi
	movl	$94, %esi
	xorl	%edx, %edx
	movl	$128, %ecx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_BT848_GPIO_DMA_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_btread
	movq	_BT848_GPIO_DMA_CTL_GPCLKMODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_btwrite
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	movl	$4, %esi
	callq	_gpio_inout
	xorl	%edi, %edi
	callq	_gpio_write
	movl	$10, %edi
	callq	_udelay
	movl	$4, %edi
	callq	_gpio_write
	leaq	_init_PXC200.vals(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	leaq	_init_PXC200.vals(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	leaq	_init_PXC200.vals(%rip), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %r14
	cmpq	%rax, %r15
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$30, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movl	(%r14), %r13d
	movq	%r12, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_bttv_I2CRead
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @init_PXC200.vals
_init_PXC200.vals:
	.long	8                               ## 0x8
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	11                              ## 0xb
	.long	13                              ## 0xd
	.long	13                              ## 0xd
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	0                               ## 0x0

	.comm	_bttv_gpio,8,3                  ## @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pxc200"

	.comm	_BT848_ADC_RESERVED,4,2         ## @BT848_ADC_RESERVED
	.comm	_BT848_ADC_AGC_EN,4,2           ## @BT848_ADC_AGC_EN
	.comm	_BT848_ADC,4,2                  ## @BT848_ADC
L_.str.1:                               ## @.str.1
	.asciz	"Setting DAC reference voltage level ...\n"

L_.str.2:                               ## @.str.2
	.asciz	"Initialising 12C508 PIC chip ...\n"

	.comm	_BT848_GPIO_DMA_CTL,4,2         ## @BT848_GPIO_DMA_CTL
	.comm	_BT848_GPIO_DMA_CTL_GPCLKMODE,4,2 ## @BT848_GPIO_DMA_CTL_GPCLKMODE
L_.str.3:                               ## @.str.3
	.asciz	"I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n"

L_.str.4:                               ## @.str.4
	.asciz	"PXC200 Initialised\n"

	.no_dead_strip	_init_PXC200
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_PXC200
_init_PXC200:                           ; @init_PXC200
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	mov	w0, #16777215
	mov	w1, #8192
	bl	_gpio_inout
	mov	w0, #0
	bl	_gpio_write
	mov	w0, #3
	bl	_udelay
	mov	w0, #8192
	bl	_gpio_write
	mov	w0, #16777215
	mov	w1, #0
	bl	_gpio_bits
Lloh0:
	adrp	x8, _bttv_gpio@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bttv_gpio@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bttv_gpio_tracking
LBB0_2:
Lloh5:
	adrp	x8, _BT848_ADC_RESERVED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BT848_ADC_RESERVED@GOTPAGEOFF]
Lloh7:
	adrp	x9, _BT848_ADC_AGC_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BT848_ADC_AGC_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh11:
	adrp	x8, _BT848_ADC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BT848_ADC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_btwrite
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	mov	w1, #94
	mov	w2, #0
	mov	w3, #128
	mov	w4, #1
	bl	_bttv_I2CWrite
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh18:
	adrp	x20, _BT848_GPIO_DMA_CTL@GOTPAGE
Lloh19:
	ldr	x20, [x20, _BT848_GPIO_DMA_CTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_btread
Lloh20:
	adrp	x8, _BT848_GPIO_DMA_CTL_GPCLKMODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BT848_GPIO_DMA_CTL_GPCLKMODE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x20]
	bl	_btwrite
	mov	w0, #16777215
	mov	w1, #4
	bl	_gpio_inout
	mov	w0, #0
	bl	_gpio_write
	mov	w0, #10
	bl	_udelay
	mov	w0, #4
	bl	_gpio_write
Lloh23:
	adrp	x20, _init_PXC200.vals@PAGE
Lloh24:
	add	x20, x20, _init_PXC200.vals@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.3:
	mov	x23, #0
Lloh25:
	adrp	x21, l_.str.3@PAGE
Lloh26:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x20, x23, lsl #2]
	mov	x0, x19
	mov	w1, #30
	mov	w2, #0
	mov	w4, #1
	bl	_bttv_I2CWrite
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	ldr	w24, [x20, x23, lsl #2]
	mov	x0, x19
	mov	w1, #31
	mov	x2, #0
	bl	_bttv_I2CRead
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x24, [sp]
	mov	x0, x21
	bl	_pr_info
	b	LBB0_4
LBB0_7:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_pr_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @init_PXC200.vals
_init_PXC200.vals:
	.long	8                               ; 0x8
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	11                              ; 0xb
	.long	13                              ; 0xd
	.long	13                              ; 0xd
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	0                               ; 0x0

	.comm	_bttv_gpio,8,3                  ; @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pxc200"

	.comm	_BT848_ADC_RESERVED,4,2         ; @BT848_ADC_RESERVED
	.comm	_BT848_ADC_AGC_EN,4,2           ; @BT848_ADC_AGC_EN
	.comm	_BT848_ADC,4,2                  ; @BT848_ADC
l_.str.1:                               ; @.str.1
	.asciz	"Setting DAC reference voltage level ...\n"

l_.str.2:                               ; @.str.2
	.asciz	"Initialising 12C508 PIC chip ...\n"

	.comm	_BT848_GPIO_DMA_CTL,4,2         ; @BT848_GPIO_DMA_CTL
	.comm	_BT848_GPIO_DMA_CTL_GPCLKMODE,4,2 ; @BT848_GPIO_DMA_CTL_GPCLKMODE
l_.str.3:                               ; @.str.3
	.asciz	"I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n"

l_.str.4:                               ; @.str.4
	.asciz	"PXC200 Initialised\n"

	.no_dead_strip	_init_PXC200
.subsections_via_symbols
