	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_adc
_start_adc:                             ## @start_adc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 32(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	40(%rdi), %edi
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	callq	_au1xxx_dbdma_put_dest
	movq	8(%rbx), %rdx
	movq	24(%rbx), %rax
	movq	(%rbx), %rsi
	addq	%rdx, %rsi
	movq	%rsi, (%rbx)
	movq	16(%rbx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jl	LBB0_3
## %bb.2:
	subq	%rax, %rsi
	movq	%rsi, (%rbx)
LBB0_3:
	movl	40(%rbx), %edi
	callq	_au1xxx_dbdma_put_dest
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	addq	8(%rbx), %rax
	movq	%rax, (%rbx)
	movq	16(%rbx), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jl	LBB0_5
## %bb.4:
	subq	%rcx, %rax
	movq	%rax, (%rbx)
LBB0_5:
	movl	44(%rbx), %edi
	callq	_set_recv_slots
	movl	40(%rbx), %edi
	callq	_au1xxx_dbdma_start
	movq	_PSC_AC97PCR_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PSC_AC97PCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_AC97PCR_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	$0, 32(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSC_AC97PCR_RC,4,2             ## @PSC_AC97PCR_RC
	.comm	_PSC_AC97PCR,4,2                ## @PSC_AC97PCR
	.comm	_PSC_AC97PCR_RS,4,2             ## @PSC_AC97PCR_RS
	.no_dead_strip	_start_adc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_adc
_start_adc:                             ; @start_adc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #40]
	ldp	x1, x2, [x19]
	bl	_au1xxx_dbdma_put_dest
	ldp	x8, x2, [x19]
	add	x1, x8, x2
	str	x1, [x19]
	ldp	x9, x8, [x19, #16]
	add	x9, x8, x9
	cmp	x1, x9
	b.lt	LBB0_3
; %bb.2:
	sub	x1, x1, x8
	str	x1, [x19]
LBB0_3:
	ldr	w0, [x19, #40]
	bl	_au1xxx_dbdma_put_dest
	ldp	x9, x8, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	ldp	x10, x9, [x19, #16]
	add	x10, x9, x10
	cmp	x8, x10
	b.lt	LBB0_5
; %bb.4:
	sub	x8, x8, x9
	str	x8, [x19]
LBB0_5:
	ldr	w0, [x19, #44]
	bl	_set_recv_slots
	ldr	w0, [x19, #40]
	bl	_au1xxx_dbdma_start
Lloh0:
	adrp	x8, _PSC_AC97PCR_RC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSC_AC97PCR_RC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _PSC_AC97PCR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PSC_AC97PCR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_au_writel
	bl	_au_sync
Lloh5:
	adrp	x8, _PSC_AC97PCR_RS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSC_AC97PCR_RS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_au_writel
	bl	_au_sync
	str	xzr, [x19, #32]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PSC_AC97PCR_RC,4,2             ; @PSC_AC97PCR_RC
	.comm	_PSC_AC97PCR,4,2                ; @PSC_AC97PCR
	.comm	_PSC_AC97PCR_RS,4,2             ; @PSC_AC97PCR_RS
	.no_dead_strip	_start_adc
.subsections_via_symbols
