	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shmob_drm_crtc_update_base
_shmob_drm_crtc_update_base:            ## @shmob_drm_crtc_update_base
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	movl	16(%rdi), %edx
	movl	20(%rdi), %esi
	callq	_shmob_drm_crtc_compute_base
	movq	_LDSA1R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_lcdc_write_mirror
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_LDSA2R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_lcdc_write_mirror
LBB0_2:
	movq	_LDRCNTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lcdc_read
	movq	_LDRCNTR_MRS@GOTPCREL(%rip), %rcx
	xorl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lcdc_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDSA1R,4,2                     ## @LDSA1R
	.comm	_LDSA2R,4,2                     ## @LDSA2R
	.comm	_LDRCNTR,4,2                    ## @LDRCNTR
	.comm	_LDRCNTR_MRS,4,2                ## @LDRCNTR_MRS
	.no_dead_strip	_shmob_drm_crtc_update_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shmob_drm_crtc_update_base
_shmob_drm_crtc_update_base:            ; @shmob_drm_crtc_update_base
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	ldp	w2, w1, [x0, #16]
	bl	_shmob_drm_crtc_compute_base
Lloh0:
	adrp	x8, _LDSA1R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDSA1R@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lcdc_write_mirror
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LDSA2R@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDSA2R@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_lcdc_write_mirror
LBB0_2:
Lloh6:
	adrp	x8, _LDRCNTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDRCNTR@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_lcdc_read
Lloh9:
	adrp	x8, _LDRCNTR_MRS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDRCNTR_MRS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	eor	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lcdc_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDSA1R,4,2                     ; @LDSA1R
	.comm	_LDSA2R,4,2                     ; @LDSA2R
	.comm	_LDRCNTR,4,2                    ; @LDRCNTR
	.comm	_LDRCNTR_MRS,4,2                ; @LDRCNTR_MRS
	.no_dead_strip	_shmob_drm_crtc_update_base
.subsections_via_symbols
