	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_ras_enable_all_features
_amdgpu_ras_enable_all_features:        ## @amdgpu_ras_enable_all_features
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_amdgpu_ras_get_context
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_AMDGPU_RAS_BLOCK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.1:
	movq	_AMDGPU_RAS_ERROR__NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -56(%rbp)
	movl	%r13d, -52(%rbp)
	movq	$0, -48(%rbp)
	movl	%ebx, %edi
	callq	_ras_block_str
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_strcpy
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	___amdgpu_ras_feature_enable
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_amdgpu_ras_feature_enable
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_2
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_RAS_BLOCK_COUNT,4,2     ## @AMDGPU_RAS_BLOCK_COUNT
	.comm	_AMDGPU_RAS_ERROR__NONE,4,2     ## @AMDGPU_RAS_ERROR__NONE
	.no_dead_strip	_amdgpu_ras_enable_all_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_ras_enable_all_features
_amdgpu_ras_enable_all_features:        ; @amdgpu_ras_enable_all_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_amdgpu_ras_get_context
	mov	x21, x0
Lloh0:
	adrp	x8, _AMDGPU_RAS_BLOCK_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_RAS_BLOCK_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w22, #0
Lloh3:
	adrp	x8, _AMDGPU_RAS_ERROR__NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_RAS_ERROR__NONE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_amdgpu_ras_feature_enable
	cbnz	x0, LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	cmp	w23, w22
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	w22, w24, [sp]
	str	xzr, [sp, #8]
	mov	x0, x22
	bl	_ras_block_str
	mov	x1, x0
	mov	w0, #0
	bl	_strcpy
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	cbz	w19, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	___amdgpu_ras_feature_enable
	cbz	x0, LBB0_3
LBB0_6:
	ldr	w0, [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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_RAS_BLOCK_COUNT,4,2     ; @AMDGPU_RAS_BLOCK_COUNT
	.comm	_AMDGPU_RAS_ERROR__NONE,4,2     ; @AMDGPU_RAS_ERROR__NONE
	.no_dead_strip	_amdgpu_ras_enable_all_features
.subsections_via_symbols
