	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mfi_get_events
_mfi_get_events:                        ## @mfi_get_events
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	%rsi, %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, -8(%rbp)
	movl	%r8d, -16(%rbp)
	movl	%ecx, -12(%rbp)
	movslq	%edx, %rcx
	shlq	$2, %rcx
	movq	_MFI_DCMD_CTRL_EVENT_GET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	%r9, (%rsp)
	leaq	-16(%rbp), %r8
	movq	%rax, %rdx
	movl	$8, %r9d
	callq	_mfi_dcmd_command
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MFI_DCMD_CTRL_EVENT_GET,4,2    ## @MFI_DCMD_CTRL_EVENT_GET
	.no_dead_strip	_mfi_get_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mfi_get_events
_mfi_get_events:                        ; @mfi_get_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x6, x5
	mov	x8, x1
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #8]
	stp	w4, w3, [sp]
	sub	w9, w2, #1
	sbfiz	x9, x9, #2, #32
	add	x3, x9, #4
Lloh3:
	adrp	x9, _MFI_DCMD_CTRL_EVENT_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MFI_DCMD_CTRL_EVENT_GET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x4, sp
	mov	x2, x8
	mov	w5, #8
	bl	_mfi_dcmd_command
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MFI_DCMD_CTRL_EVENT_GET,4,2    ; @MFI_DCMD_CTRL_EVENT_GET
	.no_dead_strip	_mfi_get_events
.subsections_via_symbols
