	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vf_error_trans_all      ## -- Begin function amdgpu_vf_error_trans_all
	.p2align	4, 0x90
_amdgpu_vf_error_trans_all:             ## @amdgpu_vf_error_trans_all
	.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
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r13
	callq	_amdgpu_sriov_vf
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.4:
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r13), %edx
	movl	4(%r13), %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movq	_AMDGPU_VF_ERROR_ENTRY_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	cmpl	%ecx, %esi
	jle	LBB0_6
## %bb.5:
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, 4(%r13)
LBB0_6:
	cmpl	%edx, %eax
	jge	LBB0_10
## %bb.7:
	movq	_IDH_LOG_VF_ERROR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cltd
	idivl	%ecx
	movq	24(%r13), %rax
	movq	32(%r13), %rcx
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %edi
	movl	(%rax,%rbx,4), %esi
	callq	_AMDGIM_ERROR_CODE_FLAGS_TO_MAILBOX
	movq	8(%r13), %rcx
	movq	40(%r13), %r8
	movl	(%rcx,%rbx,4), %ecx
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	*(%r8)
	movl	4(%r13), %eax
	incl	%eax
	movl	%eax, 4(%r13)
	cmpl	(%r13), %eax
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %ecx
	jmp	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_VF_ERROR_ENTRY_SIZE,4,2 ## @AMDGPU_VF_ERROR_ENTRY_SIZE
	.comm	_IDH_LOG_VF_ERROR,4,2           ## @IDH_LOG_VF_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vf_error_trans_all      ; -- Begin function amdgpu_vf_error_trans_all
	.p2align	2
_amdgpu_vf_error_trans_all:             ; @amdgpu_vf_error_trans_all
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	bl	_amdgpu_sriov_vf
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.4:
	add	x20, x19, #16
	mov	x0, x20
	bl	_mutex_lock
	ldp	w10, w8, [x19]
Lloh0:
	adrp	x21, _AMDGPU_VF_ERROR_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AMDGPU_VF_ERROR_ENTRY_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	sub	w11, w10, w8
	cmp	w11, w9
	b.le	LBB0_6
; %bb.5:
	sub	w8, w10, w9
	str	w8, [x19, #4]
LBB0_6:
	cmp	w8, w10
	b.ge	LBB0_11
; %bb.7:
Lloh2:
	adrp	x22, _IDH_LOG_VF_ERROR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IDH_LOG_VF_ERROR@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	sbfiz	x23, x8, #2, #32
	ldp	x9, x8, [x19, #24]
	ldr	w0, [x8, x23]
	ldr	w1, [x9, x23]
	bl	_AMDGIM_ERROR_CODE_FLAGS_TO_MAILBOX
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w3, [x8, x23]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	ldp	w9, w8, [x19]
	add	w8, w8, #1
	str	w8, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x21]
	b	LBB0_8
LBB0_10:
	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
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_VF_ERROR_ENTRY_SIZE,4,2 ; @AMDGPU_VF_ERROR_ENTRY_SIZE
	.comm	_IDH_LOG_VF_ERROR,4,2           ; @IDH_LOG_VF_ERROR
.subsections_via_symbols
