	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_crtc_program_lm_output_roi
__dpu_crtc_program_lm_output_roi:       ## @_dpu_crtc_program_lm_output_roi
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_dpu_crtc
	movl	(%rbx), %edi
	callq	_to_dpu_crtc_state
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	addq	%r13, %rbx
	movq	(%rax,%r13,2), %r15
	movq	%rbx, %rdi
	callq	_drm_rect_visible
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_drm_rect_width
	movl	%eax, -56(%rbp)
	movq	%rbx, %rdi
	callq	_drm_rect_height
	movl	%eax, -60(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	$0, -72(%rbp)
	movq	%r15, %rdi
	leaq	-72(%rbp), %rsi
	callq	*(%r15)
	jmp	LBB0_5
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__dpu_crtc_program_lm_output_roi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_crtc_program_lm_output_roi
__dpu_crtc_program_lm_output_roi:       ; @_dpu_crtc_program_lm_output_roi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_to_dpu_crtc
	ldr	w0, [x19]
	bl	_to_dpu_crtc_state
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	mov	x23, #0
	mov	w24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #4
	cmp	x23, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x8, x22
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x23, lsl #3]
	mov	x0, x21
	bl	_drm_rect_visible
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_drm_rect_width
	str	w0, [sp, #24]
	mov	x0, x21
	bl	_drm_rect_height
	add	w21, w24, #1
	stp	w24, w0, [sp, #16]
	str	xzr, [sp, #8]
	ldr	x8, [x20]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	mov	x24, x21
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__dpu_crtc_program_lm_output_roi
.subsections_via_symbols
