	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gmc_filter_faults       ## -- Begin function amdgpu_gmc_filter_faults
	.p2align	4, 0x90
_amdgpu_gmc_filter_faults:              ## @amdgpu_gmc_filter_faults
	.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	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_AMDGPU_GMC_FAULT_TIMEOUT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	incl	%esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_max
	movl	%eax, %ebx
	subl	(%r12), %ebx
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	shlq	$4, %rax
	movl	$1, %r12d
	cmpl	%ebx, (%rcx,%rax)
	jge	LBB0_6
## %bb.1:
	shll	$4, %r13d
	orl	%r14d, %r13d
	movq	_AMDGPU_GMC_FAULT_HASH_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_hash_64
	movq	8(%r15), %r8
	movq	16(%r15), %rdx
	movq	(%r8,%rax,8), %r9
	movq	%r9, %rdi
	shlq	$4, %rdi
	leaq	(%rdx,%rdi), %rcx
	movl	(%rdx,%rdi), %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %edi
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, 4(%rcx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rsi
	shlq	$4, %rsi
	leaq	(%rdx,%rsi), %rcx
	movl	(%rdx,%rsi), %esi
	cmpl	%edi, %esi
	movl	%esi, %edi
	jl	LBB0_2
LBB0_5:
	movq	(%r15), %rcx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movl	%r13d, 4(%rdx,%rsi)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, (%rdx,%rsi)
	movq	%r9, 8(%rdx,%rsi)
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r15)
	movq	%rcx, (%r8,%rax,8)
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GMC_FAULT_TIMEOUT,4,2   ## @AMDGPU_GMC_FAULT_TIMEOUT
	.comm	_AMDGPU_GMC_FAULT_HASH_ORDER,4,2 ## @AMDGPU_GMC_FAULT_HASH_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gmc_filter_faults       ; -- Begin function amdgpu_gmc_filter_faults
	.p2align	2
_amdgpu_gmc_filter_faults:              ; @amdgpu_gmc_filter_faults
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _AMDGPU_GMC_FAULT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AMDGPU_GMC_FAULT_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, #1
	mov	x0, x3
	bl	_max
	ldr	w8, [x23]
	ldr	x9, [x19, #16]
	ldr	x10, [x19]
	lsl	x10, x10, #4
	ldr	w9, [x9, x10]
	sub	w23, w0, w8
	cmp	w9, w23
	b.ge	LBB0_6
; %bb.1:
	orr	w21, w21, w22, lsl #4
Lloh2:
	adrp	x8, _AMDGPU_GMC_FAULT_HASH_ORDER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AMDGPU_GMC_FAULT_HASH_ORDER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hash_64
	ldp	x9, x11, [x19, #8]
	ldr	x10, [x9, x0, lsl #3]
	add	x8, x11, x10, lsl #4
	ldr	w12, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, w23
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w13, [x8, #4]
	cmp	w13, w21
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #8]
	add	x8, x11, x8, lsl #4
	ldr	w13, [x8]
	cmp	w13, w12
	mov	x12, x13
	b.lt	LBB0_2
LBB0_5:
	mov	w8, #0
	ldr	x12, [x19]
	add	x11, x11, x12, lsl #4
	stp	w20, w21, [x11]
	str	x10, [x11, #8]
	add	x10, x12, #1
	str	x10, [x19]
	str	x12, [x9, x0, lsl #3]
	b	LBB0_7
LBB0_6:
	mov	w8, #1
LBB0_7:
	mov	x0, x8
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GMC_FAULT_TIMEOUT,4,2   ; @AMDGPU_GMC_FAULT_TIMEOUT
	.comm	_AMDGPU_GMC_FAULT_HASH_ORDER,4,2 ; @AMDGPU_GMC_FAULT_HASH_ORDER
.subsections_via_symbols
