	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdlcd_plane_atomic_update
_hdlcd_plane_atomic_update:             ## @hdlcd_plane_atomic_update
	.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, %rbx
	movq	8(%rdi), %rdi
	movq	8(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	callq	_drm_rect_height
	movq	%rax, %r15
	movq	8(%rbx), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %r12
	movq	_HDLCD_REG_FB_LINE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_hdlcd_write
	movq	_HDLCD_REG_FB_LINE_PITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_hdlcd_write
	movq	_HDLCD_REG_FB_LINE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decq	%r15
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_hdlcd_write
	movq	_HDLCD_REG_FB_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hdlcd_write                    ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDLCD_REG_FB_LINE_LENGTH,4,2   ## @HDLCD_REG_FB_LINE_LENGTH
	.comm	_HDLCD_REG_FB_LINE_PITCH,4,2    ## @HDLCD_REG_FB_LINE_PITCH
	.comm	_HDLCD_REG_FB_LINE_COUNT,4,2    ## @HDLCD_REG_FB_LINE_COUNT
	.comm	_HDLCD_REG_FB_BASE,4,2          ## @HDLCD_REG_FB_BASE
	.no_dead_strip	_hdlcd_plane_atomic_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdlcd_plane_atomic_update
_hdlcd_plane_atomic_update:             ; @hdlcd_plane_atomic_update
	.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, x0
	ldr	x0, [x0, #8]
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_2
; %bb.1:
	bl	_drm_rect_height
	mov	x21, x0
	ldr	x1, [x20, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_drm_fb_cma_get_gem_addr
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _HDLCD_REG_FB_LINE_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDLCD_REG_FB_LINE_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x2, [x8]
	mov	x0, x20
	bl	_hdlcd_write
Lloh3:
	adrp	x8, _HDLCD_REG_FB_LINE_PITCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDLCD_REG_FB_LINE_PITCH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x2, [x8]
	mov	x0, x20
	bl	_hdlcd_write
Lloh6:
	adrp	x8, _HDLCD_REG_FB_LINE_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDLCD_REG_FB_LINE_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x2, x21, #1
	mov	x0, x20
	bl	_hdlcd_write
Lloh9:
	adrp	x8, _HDLCD_REG_FB_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDLCD_REG_FB_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	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	_hdlcd_write
LBB0_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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDLCD_REG_FB_LINE_LENGTH,4,2   ; @HDLCD_REG_FB_LINE_LENGTH
	.comm	_HDLCD_REG_FB_LINE_PITCH,4,2    ; @HDLCD_REG_FB_LINE_PITCH
	.comm	_HDLCD_REG_FB_LINE_COUNT,4,2    ; @HDLCD_REG_FB_LINE_COUNT
	.comm	_HDLCD_REG_FB_BASE,4,2          ; @HDLCD_REG_FB_BASE
	.no_dead_strip	_hdlcd_plane_atomic_update
.subsections_via_symbols
