	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_rm_check_lm_and_get_connected_blks
__dpu_rm_check_lm_and_get_connected_blks: ## @_dpu_rm_check_lm_and_get_connected_blks
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rcx), %edi
	callq	_to_dpu_hw_mixer
	movq	(%rax), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPU_DEBUG
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	movl	8(%r13), %edi
	callq	_to_dpu_hw_mixer
	movq	(%rax), %rbx
	movq	(%r14), %rdi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_RESERVED_BY_OTHER
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPU_DEBUG
	jmp	LBB0_15
LBB0_5:
	movq	_DPU_HW_BLK_PINGPONG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dpu_rm_init_hw_iter
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__dpu_rm_get_hw_locked
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi
	movq	(%rdi), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_6
## %bb.8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rdi, (%rbx)
	jmp	LBB0_9
LBB0_2:
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_14
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
LBB0_9:
	movl	%r12d, %esi
	callq	_RESERVED_BY_OTHER
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rdi
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPU_DEBUG
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	8(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_DPU_ERROR
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check lm %d pp %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"lm %d not peer of lm %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"lm %d already reserved\n"

	.comm	_DPU_HW_BLK_PINGPONG,4,2        ## @DPU_HW_BLK_PINGPONG
L_.str.3:                               ## @.str.3
	.asciz	"failed to get pp on lm %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"lm %d pp %d already reserved\n"

	.no_dead_strip	__dpu_rm_check_lm_and_get_connected_blks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_rm_check_lm_and_get_connected_blks
__dpu_rm_check_lm_and_get_connected_blks: ; @_dpu_rm_check_lm_and_get_connected_blks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x3, #8]
	bl	_to_dpu_hw_mixer
	ldr	x24, [x0]
	str	xzr, [x19]
	ldp	x1, x8, [x24]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_DEBUG
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w0, [x23, #8]
	bl	_to_dpu_hw_mixer
	ldr	x23, [x0]
	ldr	x0, [x24]
	add	x1, x23, #16
	bl	_test_bit
	cbz	w0, LBB0_8
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_RESERVED_BY_OTHER
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [x24]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh4:
	adrp	x8, _DPU_HW_BLK_PINGPONG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPU_HW_BLK_PINGPONG@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #0
	bl	_dpu_rm_init_hw_iter
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	__dpu_rm_get_hw_locked
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.7:
	str	x0, [x19]
	b	LBB0_10
LBB0_8:
	ldr	x1, [x24]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19]
	cbz	x0, LBB0_16
LBB0_10:
	mov	x1, x21
	bl	_RESERVED_BY_OTHER
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x1, [x20]
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:
	bl	_DPU_DEBUG
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #80
	ret
LBB0_15:
	mov	w0, #1
	b	LBB0_14
LBB0_16:
	ldr	x1, [x24, #8]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPU_ERROR
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check lm %d pp %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"lm %d not peer of lm %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"lm %d already reserved\n"

	.comm	_DPU_HW_BLK_PINGPONG,4,2        ; @DPU_HW_BLK_PINGPONG
l_.str.3:                               ; @.str.3
	.asciz	"failed to get pp on lm %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"lm %d pp %d already reserved\n"

	.no_dead_strip	__dpu_rm_check_lm_and_get_connected_blks
.subsections_via_symbols
