	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_table
_alloc_table:                           ## @alloc_table
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	leaq	16(%rdi), %r15
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_sg_alloc_table
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	imulq	%r14, %rdi
	callq	_overflows_type
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	_PFN_BIAS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, (%rbx)
	movq	24(%rbx), %rdi
	testq	%r14, %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_pfn_to_page
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	imulq	%r13, %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_sg_set_page
	movq	%r14, %rdi
	callq	_sg_page
	movl	%eax, %edi
	callq	_page_to_pfn
	xorl	%edi, %edi
	cmpq	%r12, %rax
	setne	%dil
	callq	_GEM_BUG_ON
	imulq	(%r15), %r13
	xorl	%edi, %edi
	cmpq	%r13, (%r14)
	setne	%dil
	callq	_GEM_BUG_ON
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
	callq	_GEM_BUG_ON
	incq	%rbx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r13
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	movq	%r14, %rdi
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %r14
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	callq	*%rax
	movq	%r13, %r15
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_pfn_to_page
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %r12
	addq	%r13, %r15
	movq	%r15, %rdi
	callq	_pfn_to_page
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_page_contiguous
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rbx, %rbx
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_sg_next
	movq	%rax, %r14
	jmp	LBB0_8
LBB0_2:
	movq	%r13, %r15
LBB0_9:
	callq	_sg_mark_end
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax)
	movq	%r15, 8(%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_sg_free_table
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PFN_BIAS,8,3                   ## @PFN_BIAS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_alloc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_table
_alloc_table:                           ; @alloc_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x21, x4
	mov	x22, x3
	mov	x8, x2
	mov	x20, x1
	mov	x23, x0
	add	x25, x0, #16
Lloh0:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, ___GFP_NORETRY@GOTPAGE
Lloh4:
	ldr	x10, [x10, ___GFP_NORETRY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, ___GFP_NOWARN@GOTPAGE
Lloh7:
	ldr	x10, [x10, ___GFP_NOWARN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w2, w9, w10
	mov	x0, x25
	mov	x1, x8
	bl	_sg_alloc_table
	cbnz	x0, LBB0_10
; %bb.1:
Lloh9:
	adrp	x19, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x19, [x19, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x19]
	mul	x0, x8, x20
	bl	_overflows_type
	bl	_GEM_BUG_ON
Lloh11:
	adrp	x8, _PFN_BIAS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PFN_BIAS@GOTPAGEOFF]
Lloh13:
	ldr	x27, [x8]
	str	x27, [x23]
	ldr	x24, [x23, #24]
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x20, LBB0_7
; %bb.2:
	str	x25, [sp]                       ; 8-byte Folded Spill
	mov	x25, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_pfn_to_page
	mov	x1, x0
	ldr	x8, [x19]
	mul	x2, x8, x28
	mov	x0, x24
	mov	w3, #0
	bl	_sg_set_page
	mov	x0, x24
	bl	_sg_page
	bl	_page_to_pfn
	cmp	x0, x27
	cset	w0, ne
	bl	_GEM_BUG_ON
	ldr	x8, [x24]
	ldr	x9, [x19]
	mul	x9, x9, x28
	cmp	x8, x9
	cset	w0, ne
	bl	_GEM_BUG_ON
	ldr	x8, [x24, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_GEM_BUG_ON
	add	x25, x25, #1
	mov	x27, x26
	cmp	x20, x25
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x20
	mov	x2, x21
	blr	x22
	mov	x28, x0
	mov	x0, x27
	bl	_pfn_to_page
	mov	x23, x0
	add	x26, x28, x27
	mov	x0, x26
	bl	_pfn_to_page
	mov	x1, x0
	mov	x0, x23
	mov	x2, x28
	bl	_page_contiguous
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x25, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_sg_next
	mov	x24, x0
	b	LBB0_3
LBB0_7:
	mov	x26, x27
LBB0_8:
	mov	x0, x24
	bl	_sg_mark_end
	mov	w24, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	x26, x20, [x8, #8]
	b	LBB0_10
LBB0_9:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_sg_free_table
Lloh14:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PFN_BIAS,8,3                   ; @PFN_BIAS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_alloc_table
.subsections_via_symbols
