	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_reset_register             ## -- Begin function mpt_reset_register
	.p2align	4, 0x90
_mpt_reset_register:                    ## @mpt_reset_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_MPT_MAX_PROTOCOL_DRIVERS@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jbe	LBB0_3
## %bb.2:
	movq	_MptResetHandlers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, (%rax,%rdi,4)
	xorl	%eax, %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPT_MAX_PROTOCOL_DRIVERS,8,3   ## @MPT_MAX_PROTOCOL_DRIVERS
	.comm	_MptResetHandlers,8,3           ## @MptResetHandlers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_reset_register             ; -- Begin function mpt_reset_register
	.p2align	2
_mpt_reset_register:                    ; @mpt_reset_register
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #-1
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _MPT_MAX_PROTOCOL_DRIVERS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPT_MAX_PROTOCOL_DRIVERS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ls	LBB0_3
; %bb.2:
	mov	w0, #0
Lloh3:
	adrp	x9, _MptResetHandlers@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MptResetHandlers@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	w1, [x9, x8, lsl #2]
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPT_MAX_PROTOCOL_DRIVERS,8,3   ; @MPT_MAX_PROTOCOL_DRIVERS
	.comm	_MptResetHandlers,8,3           ; @MptResetHandlers
.subsections_via_symbols
