	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx9500_push_events
_sx9500_push_events:                    ## @sx9500_push_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r15
	movl	24(%rax), %edi
	movq	_SX9500_REG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_SX9500_PROXSTAT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-44(%rbp), %r13d
	shrl	%cl, %r13d
	movl	%r13d, -44(%rbp)
	movq	_SX9500_NUM_CHANNELS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	8(%r15), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	andl	%r13d, %r12d
	movq	(%r15), %rax
	cmpl	(%rax,%rbx,4), %r12d
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %ecx
	movq	_IIO_PROXIMITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_iio_push_event
	movq	(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	_SX9500_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jae	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %r13d
	jmp	LBB0_5
LBB0_1:
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SX9500_REG_STAT,4,2            ## @SX9500_REG_STAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c transfer error in irq\n"

	.comm	_SX9500_PROXSTAT_SHIFT,4,2      ## @SX9500_PROXSTAT_SHIFT
	.comm	_SX9500_NUM_CHANNELS,4,2        ## @SX9500_NUM_CHANNELS
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_IIO_PROXIMITY,4,2              ## @IIO_PROXIMITY
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.no_dead_strip	_sx9500_push_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx9500_push_events
_sx9500_push_events:                    ; @sx9500_push_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _SX9500_REG_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SX9500_REG_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _SX9500_PROXSTAT_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SX9500_PROXSTAT_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	lsr	w22, w9, w8
	str	w22, [sp, #12]
Lloh6:
	adrp	x23, _SX9500_NUM_CHANNELS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SX9500_NUM_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x21, #0
Lloh8:
	adrp	x24, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh10:
	adrp	x25, _IIO_EV_DIR_RISING@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh12:
	adrp	x26, _IIO_PROXIMITY@GOTPAGE
Lloh13:
	ldr	x26, [x26, _IIO_PROXIMITY@GOTPAGEOFF]
Lloh14:
	adrp	x27, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh15:
	ldr	x27, [x27, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x21, lsl #2]
	cbz	w8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w28, w0, w22
	ldr	x8, [x20]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w28, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, #0
	csel	x8, x25, x24, eq
	ldr	w3, [x8]
	ldr	w0, [x26]
	ldr	w2, [x27]
	mov	x1, x21
	bl	_IIO_UNMOD_EVENT_CODE
	mov	x22, x0
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_iio_push_event
	ldr	x8, [x20]
	str	w28, [x8, x21, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	w8, [x23]
	cmp	x21, x8
	b.hs	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [sp, #12]
	b	LBB0_3
LBB0_8:
	ldr	x0, [x20, #16]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SX9500_REG_STAT,4,2            ; @SX9500_REG_STAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c transfer error in irq\n"

	.comm	_SX9500_PROXSTAT_SHIFT,4,2      ; @SX9500_PROXSTAT_SHIFT
	.comm	_SX9500_NUM_CHANNELS,4,2        ; @SX9500_NUM_CHANNELS
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_IIO_PROXIMITY,4,2              ; @IIO_PROXIMITY
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.no_dead_strip	_sx9500_push_events
.subsections_via_symbols
