	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function i810_freelist_init
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_i810_freelist_init:                    ## @i810_freelist_init
	.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
	movq	(%rdi), %r15
	movl	(%r15), %eax
	cmpl	$1020, %eax                     ## imm = 0x3FC
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	%rdi, %r12
	movq	(%rsi), %rax
	addq	$24, %rax
	movl	$24, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	8(%rcx), %r14
	leaq	4(%rax), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 56(%r14)
	movl	%ebx, (%r14)
	addl	$4, %ebx
	movq	_I810_BUF_FREE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax)
	movl	4(%rcx), %eax
	leaq	8(%r14), %rdi
	movl	%eax, 40(%r14)
	movl	(%rcx), %eax
	movl	%eax, 36(%r14)
	movq	__DRM_AGP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	%r12, %rsi
	callq	_drm_core_ioremap
	movl	8(%r14), %eax
	movl	%eax, 48(%r14)
	incq	%r13
	movslq	(%r15), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rcx, %r13
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I810_BUF_FREE,4,2              ## @I810_BUF_FREE
	.comm	__DRM_AGP,4,2                   ## @_DRM_AGP
	.no_dead_strip	_i810_freelist_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i810_freelist_init
_i810_freelist_init:                    ; @i810_freelist_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #1020
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x19, x0
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x1]
	add	x23, x8, #24
Lloh3:
	adrp	x24, _I810_BUF_FREE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _I810_BUF_FREE@GOTPAGEOFF]
Lloh5:
	adrp	x25, __DRM_AGP@GOTPAGE
Lloh6:
	ldr	x25, [x25, __DRM_AGP@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w21, #24
	add	x9, x23, x21
	ldr	x10, [x20, #8]
	ldr	x10, [x10, x22, lsl #3]
	ldr	x26, [x10, #8]
	str	x9, [x26, #56]
	str	w8, [x26]
	ldr	w8, [x24]
	str	w8, [x23, x21]
	add	x0, x26, #8
	ldr	d0, [x10]
	stur	d0, [x26, #36]
	ldr	w8, [x25]
	str	w8, [x26, #32]
	stp	xzr, xzr, [x26, #16]
	mov	x1, x19
	bl	_drm_core_ioremap
	ldr	w8, [x26, #8]
	str	w8, [x26, #48]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I810_BUF_FREE,4,2              ; @I810_BUF_FREE
	.comm	__DRM_AGP,4,2                   ; @_DRM_AGP
	.no_dead_strip	_i810_freelist_init
.subsections_via_symbols
