	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_vsi_setup_vector_base
_ice_vsi_setup_vector_base:             ## @ice_vsi_setup_vector_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_ICE_VSI_VF@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %r15
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.2:
	movq	8(%r15), %rdi
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	movq	24(%rbx), %r12
	movl	16(%r15), %esi
	movl	16(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ice_get_res
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	subl	%r12d, (%r15)
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r15), %rdi
	movl	12(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movl	%eax, %r8d
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_VSI_VF,8,3                 ## @ICE_VSI_VF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VSI %d has non-zero base vector %d\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get tracking for %d vectors for VSI %d, err=%d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ice_vsi_setup_vector_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_vsi_setup_vector_base
_ice_vsi_setup_vector_base:             ; @ice_vsi_setup_vector_base
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ICE_VSI_VF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_VSI_VF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w3, [x0, #8]
	cbz	w3, LBB0_5
; %bb.3:
	ldr	x0, [x20, #8]
	ldr	w2, [x19, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	x21, [x19, #24]
	ldr	w1, [x20, #16]
	ldr	w3, [x19, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_ice_get_res
	str	w0, [x19, #8]
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	w0, #0
	ldr	w8, [x20]
	sub	w8, w8, w21
	str	w8, [x20]
LBB0_7:
	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_8:
	mov	x4, x0
	ldr	x0, [x20, #8]
	ldr	w3, [x19, #12]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_VSI_VF,8,3                 ; @ICE_VSI_VF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VSI %d has non-zero base vector %d\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get tracking for %d vectors for VSI %d, err=%d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ice_vsi_setup_vector_base
.subsections_via_symbols
