	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_de_set_plane_pitches
_malidp_de_set_plane_pitches:           ## @malidp_de_set_plane_pitches
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	cmpl	$3, %esi
	jne	LBB0_3
## %bb.2:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_MALIDP_DEVICE_LV_HAS_3_STRIDES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	cmpl	$1, %ecx
	movl	$3, %esi
	sbbl	$0, %esi
	jmp	LBB0_4
LBB0_3:
	testl	%esi, %esi
	jle	LBB0_6
LBB0_4:
	movl	%esi, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_drm_format_info_block_height
	movq	(%r15), %rcx
	movq	8(%r15), %rdi
	imull	(%r14,%rbx), %eax
	movl	%ebx, %edx
	andl	$-4, %edx
	addq	8(%rcx), %rdx
	addq	(%rcx), %rdx
	movl	%eax, %esi
	callq	_malidp_hw_write
	addq	$4, %rbx
	incl	%r13d
	decq	%r12
	jne	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MALIDP_DEVICE_LV_HAS_3_STRIDES,4,2 ## @MALIDP_DEVICE_LV_HAS_3_STRIDES
	.no_dead_strip	_malidp_de_set_plane_pitches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_de_set_plane_pitches
_malidp_de_set_plane_pitches:           ; @malidp_de_set_plane_pitches
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	cmp	w1, #3
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MALIDP_DEVICE_LV_HAS_3_STRIDES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MALIDP_DEVICE_LV_HAS_3_STRIDES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #2
	cinc	w1, w8, ne
	b	LBB0_4
LBB0_3:
	cmp	w1, #1
	b.lt	LBB0_6
LBB0_4:
	mov	w21, #0
	mov	x22, #0
	mov	w23, w1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_drm_format_info_block_height
	ldr	w8, [x19, x22]
	mul	w1, w8, w0
	ldp	x8, x0, [x20]
	ldp	x8, x9, [x8]
	and	x10, x22, #0xfffffffc
	add	x9, x9, x10
	add	x2, x9, x8
	bl	_malidp_hw_write
	add	x22, x22, #4
	add	w21, w21, #1
	subs	x23, x23, #1
	b.ne	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MALIDP_DEVICE_LV_HAS_3_STRIDES,4,2 ; @MALIDP_DEVICE_LV_HAS_3_STRIDES
	.no_dead_strip	_malidp_de_set_plane_pitches
.subsections_via_symbols
