	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_irq_handler
_bmc150_accel_irq_handler:              ## @bmc150_accel_irq_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, %rbx
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movl	24(%rax), %eax
	movl	%eax, 28(%r14)
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movl	%eax, 24(%r14)
	movq	_BMC150_ACCEL_TRIGGERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	16(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.3:
	movb	$1, %bl
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	jne	LBB0_15
	jmp	LBB0_11
LBB0_7:
	leaq	24(%rax), %rsi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rdx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	$0, (%rsi)
	leaq	16(%rsi), %rsi
	je	LBB0_8
## %bb.5:
	decq	%rcx
	cmpq	%rdx, %rcx
	setb	%bl
LBB0_6:
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edi
	callq	_iio_trigger_poll
	cmpq	$0, 8(%r14)
	jne	LBB0_15
	jmp	LBB0_11
LBB0_9:
	seta	%bl
	cmpq	$0, 8(%r14)
	jne	LBB0_15
LBB0_11:
	testb	%bl, %bl
	je	LBB0_12
## %bb.13:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	cmpq	$0, (%r14)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_12:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	cmpq	$0, (%r14)
	je	LBB0_16
LBB0_15:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_ACCEL_TRIGGERS,4,2      ## @BMC150_ACCEL_TRIGGERS
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_bmc150_accel_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_irq_handler
_bmc150_accel_irq_handler:              ; @bmc150_accel_irq_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	w8, [x0, #24]
	str	w8, [x0, #28]
	mov	x0, x20
	bl	_iio_get_time_ns
	str	w0, [x19, #24]
Lloh0:
	adrp	x8, _BMC150_ACCEL_TRIGGERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMC150_ACCEL_TRIGGERS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w20, #1
	b	LBB0_8
LBB0_3:
	mov	w20, #0
	b	LBB0_9
LBB0_4:
	add	x11, x8, #24
	mov	w10, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x10
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11], #16
	add	x10, x10, #1
	cbz	x12, LBB0_5
; %bb.7:
	sub	x10, x10, #1
	cmp	x10, x9
	cset	w20, lo
LBB0_8:
	lsl	x9, x10, #4
	ldr	w0, [x8, x9]
	bl	_iio_trigger_poll
LBB0_9:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
	cbnz	x9, LBB0_11
; %bb.10:
	ldr	x9, [x19]
Lloh5:
	adrp	x10, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IRQ_NONE@GOTPAGEOFF]
Lloh7:
	adrp	x11, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x11, [x11, _IRQ_HANDLED@GOTPAGEOFF]
	cmp	w20, #0
	csel	x10, x11, x10, ne
	cmp	x9, #0
	csel	x8, x10, x8, eq
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	cmp	x10, x9
	cset	w20, lo
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_ACCEL_TRIGGERS,4,2      ; @BMC150_ACCEL_TRIGGERS
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_bmc150_accel_irq_handler
.subsections_via_symbols
