	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IFX_MEI_HaltArc
_IFX_MEI_HaltArc:                       ## @IFX_MEI_HaltArc
	.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	%rdi, %rbx
	movl	$0, -28(%rbp)
	movq	_MEI_MASTER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IFX_MEI_ControlModeSet
	movq	_MEI_DEBUG_DEC_AUX_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ARC_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	__IFX_MEI_DBGLongWordRead
	movq	_ARC_DEBUG_HALT@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -28(%rbp)
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	__IFX_MEI_DBGLongWordWrite
	movq	_JTAG_MASTER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IFX_MEI_ControlModeSet
	movl	$10, %edi
	callq	_MEI_WAIT
	movq	_DSL_DEV_MEI_ERR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_MASTER_MODE,4,2            ## @MEI_MASTER_MODE
	.comm	_MEI_DEBUG_DEC_AUX_MASK,4,2     ## @MEI_DEBUG_DEC_AUX_MASK
	.comm	_ARC_DEBUG,4,2                  ## @ARC_DEBUG
	.comm	_ARC_DEBUG_HALT,4,2             ## @ARC_DEBUG_HALT
	.comm	_JTAG_MASTER_MODE,4,2           ## @JTAG_MASTER_MODE
	.comm	_DSL_DEV_MEI_ERR_SUCCESS,4,2    ## @DSL_DEV_MEI_ERR_SUCCESS
	.no_dead_strip	_IFX_MEI_HaltArc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IFX_MEI_HaltArc
_IFX_MEI_HaltArc:                       ; @IFX_MEI_HaltArc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _MEI_MASTER_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEI_MASTER_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IFX_MEI_ControlModeSet
Lloh3:
	adrp	x20, _MEI_DEBUG_DEC_AUX_MASK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MEI_DEBUG_DEC_AUX_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _ARC_DEBUG@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ARC_DEBUG@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	bl	__IFX_MEI_DBGLongWordRead
Lloh7:
	adrp	x8, _ARC_DEBUG_HALT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARC_DEBUG_HALT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	__IFX_MEI_DBGLongWordWrite
Lloh10:
	adrp	x8, _JTAG_MASTER_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JTAG_MASTER_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IFX_MEI_ControlModeSet
	mov	w0, #10
	bl	_MEI_WAIT
Lloh13:
	adrp	x8, _DSL_DEV_MEI_ERR_SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DSL_DEV_MEI_ERR_SUCCESS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_MASTER_MODE,4,2            ; @MEI_MASTER_MODE
	.comm	_MEI_DEBUG_DEC_AUX_MASK,4,2     ; @MEI_DEBUG_DEC_AUX_MASK
	.comm	_ARC_DEBUG,4,2                  ; @ARC_DEBUG
	.comm	_ARC_DEBUG_HALT,4,2             ; @ARC_DEBUG_HALT
	.comm	_JTAG_MASTER_MODE,4,2           ; @JTAG_MASTER_MODE
	.comm	_DSL_DEV_MEI_ERR_SUCCESS,4,2    ; @DSL_DEV_MEI_ERR_SUCCESS
	.no_dead_strip	_IFX_MEI_HaltArc
.subsections_via_symbols
