	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vf_error_put            ## -- Begin function amdgpu_vf_error_put
	.p2align	4, 0x90
_amdgpu_vf_error_put:                   ## @amdgpu_vf_error_put
	.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	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_amdgpu_sriov_vf
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_AMDGIM_ERROR_CATEGORY_VF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_AMDGIM_ERROR_CODE
	movq	%rax, %r12
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	movq	_AMDGPU_VF_ERROR_ENTRY_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	24(%rbx), %rax
	movslq	%edx, %rcx
	movq	%r12, (%rax,%rcx,8)
	movq	16(%rbx), %rax
	movq	%r15, (%rax,%rcx,8)
	movq	8(%rbx), %rax
	movl	%r14d, (%rax,%rcx,4)
	incl	(%rbx)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGIM_ERROR_CATEGORY_VF,4,2   ## @AMDGIM_ERROR_CATEGORY_VF
	.comm	_AMDGPU_VF_ERROR_ENTRY_SIZE,4,2 ## @AMDGPU_VF_ERROR_ENTRY_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vf_error_put            ; -- Begin function amdgpu_vf_error_put
	.p2align	2
_amdgpu_vf_error_put:                   ; @amdgpu_vf_error_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_amdgpu_sriov_vf
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AMDGIM_ERROR_CATEGORY_VF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGIM_ERROR_CATEGORY_VF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_AMDGIM_ERROR_CODE
	mov	x22, x0
	add	x23, x19, #4
	mov	x0, x23
	bl	_mutex_lock
Lloh3:
	adrp	x8, _AMDGPU_VF_ERROR_ENTRY_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_VF_ERROR_ENTRY_SIZE@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh5:
	ldr	w8, [x8]
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
	ldr	x9, [x19, #24]
	sbfiz	x10, x8, #3, #32
	str	x22, [x9, x10]
	ldr	x9, [x19, #16]
	str	x21, [x9, x10]
	ldr	x9, [x19, #8]
	str	w20, [x9, w8, sxtw #2]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGIM_ERROR_CATEGORY_VF,4,2   ; @AMDGIM_ERROR_CATEGORY_VF
	.comm	_AMDGPU_VF_ERROR_ENTRY_SIZE,4,2 ; @AMDGPU_VF_ERROR_ENTRY_SIZE
.subsections_via_symbols
