	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_del_device         ## -- Begin function edac_device_del_device
	.p2align	4, 0x90
_edac_device_del_device:                ## @edac_device_del_device
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_edac_dbg
	movq	_device_ctls_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_find_edac_device_by_dev
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_OP_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_del_edac_device_from_global_list
	movq	_device_ctls_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_edac_device_workq_teardown
	movq	%rbx, %rdi
	callq	_edac_device_remove_sysfs
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_EDAC_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %r12d
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_edac_dev_name
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_edac_printk
	jmp	LBB0_3
LBB0_1:
	movq	_device_ctls_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_device_ctls_mutex,4,2          ## @device_ctls_mutex
	.comm	_OP_OFFLINE,4,2                 ## @OP_OFFLINE
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.comm	_EDAC_MC,4,2                    ## @EDAC_MC
L_.str.1:                               ## @.str.1
	.asciz	"Removed device %d for %s %s: DEV %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_del_device         ; -- Begin function edac_device_del_device
	.p2align	2
_edac_device_del_device:                ; @edac_device_del_device
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
Lloh2:
	adrp	x0, _device_ctls_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _device_ctls_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	bl	_find_edac_device_by_dev
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _OP_OFFLINE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OP_OFFLINE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_del_edac_device_from_global_list
Lloh7:
	adrp	x0, _device_ctls_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _device_ctls_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	bl	_edac_device_workq_teardown
	mov	x0, x19
	bl	_edac_device_remove_sysfs
Lloh9:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _EDAC_MC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EDAC_MC@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	ldp	w23, w22, [x19, #4]
	ldr	w24, [x19]
	mov	x0, x19
	bl	_edac_dev_name
	mov	x6, x0
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_edac_printk
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x0, _device_ctls_mutex@GOTPAGE
Lloh18:
	ldr	x0, [x0, _device_ctls_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_device_ctls_mutex,4,2          ; @device_ctls_mutex
	.comm	_OP_OFFLINE,4,2                 ; @OP_OFFLINE
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.comm	_EDAC_MC,4,2                    ; @EDAC_MC
l_.str.1:                               ; @.str.1
	.asciz	"Removed device %d for %s %s: DEV %s\n"

.subsections_via_symbols
