	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function agp_find_max
_agp_find_max:                          ## @agp_find_max
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_totalram_pages@GOTPCREL(%rip), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdx
	movl	$20, %ecx
	subl	(%rdx), %ecx
	movl	(%rax), %eax
	sarl	%cl, %eax
	movslq	%eax, %r9
	movq	_maxes_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rsi
	movl	$1, %edi
	cmpq	%r9, %rsi
	jge	LBB0_8
## %bb.1:
	movq	32(%rax), %rsi
	movl	$2, %edi
	cmpq	%r9, %rsi
	jge	LBB0_8
## %bb.2:
	movq	48(%rax), %rsi
	movl	$3, %edi
	cmpq	%r9, %rsi
	jge	LBB0_8
## %bb.3:
	movq	64(%rax), %rsi
	movl	$4, %edi
	cmpq	%r9, %rsi
	jge	LBB0_8
## %bb.4:
	movq	80(%rax), %rsi
	movl	$5, %edi
	cmpq	%r9, %rsi
	jge	LBB0_8
## %bb.5:
	movq	96(%rax), %rsi
	movl	$6, %edi
	cmpq	%r9, %rsi
	jge	LBB0_8
## %bb.6:
	movq	112(%rax), %rsi
	movl	$7, %edi
	cmpq	%r9, %rsi
	jge	LBB0_8
## %bb.7:
	movq	128(%rax), %rsi
	movl	$8, %edi
LBB0_8:
	shlq	$4, %rdi
	movq	-16(%rax,%rdi), %rdx
	movq	-8(%rax,%rdi), %r8
	subq	%rdx, %r9
	movq	8(%rax,%rdi), %rax
	subq	%r8, %rax
	imulq	%r9, %rax
	subq	%rdx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	cqto
	idivq	%rsi
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	addq	%r8, %rax
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_totalram_pages,4,2             ## @totalram_pages
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_maxes_table,8,3                ## @maxes_table
	.no_dead_strip	_agp_find_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function agp_find_max
_agp_find_max:                          ; @agp_find_max
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _totalram_pages@GOTPAGE
Lloh1:
	ldr	x8, [x8, _totalram_pages@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w10, #20
	sub	w8, w10, w8
	asr	w9, w9, w8
	sxtw	x9, w9
Lloh6:
	adrp	x10, _maxes_table@GOTPAGE
Lloh7:
	ldr	x10, [x10, _maxes_table@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x11, [x10, #16]
	cmp	x11, x9
	b.ge	LBB0_8
; %bb.1:
	ldr	x11, [x10, #32]
	cmp	x11, x9
	b.ge	LBB0_9
; %bb.2:
	ldr	x11, [x10, #48]
	cmp	x11, x9
	b.ge	LBB0_10
; %bb.3:
	ldr	x11, [x10, #64]
	cmp	x11, x9
	b.ge	LBB0_11
; %bb.4:
	ldr	x11, [x10, #80]
	cmp	x11, x9
	b.ge	LBB0_12
; %bb.5:
	ldr	x11, [x10, #96]
	cmp	x11, x9
	b.ge	LBB0_13
; %bb.6:
	ldr	x11, [x10, #112]
	cmp	x11, x9
	b.ge	LBB0_14
; %bb.7:
	ldr	x11, [x10, #128]
	mov	w12, #8
	b	LBB0_15
LBB0_8:
	mov	w12, #1
	b	LBB0_15
LBB0_9:
	mov	w12, #2
	b	LBB0_15
LBB0_10:
	mov	w12, #3
	b	LBB0_15
LBB0_11:
	mov	w12, #4
	b	LBB0_15
LBB0_12:
	mov	w12, #5
	b	LBB0_15
LBB0_13:
	mov	w12, #6
	b	LBB0_15
LBB0_14:
	mov	w12, #7
LBB0_15:
	add	x10, x10, x12, lsl #4
	ldp	x13, x12, [x10, #-16]
	sub	x9, x9, x13
	ldr	x10, [x10, #8]
	sub	x10, x10, x12
	mul	x9, x10, x9
	sub	x10, x11, x13
	sdiv	x9, x9, x10
	add	x9, x9, x12
	lsl	x0, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_totalram_pages,4,2             ; @totalram_pages
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_maxes_table,8,3                ; @maxes_table
	.no_dead_strip	_agp_find_max
.subsections_via_symbols
