	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxcjk1013_event_handler
_kxcjk1013_event_handler:               ## @kxcjk1013_event_handler
	.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	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	movq	_KXCJK1013_REG_INT_SRC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_KXCJK1013_REG_INT_SRC1_BIT_WUFS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	_KXTF9@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_IIO_ACCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IIO_MOD_X_AND_Y_AND_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	callq	_IIO_MOD_EVENT_CODE
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_iio_push_event
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
	jmp	LBB0_7
LBB0_1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
LBB0_7:
	movq	8(%rbx), %rdi
	movq	_KXCJK1013_REG_INT_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	callq	_kxcjk1013_report_motion_event
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KXCJK1013_REG_INT_SRC1,4,2     ## @KXCJK1013_REG_INT_SRC1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading reg_int_src1\n"

	.comm	_KXCJK1013_REG_INT_SRC1_BIT_WUFS,4,2 ## @KXCJK1013_REG_INT_SRC1_BIT_WUFS
	.comm	_KXTF9,8,3                      ## @KXTF9
	.comm	_IIO_ACCEL,4,2                  ## @IIO_ACCEL
	.comm	_IIO_MOD_X_AND_Y_AND_Z,4,2      ## @IIO_MOD_X_AND_Y_AND_Z
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_KXCJK1013_REG_INT_REL,4,2      ## @KXCJK1013_REG_INT_REL
L_.str.1:                               ## @.str.1
	.asciz	"Error reading reg_int_rel\n"

	.no_dead_strip	_kxcjk1013_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxcjk1013_event_handler
_kxcjk1013_event_handler:               ; @kxcjk1013_event_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _KXCJK1013_REG_INT_SRC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KXCJK1013_REG_INT_SRC1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _KXCJK1013_REG_INT_SRC1_BIT_WUFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KXCJK1013_REG_INT_SRC1_BIT_WUFS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _KXTF9@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KXTF9@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _IIO_ACCEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_ACCEL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _IIO_MOD_X_AND_Y_AND_Z@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_MOD_X_AND_Y_AND_Z@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	w1, #0
	bl	_IIO_MOD_EVENT_CODE
	mov	x1, x0
	ldr	w2, [x19, #24]
	mov	x0, x20
	bl	_iio_push_event
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
LBB0_6:
	ldr	x0, [x19, #8]
Lloh23:
	adrp	x8, _KXCJK1013_REG_INT_REL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KXCJK1013_REG_INT_REL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	tbz	w0, #31, LBB0_9
; %bb.7:
	ldr	x0, [x19, #8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_kxcjk1013_report_motion_event
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
LBB0_9:
Lloh28:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_KXCJK1013_REG_INT_SRC1,4,2     ; @KXCJK1013_REG_INT_SRC1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading reg_int_src1\n"

	.comm	_KXCJK1013_REG_INT_SRC1_BIT_WUFS,4,2 ; @KXCJK1013_REG_INT_SRC1_BIT_WUFS
	.comm	_KXTF9,8,3                      ; @KXTF9
	.comm	_IIO_ACCEL,4,2                  ; @IIO_ACCEL
	.comm	_IIO_MOD_X_AND_Y_AND_Z,4,2      ; @IIO_MOD_X_AND_Y_AND_Z
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_KXCJK1013_REG_INT_REL,4,2      ; @KXCJK1013_REG_INT_REL
l_.str.1:                               ; @.str.1
	.asciz	"Error reading reg_int_rel\n"

	.no_dead_strip	_kxcjk1013_event_handler
.subsections_via_symbols
