	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_deregister                 ## -- Begin function mpt_deregister
	.p2align	4, 0x90
_mpt_deregister:                        ## @mpt_deregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_MPT_MAX_PROTOCOL_DRIVERS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_3
## %bb.2:
	movq	_MptCallbacks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax,%rdi,8)
	movq	_MPTUNKNOWN_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MptDriverClass@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rdi,4)
	movq	_MptEvHandlers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax,%rdi,8)
	movq	_last_drv_idx@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPT_MAX_PROTOCOL_DRIVERS,8,3   ## @MPT_MAX_PROTOCOL_DRIVERS
	.comm	_MptCallbacks,8,3               ## @MptCallbacks
	.comm	_MPTUNKNOWN_DRIVER,4,2          ## @MPTUNKNOWN_DRIVER
	.comm	_MptDriverClass,8,3             ## @MptDriverClass
	.comm	_MptEvHandlers,8,3              ## @MptEvHandlers
	.comm	_last_drv_idx,4,2               ## @last_drv_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_deregister                 ; -- Begin function mpt_deregister
	.p2align	2
_mpt_deregister:                        ; @mpt_deregister
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MPT_MAX_PROTOCOL_DRIVERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPT_MAX_PROTOCOL_DRIVERS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MptCallbacks@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MptCallbacks@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x9, x0, #3
	str	xzr, [x8, x9]
Lloh6:
	adrp	x8, _MPTUNKNOWN_DRIVER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPTUNKNOWN_DRIVER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, _MptDriverClass@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MptDriverClass@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	w8, [x10, x0, lsl #2]
Lloh12:
	adrp	x8, _MptEvHandlers@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MptEvHandlers@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	xzr, [x8, x9]
Lloh15:
	adrp	x8, _last_drv_idx@GOTPAGE
Lloh16:
	ldr	x8, [x8, _last_drv_idx@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPT_MAX_PROTOCOL_DRIVERS,8,3   ; @MPT_MAX_PROTOCOL_DRIVERS
	.comm	_MptCallbacks,8,3               ; @MptCallbacks
	.comm	_MPTUNKNOWN_DRIVER,4,2          ; @MPTUNKNOWN_DRIVER
	.comm	_MptDriverClass,8,3             ; @MptDriverClass
	.comm	_MptEvHandlers,8,3              ; @MptEvHandlers
	.comm	_last_drv_idx,4,2               ; @last_drv_idx
.subsections_via_symbols
