	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_bapm_vddc_vid_sidd
_ci_populate_bapm_vddc_vid_sidd:        ## @ci_populate_bapm_vddc_vid_sidd
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_ci_get_pi
	cmpq	$0, 16(%r13)
	je	LBB0_1
## %bb.2:
	movl	8(%r13), %ecx
	cmpl	$9, %ecx
	jge	LBB0_1
## %bb.3:
	cmpl	24(%r13), %ecx
	jne	LBB0_1
## %bb.4:
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.5:
	movq	16(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rax,%rbx), %edi
	callq	_ci_convert_to_vid
	movl	%eax, (%r12,%r15,4)
	movq	16(%r13), %rax
	movl	(%rax,%rbx), %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_ci_convert_to_vid
	movl	%eax, (%r14,%r15,4)
	incq	%r15
	movslq	8(%r13), %rax
	addq	$24, %rbx
	cmpq	%rax, %r15
	jae	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ATOM_PP_PLATFORM_CAP_EVV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%r13), %rax
	testl	%ecx, (%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	20(%rax,%rbx), %edi
	callq	_ci_convert_to_vid
	movl	%eax, (%r12,%r15,4)
	movq	16(%r13), %rax
	movl	16(%rax,%rbx), %edi
	callq	_ci_convert_to_vid
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	movq	16(%r13), %rax
	movl	12(%rax,%rbx), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATOM_PP_PLATFORM_CAP_EVV,4,2   ## @ATOM_PP_PLATFORM_CAP_EVV
	.no_dead_strip	_ci_populate_bapm_vddc_vid_sidd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_bapm_vddc_vid_sidd
_ci_populate_bapm_vddc_vid_sidd:        ; @ci_populate_bapm_vddc_vid_sidd
	.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	x19, x0
	bl	_ci_get_pi
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #9
	b.ge	LBB0_9
; %bb.2:
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.3:
	cbz	w8, LBB0_11
; %bb.4:
	mov	x20, #0
	mov	x21, #0
	ldp	x23, x22, [x0, #8]
	ldr	x24, [x0]
Lloh0:
	adrp	x25, _ATOM_PP_PLATFORM_CAP_EVV@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ATOM_PP_PLATFORM_CAP_EVV@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x8, #8]
	bl	_ci_convert_to_vid
	str	w0, [x23, x21, lsl #2]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20]
	mov	x26, x22
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_ci_convert_to_vid
	str	w0, [x26, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #24
	cmp	x21, x8
	b.hs	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	ldr	w10, [x25]
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	tst	w10, w9
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x8, #20]
	bl	_ci_convert_to_vid
	lsl	x26, x21, #2
	str	w0, [x23, x26]
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	ldr	w0, [x8, #16]
	bl	_ci_convert_to_vid
	str	w0, [x22, x26]
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	ldr	w0, [x8, #12]
	mov	x26, x24
	b	LBB0_6
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATOM_PP_PLATFORM_CAP_EVV,4,2   ; @ATOM_PP_PLATFORM_CAP_EVV
	.no_dead_strip	_ci_populate_bapm_vddc_vid_sidd
.subsections_via_symbols
