	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_format_populate_addrs_linear
__dpu_format_populate_addrs_linear:     ## @_dpu_format_populate_addrs_linear
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %eax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdx), %rdi
	movq	(%rsi), %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rsi,8), %rdx
	movq	(%rbx,%rsi,8), %rcx
	cmpq	%rcx, %rdx
	jg	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	testl	%eax, %eax
	je	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jae	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_msm_framebuffer_iova
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	jne	LBB0_8
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plane %u expected pitch %u, fb %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to retrieve base addr\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	__dpu_format_populate_addrs_linear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_format_populate_addrs_linear
__dpu_format_populate_addrs_linear:     ; @_dpu_format_populate_addrs_linear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	w9, [x2]
	cbz	w9, LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x8, #0
	ldr	x10, [x2, #8]
	ldr	x11, [x1]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x8, #3
	ldr	x12, [x10, x13]
	ldr	x13, [x11, x13]
	cmp	x12, x13
	b.gt	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.4:
	mov	x22, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19]
	cmp	x22, x8
	b.hs	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_msm_framebuffer_iova
	ldr	x8, [x19, #16]
	str	w0, [x8, x22, lsl #2]
	cbnz	w0, LBB0_6
LBB0_9:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	stp	x12, x13, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plane %u expected pitch %u, fb %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to retrieve base addr\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	__dpu_format_populate_addrs_linear
.subsections_via_symbols
