	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __get_pasid_state_ptr
___get_pasid_state_ptr:                 ## @__get_pasid_state_ptr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r13d
	leal	(%r13,%r13,8), %ecx
	movl	%esi, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r12d
	andl	$511, %r12d                     ## imm = 0x1FF
	shlq	$3, %r12
	addq	8(%rdi), %r12
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	leal	-9(%r13,%r13,8), %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	andl	$511, %edx                      ## imm = 0x1FF
	addl	$-9, %ebx
	leaq	(%rax,%rdx,8), %r12
	decl	%r13d
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_2
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	___get_pasid_state_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __get_pasid_state_ptr
___get_pasid_state_ptr:                 ; @__get_pasid_state_ptr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w22, [x0]
	ldr	x9, [x0, #8]
	add	w8, w22, w22, lsl #3
	asr	w10, w1, w8
	and	w10, w10, #0x1ff
	add	x21, x9, w10, uxtw #3
	cbz	w22, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	sub	w23, w8, #9
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	asr	w8, w20, w23
	and	w8, w8, #0x1ff
	add	x21, x0, w8, uxtw #3
	sub	w23, w23, #9
	sub	w22, w22, #1
	cbz	w22, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w19, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	bl	_get_zeroed_page
	str	x0, [x21]
	cbnz	x0, LBB0_2
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	___get_pasid_state_ptr
.subsections_via_symbols
