	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IFX_MEI_ExitDevice
_IFX_MEI_ExitDevice:                    ## @IFX_MEI_ExitDevice
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dsl_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movslq	%edi, %r15
	leaq	(%rbx,%r15,8), %r14
	movq	(%rbx,%r15,8), %rax
	movq	_IFX_DFEIR@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_disable_irq
	movq	(%rbx,%r15,8), %rax
	movq	_IFX_DYING_GASP@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_disable_irq
	movq	(%rbx,%r15,8), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	(%rbx,%r15,8), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%r14, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsl_devices,8,3                ## @dsl_devices
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IFX_DFEIR,8,3                  ## @IFX_DFEIR
	.comm	_IFX_DYING_GASP,8,3             ## @IFX_DYING_GASP
	.no_dead_strip	_IFX_MEI_ExitDevice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IFX_MEI_ExitDevice
_IFX_MEI_ExitDevice:                    ; @IFX_MEI_ExitDevice
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _dsl_devices@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dsl_devices@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x19, x8, w0, sxtw #3
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _IFX_DFEIR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IFX_DFEIR@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_disable_irq
	ldr	x8, [x19]
Lloh5:
	adrp	x21, _IFX_DYING_GASP@GOTPAGE
Lloh6:
	ldr	x21, [x21, _IFX_DYING_GASP@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	bl	_disable_irq
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x19
	bl	_free_irq
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x19
	bl	_free_irq
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dsl_devices,8,3                ; @dsl_devices
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IFX_DFEIR,8,3                  ; @IFX_DFEIR
	.comm	_IFX_DYING_GASP,8,3             ; @IFX_DYING_GASP
	.no_dead_strip	_IFX_MEI_ExitDevice
.subsections_via_symbols
