	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psc_dma_bcom_irq_rx
_psc_dma_bcom_irq_rx:                   ## @psc_dma_bcom_irq_rx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	48(%rsi), %rdi
	callq	_spin_lock
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_psc_dma_bcom_enqueue_next_buffer
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	56(%rbx), %edi
	callq	_bcom_buffer_done
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	56(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bcom_retrieve_buffer
	movq	(%rbx), %rax
	addq	8(%rbx), %rax
	movq	%rax, (%rbx)
	cmpq	16(%rbx), %rax
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_5:
	movq	48(%rbx), %rdi
	callq	_spin_unlock
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.6:
	movl	32(%rbx), %edi
	callq	_snd_pcm_period_elapsed
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_psc_dma_bcom_irq_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psc_dma_bcom_irq_rx
_psc_dma_bcom_irq_rx:                   ; @psc_dma_bcom_irq_rx
	.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
	mov	x19, x1
	ldr	x0, [x1, #48]
	bl	_spin_lock
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_psc_dma_bcom_enqueue_next_buffer
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #56]
	bl	_bcom_buffer_done
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #56]
	mov	x1, #0
	mov	x2, #0
	bl	_bcom_retrieve_buffer
	ldp	x9, x8, [x19]
	ldr	x10, [x19, #16]
	add	x8, x9, x8
	cmp	x8, x10
	str	x8, [x19]
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	str	x8, [x19]
	b	LBB0_1
LBB0_5:
	ldr	x0, [x19, #48]
	bl	_spin_unlock
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #32]
	bl	_snd_pcm_period_elapsed
LBB0_7:
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_psc_dma_bcom_irq_rx
.subsections_via_symbols
