	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfts_read_events
_stmfts_read_events:                    ## @stmfts_read_events
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_STMFTS_READ_ALL_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movl	$1, -80(%rbp)
	leaq	-84(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$0, -64(%rbp)
	movq	(%rdi), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movq	_STMFTS_DATA_MAX_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movq	8(%rdi), %rdx
	movq	%rdx, -48(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -40(%rbp)
	movl	%ecx, -36(%rbp)
	movl	(%rax), %ebx
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_i2c_transfer
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	cmovel	%ecx, %edx
	movl	%edx, %ebx
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STMFTS_READ_ALL_EVENT,4,2      ## @STMFTS_READ_ALL_EVENT
	.comm	_STMFTS_DATA_MAX_SIZE,4,2       ## @STMFTS_DATA_MAX_SIZE
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_stmfts_read_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfts_read_events
_stmfts_read_events:                    ; @stmfts_read_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _STMFTS_READ_ALL_EVENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STMFTS_READ_ALL_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	mov	w8, #1
	stp	w9, w8, [sp, #4]
	add	x8, sp, #4
	str	x8, [sp, #16]
	str	wzr, [sp, #24]
	ldp	x8, x9, [x0]
	ldr	w10, [x8, #4]
Lloh6:
	adrp	x11, _STMFTS_DATA_MAX_SIZE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _STMFTS_DATA_MAX_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	stp	w10, w11, [sp, #28]
	str	x9, [sp, #40]
Lloh9:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w10, [sp, #48]
	ldr	w19, [x8]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_i2c_transfer
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	add	x0, sp, #8
	bl	_ARRAY_SIZE
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w19, w0
	csneg	w19, wzr, w8, eq
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STMFTS_READ_ALL_EVENT,4,2      ; @STMFTS_READ_ALL_EVENT
	.comm	_STMFTS_DATA_MAX_SIZE,4,2       ; @STMFTS_DATA_MAX_SIZE
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_stmfts_read_events
.subsections_via_symbols
