	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shmob_drm_crtc_start_stop
_shmob_drm_crtc_start_stop:             ## @shmob_drm_crtc_start_stop
	.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
	movl	%esi, %r13d
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	_LDCNT2R@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_lcdc_read
	movq	_LDCNT2R_DO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	testl	%r13d, %r13d
	setne	%bl
	movl	(%r15), %esi
	cmovel	%ecx, %edx
	movq	%r14, %rdi
	callq	_lcdc_write
	movq	_LDPMR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_lcdc_read
	movq	_LDPMR_LPS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	andl	(%r12), %eax
	setne	%cl
	andb	%bl, %cl
	orl	%r13d, %eax
	setne	%al
	cmpb	$1, %cl
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	setne	%bl
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_lcdc_read
	jmp	LBB0_1
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_LDDCKSTPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDDCKSTPR_DCKSTP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lcdc_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDCNT2R,4,2                    ## @LDCNT2R
	.comm	_LDCNT2R_DO,4,2                 ## @LDCNT2R_DO
	.comm	_LDPMR,4,2                      ## @LDPMR
	.comm	_LDPMR_LPS,4,2                  ## @LDPMR_LPS
	.comm	_LDDCKSTPR,4,2                  ## @LDDCKSTPR
	.comm	_LDDCKSTPR_DCKSTP,4,2           ## @LDDCKSTPR_DCKSTP
	.no_dead_strip	_shmob_drm_crtc_start_stop
.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_start_stop
_shmob_drm_crtc_start_stop:             ; @shmob_drm_crtc_start_stop
	.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, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x21, _LDCNT2R@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LDCNT2R@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lcdc_read
Lloh2:
	adrp	x8, _LDCNT2R_DO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDCNT2R_DO@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	ldr	w8, [x8]
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	w20, #0
	csel	w2, w8, w9, ne
	mov	x0, x19
	bl	_lcdc_write
Lloh5:
	adrp	x21, _LDPMR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _LDPMR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lcdc_read
Lloh7:
	adrp	x22, _LDPMR_LPS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _LDPMR_LPS@GOTPAGEOFF]
	ldr	w8, [x22]
	ands	w9, w8, w0
	orr	w9, w20, w9
	cmp	w9, #0
	cset	w9, ne
	tst	w8, w0
	ccmp	w20, #0, #4, ne
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cpu_relax
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lcdc_read
	ldr	w9, [x22]
	ands	w8, w9, w0
	orr	w8, w20, w8
	cmp	w8, #0
	cset	w8, ne
	tst	w9, w0
	ccmp	w20, #0, #4, ne
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w8, #0, LBB0_1
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	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_5:
Lloh9:
	adrp	x8, _LDDCKSTPR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDDCKSTPR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _LDDCKSTPR_DCKSTP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDDCKSTPR_DCKSTP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	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	_lcdc_write
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDCNT2R,4,2                    ; @LDCNT2R
	.comm	_LDCNT2R_DO,4,2                 ; @LDCNT2R_DO
	.comm	_LDPMR,4,2                      ; @LDPMR
	.comm	_LDPMR_LPS,4,2                  ; @LDPMR_LPS
	.comm	_LDDCKSTPR,4,2                  ; @LDDCKSTPR
	.comm	_LDDCKSTPR_DCKSTP,4,2           ; @LDDCKSTPR_DCKSTP
	.no_dead_strip	_shmob_drm_crtc_start_stop
.subsections_via_symbols
