	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt878_start                    ## -- Begin function bt878_start
	.p2align	4, 0x90
_bt878_start:                           ## @bt878_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_bt878_risc_program
	andl	$-32, %ebx
	orl	$27, %ebx
	movl	(%r12), %edi
	movq	_BT878_ARISC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	movq	_BT878_ASCERR@GOTPCREL(%rip), %rax
	movq	_BT878_AOCERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_BT878_APABORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BT878_ARIPERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BT878_APPERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BT878_AFDSR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BT878_AFTRGT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BT878_AFBUS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BT878_ARISCI@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%r14d
	andl	%ecx, %r14d
	movq	_BT878_AINT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_btwrite
	movq	_BT878_AGPIO_DMA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_btwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bt878 debug: bt878_start (ctl=%8.8x)\n"

	.comm	_BT878_ARISC_START,4,2          ## @BT878_ARISC_START
	.comm	_BT878_ASCERR,4,2               ## @BT878_ASCERR
	.comm	_BT878_AOCERR,4,2               ## @BT878_AOCERR
	.comm	_BT878_APABORT,4,2              ## @BT878_APABORT
	.comm	_BT878_ARIPERR,4,2              ## @BT878_ARIPERR
	.comm	_BT878_APPERR,4,2               ## @BT878_APPERR
	.comm	_BT878_AFDSR,4,2                ## @BT878_AFDSR
	.comm	_BT878_AFTRGT,4,2               ## @BT878_AFTRGT
	.comm	_BT878_AFBUS,4,2                ## @BT878_AFBUS
	.comm	_BT878_ARISCI,4,2               ## @BT878_ARISCI
	.comm	_BT878_AINT_MASK,4,2            ## @BT878_AINT_MASK
	.comm	_BT878_AGPIO_DMA_CTL,4,2        ## @BT878_AGPIO_DMA_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt878_start                    ; -- Begin function bt878_start
	.p2align	2
_bt878_start:                           ; @bt878_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x22
	mov	x1, x21
	bl	_bt878_risc_program
	mov	w8, #27
	bfxil	w19, w8, #0, #5
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _BT878_ARISC_START@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT878_ARISC_START@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_btwrite
Lloh5:
	adrp	x8, _BT878_ASCERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BT878_ASCERR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _BT878_AOCERR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BT878_AOCERR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _BT878_APABORT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BT878_APABORT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _BT878_ARIPERR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BT878_ARIPERR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _BT878_APPERR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BT878_APPERR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _BT878_AFDSR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BT878_AFDSR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _BT878_AFTRGT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BT878_AFTRGT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _BT878_AFBUS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BT878_AFBUS@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _BT878_ARISCI@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BT878_ARISCI@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w0, w8, w20
Lloh32:
	adrp	x8, _BT878_AINT_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BT878_AINT_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_btwrite
Lloh35:
	adrp	x8, _BT878_AGPIO_DMA_CTL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BT878_AGPIO_DMA_CTL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_btwrite
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bt878 debug: bt878_start (ctl=%8.8x)\n"

	.comm	_BT878_ARISC_START,4,2          ; @BT878_ARISC_START
	.comm	_BT878_ASCERR,4,2               ; @BT878_ASCERR
	.comm	_BT878_AOCERR,4,2               ; @BT878_AOCERR
	.comm	_BT878_APABORT,4,2              ; @BT878_APABORT
	.comm	_BT878_ARIPERR,4,2              ; @BT878_ARIPERR
	.comm	_BT878_APPERR,4,2               ; @BT878_APPERR
	.comm	_BT878_AFDSR,4,2                ; @BT878_AFDSR
	.comm	_BT878_AFTRGT,4,2               ; @BT878_AFTRGT
	.comm	_BT878_AFBUS,4,2                ; @BT878_AFBUS
	.comm	_BT878_ARISCI,4,2               ; @BT878_ARISCI
	.comm	_BT878_AINT_MASK,4,2            ; @BT878_AINT_MASK
	.comm	_BT878_AGPIO_DMA_CTL,4,2        ; @BT878_AGPIO_DMA_CTL
.subsections_via_symbols
