	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_acquire_idle_pipe_for_layer
_dcn10_acquire_idle_pipe_for_layer:     ## @dcn10_acquire_idle_pipe_for_layer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rsi
	callq	_resource_get_head_pipe_for_stream
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_find_idle_secondary_pipe
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movups	32(%r15), %xmm0
	movups	%xmm0, 32(%rbx)
	movq	16(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 28(%rbx)
	movq	8(%r14), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 24(%rbx)
	movq	(%r14), %rax
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, 16(%rbx)
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASSERT
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dcn10_acquire_idle_pipe_for_layer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_acquire_idle_pipe_for_layer
_dcn10_acquire_idle_pipe_for_layer:     ; @dcn10_acquire_idle_pipe_for_layer
	.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, x1
	mov	x21, x0
	mov	x1, x2
	bl	_resource_get_head_pipe_for_stream
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_find_idle_secondary_pipe
	cbz	x20, LBB0_3
; %bb.1:
	cbz	x0, LBB0_4
; %bb.2:
	ldr	q0, [x20, #32]
	str	q0, [x0, #32]
	ldr	x8, [x19, #16]
	ldr	x9, [x0]
	lsl	x10, x9, #2
	ldr	w8, [x8, x10]
	str	w8, [x0, #28]
	ldp	x11, x8, [x19]
	ldr	w8, [x8, x10]
	lsl	x9, x9, #3
	ldr	x10, [x11, x9]
	str	w8, [x0, #24]
	str	x10, [x0, #16]
	ldr	x8, [x11, x9]
	ldr	w8, [x8]
	str	w8, [x0, #8]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	bl	_ASSERT
	mov	x0, #0
LBB0_4:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dcn10_acquire_idle_pipe_for_layer
.subsections_via_symbols
