	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_data_push
_fsi_data_push:                         ## @fsi_data_push
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movl	8(%rbx), %eax
	incl	%eax
	movl	4(%rbx), %ecx
	imull	%eax, %ecx
	cmpl	%ecx, (%rbx)
	jge	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	cltd
	idivl	(%rdi)
	movl	%edx, 8(%rbx)
	testl	%edx, %edx
	jne	LBB0_8
## %bb.7:
	movl	$0, (%rbx)
LBB0_8:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
	callq	_frames_to_bytes
	movl	12(%rbx), %r12d
	movl	16(%rbx), %ecx
	cltd
	idivl	%r12d
	movl	%eax, %r13d
	subl	(%rbx), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r13d
	movl	%eax, %r15d
	imull	20(%rbx), %r12d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_fsi_get_fifo_residue
	subl	%eax, %r12d
	cmpl	%r15d, %r12d
	cmovgel	%r15d, %r12d
	cmpl	$4, %r13d
	je	LBB0_11
## %bb.9:
	cmpl	$2, %r13d
	jne	LBB0_3
## %bb.10:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_fsi_16data_push
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_fsi_32data_push
LBB0_12:
	imull	%r13d, %r12d
	addl	%r12d, (%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_fsi_irq_enable
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_snd_pcm_period_elapsed
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_fsi_data_push
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_data_push
_fsi_data_push:                         ; @fsi_data_push
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #24]
	cbz	x20, LBB0_10
; %bb.2:
	ldr	x21, [x20]
	cbz	x21, LBB0_10
; %bb.3:
	ldp	w9, w10, [x19]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	mul	w10, w8, w10
	cmp	w9, w10
	b.ge	LBB0_5
; %bb.4:
	mov	x20, #0
	b	LBB0_7
LBB0_5:
	ldr	w9, [x21]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #8]
	cbnz	w8, LBB0_7
; %bb.6:
	str	wzr, [x19]
LBB0_7:
	mov	x0, x21
	mov	w1, #1
	bl	_frames_to_bytes
	ldp	w22, w8, [x19, #12]
	sdiv	w23, w0, w22
	ldr	w9, [x19]
	sub	w8, w8, w9
	ldr	w24, [x19, #20]
	sdiv	w25, w8, w23
	mov	x0, x19
	mov	w1, #1
	bl	_fsi_get_fifo_residue
	neg	w8, w0
	madd	w8, w24, w22, w8
	cmp	w8, w25
	csel	w22, w8, w25, lt
	cmp	w23, #4
	b.eq	LBB0_12
; %bb.8:
	cmp	w23, #2
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_fsi_16data_push
	b	LBB0_13
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_fsi_32data_push
LBB0_13:
	ldr	w8, [x19]
	madd	w8, w22, w23, w8
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_fsi_irq_enable
	cbz	x20, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_snd_pcm_period_elapsed
LBB0_15:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fsi_data_push
.subsections_via_symbols
