	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_device_check_smu_prv_buffer_size
_amdgpu_device_check_smu_prv_buffer_size: ## @amdgpu_device_check_smu_prv_buffer_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_amdgpu_smu_memory_pool_size@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	callq	_si_meminfo
	movl	-32(%rbp), %ecx
	imull	-24(%rbp), %ecx
	movl	(%rbx), %eax
	leal	-1(%rax), %edx
	cmpl	$1, %edx
	jbe	LBB0_2
## %bb.4:
	cmpl	$8, %eax
	je	LBB0_2
## %bb.5:
	cmpl	$4, %eax
	jne	LBB0_6
LBB0_2:
	cmpl	$-1207959552, %ecx              ## imm = 0xB8000000
	jge	LBB0_3
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_3:
	shll	$28, %eax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	_DRM_WARN
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, (%r14)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_smu_memory_pool_size,4,2 ## @amdgpu_smu_memory_pool_size
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Smu memory pool size not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"No enough system memory\n"

	.no_dead_strip	_amdgpu_device_check_smu_prv_buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_device_check_smu_prv_buffer_size
_amdgpu_device_check_smu_prv_buffer_size: ; @amdgpu_device_check_smu_prv_buffer_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _amdgpu_smu_memory_pool_size@GOTPAGE
Lloh1:
	ldr	x20, [x20, _amdgpu_smu_memory_pool_size@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x0, sp
	bl	_si_meminfo
	ldr	w8, [sp, #8]
	ldr	w9, [sp]
	mul	w9, w9, w8
	ldr	w8, [x20]
	sub	w10, w8, #1
	cmp	w10, #1
	b.ls	LBB0_3
; %bb.2:
	cmp	w8, #8
	ccmp	w8, #4, #4, ne
	b.ne	LBB0_6
LBB0_3:
	mov	w10, #-1207959552
	cmp	w9, w10
	b.ge	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	lsl	w8, w8, #28
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_DRM_WARN
	mov	w8, #0
LBB0_8:
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_smu_memory_pool_size,4,2 ; @amdgpu_smu_memory_pool_size
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Smu memory pool size not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"No enough system memory\n"

	.no_dead_strip	_amdgpu_device_check_smu_prv_buffer_size
.subsections_via_symbols
