	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_agp_generic_free_gatt_table    ## -- Begin function agp_generic_free_gatt_table
	.p2align	4, 0x90
_agp_generic_free_gatt_table:           ## @agp_generic_free_gatt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_1
## %bb.2:
	movq	32(%r15), %rdi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	callq	_A_SIZE_8
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_4:
	callq	_A_SIZE_32
	jmp	LBB0_8
LBB0_3:
	callq	_A_SIZE_16
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_5:
	callq	_A_SIZE_FIX
LBB0_8:
	movl	(%rax), %r14d
LBB0_9:
	movq	16(%r15), %rdi
	callq	_iounmap
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movq	8(%r15), %rdi
	cltq
	leaq	(%rax,%rdi), %r12
	decq	%r12
	callq	_virt_to_page
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_virt_to_page
	cmpq	%rax, %rbx
	ja	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_ClearPageReserved
	addq	$4, %rbx
	jmp	LBB0_11
LBB0_12:
	movq	8(%r15), %rdi
	movl	%r14d, %esi
	callq	_free_gatt_pages
	movq	_agp_gatt_table@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_agp_gatt_table,8,3             ## @agp_gatt_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_agp_generic_free_gatt_table    ; -- Begin function agp_generic_free_gatt_table
	.p2align	2
_agp_generic_free_gatt_table:           ; @agp_generic_free_gatt_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	bl	_A_SIZE_8
	b	LBB0_8
LBB0_3:
	mov	w20, #0
	b	LBB0_9
LBB0_4:
	bl	_A_SIZE_32
	b	LBB0_8
LBB0_5:
	bl	_A_SIZE_16
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	bl	_A_SIZE_FIX
LBB0_8:
	ldr	w20, [x0]
LBB0_9:
	ldr	x0, [x19, #16]
	bl	_iounmap
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w8, w20
	sub	w8, w8, #1
	add	x21, x0, w8, sxtw
	bl	_virt_to_page
	mov	x22, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_virt_to_page
	cmp	x22, x0
	b.hi	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_ClearPageReserved
	add	x22, x22, #4
	b	LBB0_10
LBB0_12:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_free_gatt_pages
	mov	w0, #0
Lloh8:
	adrp	x8, _agp_gatt_table@GOTPAGE
Lloh9:
	ldr	x8, [x8, _agp_gatt_table@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_agp_gatt_table,8,3             ; @agp_gatt_table
.subsections_via_symbols
