	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ResetECOD
_ResetECOD:                             ## @ResetECOD
	.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	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_B_EC_OD_REG_SYNC__A@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_EC_OD_REG_SYNC__A@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1636, %edx                     ## imm = 0x664
	xorl	%ecx, %ecx
	callq	_Write16
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_WriteTable
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_EC_OD_REG_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Write16                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_OD_REG_SYNC__A,4,2          ## @EC_OD_REG_SYNC__A
	.comm	_B_EC_OD_REG_SYNC__A,4,2        ## @B_EC_OD_REG_SYNC__A
	.comm	_EC_OD_REG_COMM_EXEC__A,4,2     ## @EC_OD_REG_COMM_EXEC__A
	.no_dead_strip	_ResetECOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ResetECOD
_ResetECOD:                             ; @ResetECOD
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _B_EC_OD_REG_SYNC__A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_EC_OD_REG_SYNC__A@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh2:
	adrp	x10, _EC_OD_REG_SYNC__A@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EC_OD_REG_SYNC__A@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w1, [x8]
	mov	w2, #1636
	mov	w3, #0
	bl	_Write16
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_WriteTable
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _EC_OD_REG_COMM_EXEC__A@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EC_OD_REG_COMM_EXEC__A@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Write16
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_OD_REG_SYNC__A,4,2          ; @EC_OD_REG_SYNC__A
	.comm	_B_EC_OD_REG_SYNC__A,4,2        ; @B_EC_OD_REG_SYNC__A
	.comm	_EC_OD_REG_COMM_EXEC__A,4,2     ; @EC_OD_REG_COMM_EXEC__A
	.no_dead_strip	_ResetECOD
.subsections_via_symbols
