	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_tables
_free_tables:                           ## @free_tables
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_lidt_pa@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_fw_idt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EFI_SIZE_TO_PAGES
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
	movq	$0, (%r14)
LBB0_2:
	movq	_exc_stack_pa@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %esi
	callq	*(%rax)
	movq	$0, (%rbx)
LBB0_4:
	movq	_tss_pa@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	_tss_fw_seg@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	$4, %edi
	callq	_EFI_SIZE_TO_PAGES
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
	movq	$0, (%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movq	_loader_gdt_pa@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.8:
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	*(%rax)
	movq	$0, (%r14)
LBB0_9:
	movq	_ist@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_loader_tss@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lidt_pa,8,3                    ## @lidt_pa
	.comm	_BS,8,3                         ## @BS
	.comm	_fw_idt,4,2                     ## @fw_idt
	.comm	_exc_stack_pa,8,3               ## @exc_stack_pa
	.comm	_tss_pa,8,3                     ## @tss_pa
	.comm	_tss_fw_seg,8,3                 ## @tss_fw_seg
	.comm	_loader_gdt_pa,8,3              ## @loader_gdt_pa
	.comm	_ist,8,3                        ## @ist
	.comm	_loader_tss,8,3                 ## @loader_tss
	.no_dead_strip	_free_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_tables
_free_tables:                           ; @free_tables
	.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
Lloh0:
	adrp	x21, _lidt_pa@GOTPAGE
Lloh1:
	ldr	x21, [x21, _lidt_pa@GOTPAGEOFF]
	ldr	x19, [x21]
Lloh2:
	adrp	x20, _BS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BS@GOTPAGEOFF]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x22, [x8]
Lloh4:
	adrp	x8, _fw_idt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fw_idt@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_EFI_SIZE_TO_PAGES
	mov	x1, x0
	mov	x0, x19
	blr	x22
	str	xzr, [x21]
LBB0_2:
Lloh7:
	adrp	x19, _exc_stack_pa@GOTPAGE
Lloh8:
	ldr	x19, [x19, _exc_stack_pa@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w1, #1
	blr	x8
	str	xzr, [x19]
LBB0_4:
Lloh9:
	adrp	x21, _tss_pa@GOTPAGE
Lloh10:
	ldr	x21, [x21, _tss_pa@GOTPAGEOFF]
	ldr	x19, [x21]
Lloh11:
	adrp	x8, _tss_fw_seg@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tss_fw_seg@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x19, #0
	ccmp	x8, #0, #0, ne
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	x22, [x8]
	mov	w0, #4
	bl	_EFI_SIZE_TO_PAGES
	mov	x1, x0
	mov	x0, x19
	blr	x22
	mov	x19, #0
	str	xzr, [x21]
LBB0_6:
Lloh14:
	adrp	x21, _loader_gdt_pa@GOTPAGE
Lloh15:
	ldr	x21, [x21, _loader_gdt_pa@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #2
	blr	x8
	str	xzr, [x21]
LBB0_8:
Lloh16:
	adrp	x8, _ist@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ist@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
Lloh19:
	adrp	x8, _loader_tss@GOTPAGE
Lloh20:
	ldr	x8, [x8, _loader_tss@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_lidt_pa,8,3                    ; @lidt_pa
	.comm	_BS,8,3                         ; @BS
	.comm	_fw_idt,4,2                     ; @fw_idt
	.comm	_exc_stack_pa,8,3               ; @exc_stack_pa
	.comm	_tss_pa,8,3                     ; @tss_pa
	.comm	_tss_fw_seg,8,3                 ; @tss_fw_seg
	.comm	_loader_gdt_pa,8,3              ; @loader_gdt_pa
	.comm	_ist,8,3                        ; @ist
	.comm	_loader_tss,8,3                 ; @loader_tss
	.no_dead_strip	_free_tables
.subsections_via_symbols
