	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_amdkfd_init             ## -- Begin function amdgpu_amdkfd_init
	.p2align	4, 0x90
_amdgpu_amdkfd_init:                    ## @amdgpu_amdkfd_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	leaq	-24(%rbp), %rdi
	callq	_si_meminfo
	movq	-8(%rbp), %rax
	subq	-16(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	_amdgpu_amdkfd_total_mem_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_amdkfd_total_mem_size,8,3 ## @amdgpu_amdkfd_total_mem_size
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_amdkfd_init             ; -- Begin function amdgpu_amdkfd_init
	.p2align	2
_amdgpu_amdkfd_init:                    ; @amdgpu_amdkfd_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	add	x0, sp, #8
	bl	_si_meminfo
	ldp	x9, x8, [sp, #16]
	ldr	x10, [sp, #8]
	sub	x8, x8, x9
	mul	x8, x10, x8
Lloh0:
	adrp	x9, _amdgpu_amdkfd_total_mem_size@GOTPAGE
Lloh1:
	ldr	x9, [x9, _amdgpu_amdkfd_total_mem_size@GOTPAGEOFF]
Lloh2:
	str	x8, [x9]
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_amdkfd_total_mem_size,8,3 ; @amdgpu_amdkfd_total_mem_size
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
