	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flite_hw_set_dma_buffer        ## -- Begin function flite_hw_set_dma_buffer
	.p2align	4, 0x90
_flite_hw_set_dma_buffer:               ## @flite_hw_set_dma_buffer
	.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, %r13
	movq	8(%rdi), %rax
	cmpl	$1, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rsi), %r14d
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movl	4(%rsi), %r15d
	movq	(%r13), %r12
	leal	-1(%r14), %edi
	callq	_FLITE_REG_CIOSAN
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writel
	jmp	LBB0_4
LBB0_2:
	movl	4(%rsi), %edi
	movq	_FLITE_REG_CIOSA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	callq	_writel
	xorl	%r14d, %r14d
LBB0_4:
	movq	_FLITE_REG_CIFCNTSEQ@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r13), %rdi
	callq	_readl
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r13), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLITE_REG_CIOSA,8,3            ## @FLITE_REG_CIOSA
	.comm	_FLITE_REG_CIFCNTSEQ,8,3        ## @FLITE_REG_CIFCNTSEQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flite_hw_set_dma_buffer        ; -- Begin function flite_hw_set_dma_buffer
	.p2align	2
_flite_hw_set_dma_buffer:               ; @flite_hw_set_dma_buffer
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w20, [x1]
	cbz	w20, LBB0_3
; %bb.2:
	ldr	w21, [x1, #4]
	ldr	x22, [x19]
	sub	w0, w20, #1
	bl	_FLITE_REG_CIOSAN
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	b	LBB0_4
LBB0_3:
	ldr	w0, [x1, #4]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _FLITE_REG_CIOSA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLITE_REG_CIOSA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w20, #0
LBB0_4:
	ldr	x8, [x19]
Lloh3:
	adrp	x22, _FLITE_REG_CIFCNTSEQ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _FLITE_REG_CIFCNTSEQ@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	mov	x0, x20
	bl	_BIT
	orr	w0, w0, w21
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FLITE_REG_CIOSA,8,3            ; @FLITE_REG_CIOSA
	.comm	_FLITE_REG_CIFCNTSEQ,8,3        ; @FLITE_REG_CIFCNTSEQ
.subsections_via_symbols
