	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_irq_thread_handler
_bmc150_accel_irq_thread_handler:       ## @bmc150_accel_irq_thread_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movl	4(%rax), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.1:
	movq	_BMC150_ACCEL_FIFO_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	___bmc150_accel_fifo_flush
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setg	%cl
	cmpq	$0, 8(%r12)
	je	LBB0_7
## %bb.2:
	movb	%cl, %bl
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r12)
	je	LBB0_11
LBB0_4:
	movq	%r15, %rdi
	callq	_bmc150_accel_handle_roc_event
	testl	%eax, %eax
	jg	LBB0_8
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_8
LBB0_11:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_11
LBB0_8:
	movl	4(%r12), %edi
	movq	_BMC150_ACCEL_REG_INT_RST_LATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMC150_ACCEL_INT_MODE_LATCH_INT@GOTPCREL(%rip), %rax
	movq	_BMC150_ACCEL_INT_MODE_LATCH_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_12:
	movl	(%rbx), %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_ACCEL_FIFO_LENGTH,4,2   ## @BMC150_ACCEL_FIFO_LENGTH
	.comm	_BMC150_ACCEL_REG_INT_RST_LATCH,4,2 ## @BMC150_ACCEL_REG_INT_RST_LATCH
	.comm	_BMC150_ACCEL_INT_MODE_LATCH_INT,4,2 ## @BMC150_ACCEL_INT_MODE_LATCH_INT
	.comm	_BMC150_ACCEL_INT_MODE_LATCH_RESET,4,2 ## @BMC150_ACCEL_INT_MODE_LATCH_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing reg_int_rst_latch\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_bmc150_accel_irq_thread_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_thread_handler
_bmc150_accel_irq_thread_handler:       ; @bmc150_accel_irq_thread_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_regmap_get_device
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _BMC150_ACCEL_FIFO_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMC150_ACCEL_FIFO_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	___bmc150_accel_fifo_flush
	cmp	w0, #0
	cset	w22, gt
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
; %bb.2:
	cmp	w0, #1
	b.ge	LBB0_8
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
	mov	w22, #0
LBB0_5:
	mov	x0, x21
	bl	_bmc150_accel_handle_roc_event
	cmp	w0, #0
	b.gt	LBB0_8
; %bb.6:
	cbnz	w22, LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _BMC150_ACCEL_REG_INT_RST_LATCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BMC150_ACCEL_REG_INT_RST_LATCH@GOTPAGEOFF]
Lloh7:
	adrp	x9, _BMC150_ACCEL_INT_MODE_LATCH_INT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BMC150_ACCEL_INT_MODE_LATCH_INT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _BMC150_ACCEL_INT_MODE_LATCH_RESET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BMC150_ACCEL_INT_MODE_LATCH_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	cbz	w0, LBB0_10
; %bb.9:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_10:
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_ACCEL_FIFO_LENGTH,4,2   ; @BMC150_ACCEL_FIFO_LENGTH
	.comm	_BMC150_ACCEL_REG_INT_RST_LATCH,4,2 ; @BMC150_ACCEL_REG_INT_RST_LATCH
	.comm	_BMC150_ACCEL_INT_MODE_LATCH_INT,4,2 ; @BMC150_ACCEL_INT_MODE_LATCH_INT
	.comm	_BMC150_ACCEL_INT_MODE_LATCH_RESET,4,2 ; @BMC150_ACCEL_INT_MODE_LATCH_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing reg_int_rst_latch\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_bmc150_accel_irq_thread_handler
.subsections_via_symbols
