	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpddr_point
_lpddr_point:                           ## @lpddr_point
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	movq	(%rcx), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r10
	movq	(%r10), %rcx
	movq	%rsi, %rbx
	sarq	%cl, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	addq	%rdx, %rsi
	cmpq	(%rdi), %rsi
	jbe	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_3
LBB0_4:
	movslq	%ebx, %rdi
	leaq	(%rdi,%rdi,2), %r11
	leaq	(,%r11,8), %rbx
	addq	16(%r10), %rbx
	movl	%edi, %esi
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %esi
	movslq	%esi, %rcx
	subq	%rcx, %r15
	addq	(%rbx), %rax
	addq	%r15, %rax
	movq	%rax, (%r8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	testq	%r12, %r12
	je	LBB0_12
## %bb.5:
	decq	%rdi
	leaq	24(,%r11,8), %r8
	xorl	%ecx, %ecx
	movq	_FL_POINT@GOTPCREL(%rip), %r13
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	8(%r10), %rax
	incq	%rdi
	cmpq	%rax, %rdi
	jge	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rcx
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	(%r10), %r14
	movl	16(%rbx), %edi
	callq	_spin_lock
	movl	(%r13), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_get_chip
	movl	%eax, %r13d
	movl	16(%rbx), %edi
	callq	_spin_unlock
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r12,%r15), %rax
	decq	%rax
	movl	%r14d, %ecx
	shrq	%cl, %rax
	movl	$1, %esi
	shll	%cl, %esi
	movslq	%esi, %rsi
	subq	%r15, %rsi
	testq	%rax, %rax
	cmoveq	%r12, %rsi
	movq	_FL_POINT@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 12(%rbx)
	incl	8(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rsi, (%rax)
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movzbl	(%r10), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rbx
	leaq	24(%rcx), %r8
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	addq	16(%r10), %rbx
	xorl	%r15d, %r15d
	subq	%rsi, %r12
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_3
LBB0_12:
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FL_POINT,4,2                   ## @FL_POINT
	.no_dead_strip	_lpddr_point
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpddr_point
_lpddr_point:                           ; @lpddr_point
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #8]
	stp	x3, x8, [sp]                    ; 16-byte Folded Spill
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x2
	ldr	x9, [x0]
	add	x10, x2, x1
	cmp	x10, x9
	b.ls	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_3:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x24, [x9, #8]
	ldr	x10, [x24]
	asr	x9, x1, x10
	ldr	x11, [x24, #16]
	mov	w12, #24
	smaddl	x22, w9, w12, x11
	lsl	w10, w9, w10
	sub	x25, x1, w10, sxtw
	ldr	x10, [x22]
	add	x8, x8, x10
	add	x8, x8, x25
	str	x8, [x4]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	xzr, [x8]
	cbz	x20, LBB0_11
; %bb.4:
	mov	x26, #0
	sxtw	x8, w9
	sub	x27, x8, #1
	mov	w9, #24
	orr	x10, xzr, #0x18
	madd	x28, x8, x9, x10
Lloh3:
	adrp	x19, _FL_POINT@GOTPAGE
Lloh4:
	ldr	x19, [x19, _FL_POINT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x24, #8]
	add	x27, x27, #1
	cmp	x27, x8
	b.ge	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	cbz	x26, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x8, x26
	b.eq	LBB0_9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x8
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x24]
	ldr	w0, [x22, #16]
	bl	_spin_lock
	ldr	w2, [x19]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	bl	_get_chip
	mov	x23, x0
	ldr	w0, [x22, #16]
	bl	_spin_unlock
	cbnz	w23, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x22, #8]
	add	w9, w9, #1
	stp	w9, w8, [x22, #8]
	ldr	x8, [x24, #16]
	add	x22, x8, x28
	add	x28, x28, #24
	add	x8, x20, x25
	sub	x8, x8, #1
	lsr	x8, x8, x21
	mov	w11, #1
	lsl	w9, w11, w21
	sxtw	x9, w9
	sub	x9, x9, x25
	cmp	x8, #0
	csel	x8, x20, x9, eq
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	ldr	x9, [x10]
	add	x9, x9, x8
	str	x9, [x10]
	ldr	w9, [x24]
	lsl	w9, w11, w9
	add	x26, x26, w9, sxtw
	mov	x25, #0
	subs	x20, x20, x8
	b.ne	LBB0_5
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FL_POINT,4,2                   ; @FL_POINT
	.no_dead_strip	_lpddr_point
.subsections_via_symbols
