	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk3310_read_event
_stk3310_read_event:                    ## @stk3310_read_event
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	callq	_iio_priv
	movq	%rax, %r15
	movq	_IIO_EV_INFO_VALUE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_STK3310_REG_THDH_PS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_1
## %bb.5:
	movq	_STK3310_REG_THDL_PS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	12(%r15), %edi
	leaq	-36(%rbp), %rdx
	movl	%ebx, %esi
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.8:
	movl	-36(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_INFO_VALUE,4,2          ## @IIO_EV_INFO_VALUE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_STK3310_REG_THDH_PS,4,2        ## @STK3310_REG_THDH_PS
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.comm	_STK3310_REG_THDL_PS,4,2        ## @STK3310_REG_THDL_PS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"register read failed\n"

	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_stk3310_read_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk3310_read_event
_stk3310_read_event:                    ; @stk3310_read_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x5
	mov	x22, x4
	mov	x21, x3
	bl	_iio_priv
Lloh0:
	adrp	x8, _IIO_EV_INFO_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_EV_INFO_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _STK3310_REG_THDH_PS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STK3310_REG_THDH_PS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.4:
Lloh11:
	adrp	x8, _STK3310_REG_THDL_PS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STK3310_REG_THDL_PS@GOTPAGEOFF]
LBB0_5:
	ldr	w21, [x8]
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	w0, [x20, #12]
	add	x2, sp, #12
	mov	x1, x21
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_9
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_be16_to_cpu
	str	w0, [x19]
Lloh13:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	x0, [x20]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_INFO_VALUE,4,2          ; @IIO_EV_INFO_VALUE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_STK3310_REG_THDH_PS,4,2        ; @STK3310_REG_THDH_PS
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.comm	_STK3310_REG_THDL_PS,4,2        ; @STK3310_REG_THDL_PS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"register read failed\n"

	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_stk3310_read_event
.subsections_via_symbols
