	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drain_mcelog_buffer
_drain_mcelog_buffer:                   ## @drain_mcelog_buffer
	.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	_mcelog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rcu_dereference
	movq	_jiffies@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdi
	shlq	$2, %rdi
	movq	_mcelog@GOTPCREL(%rip), %r14
	addq	8(%r14), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	subl	%eax, %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_cmpxchg
	movl	%ebx, %ecx
	cmpl	%ebx, %eax
	je	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
	movl	%ecx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %eax
	jbe	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	_x86_mce_decoder_chain@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_atomic_notifier_call_chain
	incq	%r14
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
	movq	(%r15), %r13
	movq	_mcelog@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	leaq	(%rax,%r14,4), %rbx
	movl	(%rax,%r14,4), %eax
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=3
	movq	(%r15), %rdi
	leal	(%r12,%r12), %esi
	addq	%r13, %rsi
	callq	_time_after_eq
	cmpq	$1, %rax
	sbbl	$-1, %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=3
	cmpl	$4, %r12d
	jb	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_8
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcelog,16,3                    ## @mcelog
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCE: skipping error being logged currently!\n"

	.comm	_x86_mce_decoder_chain,4,2      ## @x86_mce_decoder_chain
	.no_dead_strip	_drain_mcelog_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drain_mcelog_buffer
_drain_mcelog_buffer:                   ; @drain_mcelog_buffer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x19, _mcelog@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mcelog@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rcu_dereference
	mov	x20, x0
	mov	w8, #0
Lloh2:
	adrp	x24, _jiffies@GOTPAGE
Lloh3:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
Lloh4:
	adrp	x21, _x86_mce_decoder_chain@GOTPAGE
Lloh5:
	ldr	x21, [x21, _x86_mce_decoder_chain@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x25, lsl #2
	sub	w8, w20, w25
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_cmpxchg
	mov	x8, x20
	cmp	w0, w20
	mov	x20, x0
	b.eq	LBB0_9
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
	mov	w25, w8
	cmp	w20, w8
	b.ls	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, w20
	mov	x27, x25
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	bl	_smp_rmb
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_atomic_notifier_call_chain
	add	x27, x27, #1
	cmp	x27, x26
	b.eq	LBB0_1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
	ldr	x28, [x24]
	ldr	x8, [x19, #8]
	add	x23, x8, x27, lsl #2
	ldr	w8, [x23]
	mov	w22, #1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbnz	w8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	ldr	x0, [x24]
	lsl	w8, w22, #1
	add	x1, x28, x8
	bl	_time_after_eq
	cmp	x0, #0
	cinc	w22, w22, ne
	bl	_cpu_relax
	ldr	w8, [x23]
	cmp	w8, #0
	ccmp	w22, #4, #0, eq
	b.lo	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_4
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mcelog,16,3                    ; @mcelog
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCE: skipping error being logged currently!\n"

	.comm	_x86_mce_decoder_chain,4,2      ; @x86_mce_decoder_chain
	.no_dead_strip	_drain_mcelog_buffer
.subsections_via_symbols
