	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_set_pasid_limit            ## -- Begin function kfd_set_pasid_limit
	.p2align	4, 0x90
_kfd_set_pasid_limit:                   ## @kfd_set_pasid_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpl	$2, %edi
	jb	LBB0_6
## %bb.1:
	movq	_pasid_bits@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movl	%edi, %esi
	shrl	%cl, %esi
	testl	%esi, %esi
	je	LBB0_2
LBB0_5:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_kfd2kgd@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_3
LBB0_6:
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ecx
	movl	%edi, %eax
	shrl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%ecx, (%rdx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_pasid_bits,4,2                 ## @pasid_bits
	.comm	_kfd2kgd,8,3                    ## @kfd2kgd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_set_pasid_limit            ; -- Begin function kfd_set_pasid_limit
	.p2align	2
_kfd_set_pasid_limit:                   ; @kfd_set_pasid_limit
	.cfi_startproc
; %bb.0:
	cmp	w0, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh0:
	adrp	x8, _pasid_bits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pasid_bits@GOTPAGEOFF]
	ldr	w9, [x8]
	lsr	w10, w0, w9
	cbz	w10, LBB0_4
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
Lloh2:
	adrp	x10, _kfd2kgd@GOTPAGE
Lloh3:
	ldr	x10, [x10, _kfd2kgd@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cbz	x10, LBB0_6
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w9, #1
	lsr	w10, w0, w9
	cbz	w10, LBB0_6
; %bb.7:
	str	w9, [x8]
	mov	w0, #1
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pasid_bits,4,2                 ; @pasid_bits
	.comm	_kfd2kgd,8,3                    ; @kfd2kgd
.subsections_via_symbols
