	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_unredirect_exceptions
_efi_unredirect_exceptions:             ## @efi_unredirect_exceptions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_lidt_pa@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	callq	_intr_disable
	movl	%eax, %ebx
	movq	_ist@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_tss_pa@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, -8(%rcx,%rax,8)
LBB0_3:
	movq	_loader_gdt_pa@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_fw_gdt@GOTPCREL(%rip), %rdi
	callq	_bare_lgdt
LBB0_5:
	movq	_loader_tss@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_tss_fw_seg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ltr
LBB0_7:
	movq	_fw_idt@GOTPCREL(%rip), %rdi
	callq	_lidt
	movl	%ebx, %edi
	callq	_intr_restore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free_tables                    ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lidt_pa,8,3                    ## @lidt_pa
	.comm	_ist,4,2                        ## @ist
	.comm	_tss_pa,8,3                     ## @tss_pa
	.comm	_loader_gdt_pa,8,3              ## @loader_gdt_pa
	.comm	_fw_gdt,4,2                     ## @fw_gdt
	.comm	_loader_tss,8,3                 ## @loader_tss
	.comm	_tss_fw_seg,4,2                 ## @tss_fw_seg
	.comm	_fw_idt,4,2                     ## @fw_idt
	.no_dead_strip	_efi_unredirect_exceptions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_unredirect_exceptions
_efi_unredirect_exceptions:             ; @efi_unredirect_exceptions
	.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
Lloh0:
	adrp	x8, _lidt_pa@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lidt_pa@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
	bl	_intr_disable
	mov	x19, x0
Lloh3:
	adrp	x8, _ist@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ist@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _tss_pa@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tss_pa@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	w8, w8, #1
	str	xzr, [x9, w8, sxtw #3]
LBB0_3:
Lloh9:
	adrp	x8, _loader_gdt_pa@GOTPAGE
Lloh10:
	ldr	x8, [x8, _loader_gdt_pa@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh12:
	adrp	x0, _fw_gdt@GOTPAGE
Lloh13:
	ldr	x0, [x0, _fw_gdt@GOTPAGEOFF]
	bl	_bare_lgdt
LBB0_5:
Lloh14:
	adrp	x8, _loader_tss@GOTPAGE
Lloh15:
	ldr	x8, [x8, _loader_tss@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _tss_fw_seg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tss_fw_seg@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ltr
LBB0_7:
Lloh20:
	adrp	x0, _fw_idt@GOTPAGE
Lloh21:
	ldr	x0, [x0, _fw_idt@GOTPAGEOFF]
	bl	_lidt
	mov	x0, x19
	bl	_intr_restore
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_tables
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_lidt_pa,8,3                    ; @lidt_pa
	.comm	_ist,4,2                        ; @ist
	.comm	_tss_pa,8,3                     ; @tss_pa
	.comm	_loader_gdt_pa,8,3              ; @loader_gdt_pa
	.comm	_fw_gdt,4,2                     ; @fw_gdt
	.comm	_loader_tss,8,3                 ; @loader_tss
	.comm	_tss_fw_seg,4,2                 ; @tss_fw_seg
	.comm	_fw_idt,4,2                     ; @fw_idt
	.no_dead_strip	_efi_unredirect_exceptions
.subsections_via_symbols
