	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr_altera_load
_pvr_altera_load:                       ## @pvr_altera_load
	.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	_BTTV_ALT_DATA@GOTPCREL(%rip), %r12
	movq	_BTTV_ALT_DCLK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	(%r12), %eax
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_BTTV_ALT_NCONFIG@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	movl	%eax, %esi
	callq	_gpio_inout
	xorl	%edi, %edi
	callq	_gpio_write
	movq	_PVR_GPIO_DELAY@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_udelay
	movl	(%r14), %edi
	callq	_gpio_write
	movl	(%r13), %edi
	callq	_udelay
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %r14d
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	%r14d, %esi
	andl	$1, %esi
	negl	%esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	%r14d, %esi
	shll	$30, %esi
	sarl	$31, %esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	%r14d, %esi
	shll	$29, %esi
	sarl	$31, %esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	%r14d, %esi
	shll	$28, %esi
	sarl	$31, %esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	%r14d, %esi
	shll	$27, %esi
	sarl	$31, %esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	%r14d, %esi
	shll	$26, %esi
	sarl	$31, %esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	%r14d, %esi
	shll	$25, %esi
	sarl	$31, %esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movsbl	%r14b, %esi
	sarl	$7, %esi
	movl	(%r12), %edi
	andl	%edi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_2
LBB0_3:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movq	_PVR_GPIO_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	movl	$30, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	movl	(%r15), %edi
	movl	%edi, %esi
	callq	_gpio_bits
	decl	%ebx
	jne	LBB0_4
## %bb.5:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_bits
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTTV_ALT_DATA,4,2              ## @BTTV_ALT_DATA
	.comm	_BTTV_ALT_DCLK,4,2              ## @BTTV_ALT_DCLK
	.comm	_BTTV_ALT_NCONFIG,4,2           ## @BTTV_ALT_NCONFIG
	.comm	_PVR_GPIO_DELAY,4,2             ## @PVR_GPIO_DELAY
	.no_dead_strip	_pvr_altera_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr_altera_load
_pvr_altera_load:                       ; @pvr_altera_load
	.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	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x22, _BTTV_ALT_DATA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BTTV_ALT_DATA@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _BTTV_ALT_DCLK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BTTV_ALT_DCLK@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh4:
	adrp	x24, _BTTV_ALT_NCONFIG@GOTPAGE
Lloh5:
	ldr	x24, [x24, _BTTV_ALT_NCONFIG@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w8, w9
	mov	w0, #16777215
	bl	_gpio_inout
	mov	w0, #0
	bl	_gpio_write
Lloh6:
	adrp	x23, _PVR_GPIO_DELAY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PVR_GPIO_DELAY@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_udelay
	ldr	w0, [x24]
	bl	_gpio_write
	ldr	w0, [x23]
	bl	_udelay
	cbz	x19, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x20], #4
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	sbfx	w8, w24, #0, #1
	ldr	w0, [x22]
	and	w1, w8, w0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	lsl	w8, w24, #30
	ldr	w0, [x22]
	and	w1, w0, w8, asr #31
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	lsl	w8, w24, #29
	ldr	w0, [x22]
	and	w1, w0, w8, asr #31
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	lsl	w8, w24, #28
	ldr	w0, [x22]
	and	w1, w0, w8, asr #31
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	lsl	w8, w24, #27
	ldr	w0, [x22]
	and	w1, w0, w8, asr #31
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	lsl	w8, w24, #26
	ldr	w0, [x22]
	and	w1, w0, w8, asr #31
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	lsl	w8, w24, #25
	ldr	w0, [x22]
	and	w1, w0, w8, asr #31
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	lsl	w8, w24, #24
	ldr	w0, [x22]
	and	w1, w0, w8, asr #31
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	subs	x19, x19, #1
	b.ne	LBB0_1
LBB0_2:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	ldr	w0, [x23]
	bl	_udelay
	mov	w19, #30
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	ldr	w0, [x21]
	mov	x1, x0
	bl	_gpio_bits
	subs	w19, w19, #1
	b.ne	LBB0_3
; %bb.4:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_bits
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BTTV_ALT_DATA,4,2              ; @BTTV_ALT_DATA
	.comm	_BTTV_ALT_DCLK,4,2              ; @BTTV_ALT_DCLK
	.comm	_BTTV_ALT_NCONFIG,4,2           ; @BTTV_ALT_NCONFIG
	.comm	_PVR_GPIO_DELAY,4,2             ; @PVR_GPIO_DELAY
	.no_dead_strip	_pvr_altera_load
.subsections_via_symbols
