	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_dev_is_large_bar           ## -- Begin function kfd_dev_is_large_bar
	.p2align	4, 0x90
_kfd_dev_is_large_bar:                  ## @kfd_dev_is_large_bar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_debug_largebar@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	$1, %eax
	jmp	LBB0_4
LBB0_2:
	movq	8(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_4
## %bb.3:
	movl	(%rdi), %edi
	leaq	-16(%rbp), %rsi
	callq	_amdgpu_amdkfd_get_local_mem_info
	cmpq	$0, -16(%rbp)
	sete	%al
	cmpq	$0, -8(%rbp)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_largebar,8,3             ## @debug_largebar
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Simulate large-bar allocation on non large-bar machine\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_dev_is_large_bar           ; -- Begin function kfd_dev_is_large_bar
	.p2align	2
_kfd_dev_is_large_bar:                  ; @kfd_dev_is_large_bar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _debug_largebar@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_largebar@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x0]
	mov	x1, sp
	bl	_amdgpu_amdkfd_get_local_mem_info
	ldp	x8, x9, [sp]
	cmp	x8, #0
	ccmp	x9, #0, #4, eq
	cset	w0, gt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_largebar,8,3             ; @debug_largebar
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Simulate large-bar allocation on non large-bar machine\n"

.subsections_via_symbols
