	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_set_plane_base_addr
_malidp_set_plane_base_addr:            ## @malidp_set_plane_base_addr
	.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
	movq	%rsi, %r14
	movq	8(%rsi), %rax
	movl	%edx, %ecx
	shll	$4, %ecx
	movslq	%ecx, %rbx
	addq	(%rax), %rbx
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %esi
	callq	_drm_fb_cma_get_gem_obj
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	16(%r14), %esi
	callq	_drm_fb_cma_get_gem_addr
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_3:
	movl	(%r15), %r15d
LBB0_4:
	movl	(%r14), %r12d
	movl	%r15d, %edi
	callq	_lower_32_bits
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_malidp_hw_write
	movl	(%r14), %r14d
	movl	%r15d, %edi
	callq	_upper_32_bits
	addq	$4, %rbx
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malidp_hw_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_malidp_set_plane_base_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_set_plane_base_addr
_malidp_set_plane_base_addr:            ; @malidp_set_plane_base_addr
	.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	x20, x2
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x9, [x1, #8]
	ldr	x22, [x9]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x1, x20
	bl	_drm_fb_cma_get_gem_obj
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.2:
	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
LBB0_3:
	ldr	w1, [x19, #16]
	mov	x2, x20
	bl	_drm_fb_cma_get_gem_addr
	mov	x21, x0
	b	LBB0_5
LBB0_4:
	ldr	w21, [x21]
LBB0_5:
	lsl	w8, w20, #4
	add	x20, x22, w8, sxtw
	ldr	w22, [x19]
	mov	x0, x21
	bl	_lower_32_bits
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	bl	_malidp_hw_write
	ldr	w19, [x19]
	mov	x0, x21
	bl	_upper_32_bits
	mov	x1, x0
	add	x2, x20, #4
	mov	x0, x19
	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
	b	_malidp_hw_write
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_malidp_set_plane_base_addr
.subsections_via_symbols
