	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csr1212_generate_positions
_csr1212_generate_positions:            ## @csr1212_generate_positions
	.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, %r14
	movq	%rsi, 32(%rdi)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	movq	%rsi, %r15
	movl	(%r14), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movq	%rsi, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rcx
	movq	%rbx, %r15
	movl	%r12d, %edx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rcx, %rbx
	testq	%rcx, %rcx
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %r13d
	jge	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rax
	movq	_CSR1212_KV_ID_EXTENDED_ROM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r13d, %rax
	addq	8(%r14), %rax
	movq	%rax, (%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%rbx), %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_WARN_ON
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r12), %edi
	callq	_quads_to_bytes
	addl	%eax, %r13d
	movl	(%r14), %eax
	cmpl	%eax, %r13d
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
LBB0_17:
	movq	%r15, 24(%r14)
	movq	(%r15), %r15
	subq	8(%r14), %r15
	incl	%edi
	callq	_quads_to_bytes
	addq	%r15, %rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_ROM,8,3 ## @CSR1212_KV_ID_EXTENDED_ROM
	.no_dead_strip	_csr1212_generate_positions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csr1212_generate_positions
_csr1212_generate_positions:            ; @csr1212_generate_positions
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	x1, [x0, #32]
	cbz	x1, LBB0_14
; %bb.1:
	mov	x22, x2
	mov	w23, #0
	mov	w24, #0
	ldr	w8, [x19]
Lloh0:
	adrp	x25, _CSR1212_KV_ID_EXTENDED_ROM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CSR1212_KV_ID_EXTENDED_ROM@GOTPAGEOFF]
	mov	x21, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21, #8]
	mov	x20, x21
	mov	x23, x24
	mov	x21, x9
	cbz	x9, LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w8
	b.ge	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, w22, sxtw
	str	x8, [x21]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #32]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x21, #20]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x21, #16]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_WARN_ON
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w24, #1
	bl	_quads_to_bytes
	ldr	w8, [x19]
	add	w22, w22, w0
	cmp	w22, w8
	b.le	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x21
	cbnz	x9, LBB0_3
LBB0_13:
	mov	x21, #0
	b	LBB0_15
LBB0_14:
	mov	x21, #0
	mov	w23, #0
LBB0_15:
	str	x20, [x19, #24]
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	sub	x20, x8, x9
	add	w0, w23, #1
	bl	_quads_to_bytes
	add	x8, x20, x0
	str	x8, [x19, #16]
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_KV_ID_EXTENDED_ROM,8,3 ; @CSR1212_KV_ID_EXTENDED_ROM
	.no_dead_strip	_csr1212_generate_positions
.subsections_via_symbols
