	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psc_dma_bcom_enqueue_tx
_psc_dma_bcom_enqueue_tx:               ## @psc_dma_bcom_enqueue_tx
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	24(%rdi), %rdx
	movq	8(%rdx), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_6
## %bb.1:
	movq	(%rdx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	callq	_bcom_queue_full
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	addq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_psc_dma_bcom_enqueue_next_buffer
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_2
## %bb.4:
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
LBB0_5:
	subq	%rdx, %rax
	movq	%rax, (%rbx)
LBB0_6:
	cmpq	%rcx, %rax
	jge	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	callq	_bcom_queue_full
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rax
	addq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_psc_dma_bcom_enqueue_next_buffer
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	8(%rcx), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_psc_dma_bcom_enqueue_tx
.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_enqueue_tx
_psc_dma_bcom_enqueue_tx:               ; @psc_dma_bcom_enqueue_tx
	.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, x0
	ldr	x8, [x0]
	ldr	x10, [x0, #24]
	ldr	x9, [x10, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.1:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ge	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	bl	_bcom_queue_full
	cbnz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	mov	x0, x19
	bl	_psc_dma_bcom_enqueue_next_buffer
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	ldr	x10, [x9]
	cmp	x8, x10
	b.lt	LBB0_2
; %bb.4:
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
LBB0_5:
	sub	x8, x8, x10
	str	x8, [x19]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #16]
	bl	_bcom_queue_full
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	x9, x8, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	mov	x0, x19
	bl	_psc_dma_bcom_enqueue_next_buffer
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.lt	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_psc_dma_bcom_enqueue_tx
.subsections_via_symbols
