	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_i810_free_by_type
_intel_i810_free_by_type:               ## @intel_i810_free_by_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_agp_free_key
	movq	(%rbx), %rax
	movq	_AGP_PHYS_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	cmpl	$4, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_i8xx_destroy_pages
	jmp	LBB0_4
LBB0_3:
	movq	_agp_bridge@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movq	_AGP_PAGE_DESTROY_UNMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movq	_AGP_PAGE_DESTROY_FREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
LBB0_4:
	movq	%rbx, %rdi
	callq	_agp_free_page_array
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AGP_PHYS_MEMORY,8,3            ## @AGP_PHYS_MEMORY
	.comm	_agp_bridge,8,3                 ## @agp_bridge
	.comm	_AGP_PAGE_DESTROY_UNMAP,4,2     ## @AGP_PAGE_DESTROY_UNMAP
	.comm	_AGP_PAGE_DESTROY_FREE,4,2      ## @AGP_PAGE_DESTROY_FREE
	.no_dead_strip	_intel_i810_free_by_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_i810_free_by_type
_intel_i810_free_by_type:               ; @intel_i810_free_by_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_agp_free_key
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AGP_PHYS_MEMORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AGP_PHYS_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_i8xx_destroy_pages
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x20, _agp_bridge@GOTPAGE
Lloh4:
	ldr	x20, [x20, _agp_bridge@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	w0, [x9]
Lloh5:
	adrp	x9, _AGP_PAGE_DESTROY_UNMAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AGP_PAGE_DESTROY_UNMAP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	w0, [x9]
Lloh8:
	adrp	x9, _AGP_PAGE_DESTROY_FREE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AGP_PAGE_DESTROY_FREE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	blr	x8
LBB0_4:
	mov	x0, x19
	bl	_agp_free_page_array
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AGP_PHYS_MEMORY,8,3            ; @AGP_PHYS_MEMORY
	.comm	_agp_bridge,8,3                 ; @agp_bridge
	.comm	_AGP_PAGE_DESTROY_UNMAP,4,2     ; @AGP_PAGE_DESTROY_UNMAP
	.comm	_AGP_PAGE_DESTROY_FREE,4,2      ; @AGP_PAGE_DESTROY_FREE
	.no_dead_strip	_intel_i810_free_by_type
.subsections_via_symbols
