	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mca_record_entry
_mca_record_entry:                      ## @mca_record_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_POLLED@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_M_MCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_mca_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock_spin
	jmp	LBB0_5
LBB0_2:
	movq	_mca_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock_spin
	movq	_mca_freelist@GOTPCREL(%rip), %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mca_freelist@GOTPCREL(%rip), %rdi
	callq	_STAILQ_REMOVE_HEAD
	movq	_mca_freecount@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_5:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mca_pending@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_STAILQ_INSERT_TAIL
	jmp	LBB0_6
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r14, %rdi
	callq	_mca_log
LBB0_6:
	movq	_mca_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock_spin                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLED,4,2                     ## @POLLED
	.comm	_M_MCA,4,2                      ## @M_MCA
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_mca_lock,4,2                   ## @mca_lock
	.comm	_mca_freelist,4,2               ## @mca_freelist
	.comm	_link,4,2                       ## @link
	.comm	_mca_freecount,4,2              ## @mca_freecount
	.comm	_mca_pending,4,2                ## @mca_pending
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"MCA: Unable to allocate space for an event."

	.no_dead_strip	_mca_record_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mca_record_entry
_mca_record_entry:                      ; @mca_record_entry
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _POLLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _link@GOTPAGE
Lloh4:
	ldr	x21, [x21, _link@GOTPAGEOFF]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _M_MCA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_MCA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w0, #4
	bl	_malloc
	mov	x20, x0
Lloh11:
	adrp	x0, _mca_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _mca_lock@GOTPAGEOFF]
	bl	_mtx_lock_spin
	b	LBB0_4
LBB0_2:
Lloh13:
	adrp	x0, _mca_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _mca_lock@GOTPAGEOFF]
	bl	_mtx_lock_spin
Lloh15:
	adrp	x0, _mca_freelist@GOTPAGE
Lloh16:
	ldr	x0, [x0, _mca_freelist@GOTPAGEOFF]
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w1, [x21]
Lloh17:
	adrp	x0, _mca_freelist@GOTPAGE
Lloh18:
	ldr	x0, [x0, _mca_freelist@GOTPAGEOFF]
	bl	_STAILQ_REMOVE_HEAD
Lloh19:
	adrp	x8, _mca_freecount@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mca_freecount@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	ldr	w8, [x19]
	str	w8, [x20]
	ldr	w2, [x21]
Lloh21:
	adrp	x0, _mca_pending@GOTPAGE
Lloh22:
	ldr	x0, [x0, _mca_pending@GOTPAGEOFF]
	mov	x1, x20
	bl	_STAILQ_INSERT_TAIL
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x0, l_str@PAGE
Lloh24:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_mca_log
LBB0_6:
Lloh25:
	adrp	x0, _mca_lock@GOTPAGE
Lloh26:
	ldr	x0, [x0, _mca_lock@GOTPAGEOFF]
	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
	b	_mtx_unlock_spin
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLED,4,2                     ; @POLLED
	.comm	_M_MCA,4,2                      ; @M_MCA
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_mca_lock,4,2                   ; @mca_lock
	.comm	_mca_freelist,4,2               ; @mca_freelist
	.comm	_link,4,2                       ; @link
	.comm	_mca_freecount,4,2              ; @mca_freecount
	.comm	_mca_pending,4,2                ; @mca_pending
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"MCA: Unable to allocate space for an event."

	.no_dead_strip	_mca_record_entry
.subsections_via_symbols
