	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_buffer_predisable
_bmc150_accel_buffer_predisable:        ## @bmc150_accel_buffer_predisable
	.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	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_INDIO_BUFFER_TRIGGERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iio_triggered_buffer_predisable ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	movq	_BMC150_ACCEL_INT_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bmc150_accel_set_interrupt
	movq	_BMC150_ACCEL_FIFO_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	___bmc150_accel_fifo_flush
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_bmc150_accel_fifo_set_mode
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INDIO_BUFFER_TRIGGERED,8,3     ## @INDIO_BUFFER_TRIGGERED
	.comm	_BMC150_ACCEL_INT_WATERMARK,4,2 ## @BMC150_ACCEL_INT_WATERMARK
	.comm	_BMC150_ACCEL_FIFO_LENGTH,4,2   ## @BMC150_ACCEL_FIFO_LENGTH
	.no_dead_strip	_bmc150_accel_buffer_predisable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_buffer_predisable
_bmc150_accel_buffer_predisable:        ; @bmc150_accel_buffer_predisable
	.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, x0
	bl	_iio_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _INDIO_BUFFER_TRIGGERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INDIO_BUFFER_TRIGGERED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iio_triggered_buffer_predisable
LBB0_2:
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _BMC150_ACCEL_INT_WATERMARK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMC150_ACCEL_INT_WATERMARK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bmc150_accel_set_interrupt
Lloh6:
	adrp	x8, _BMC150_ACCEL_FIFO_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMC150_ACCEL_FIFO_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	___bmc150_accel_fifo_flush
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_bmc150_accel_fifo_set_mode
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIO_BUFFER_TRIGGERED,8,3     ; @INDIO_BUFFER_TRIGGERED
	.comm	_BMC150_ACCEL_INT_WATERMARK,4,2 ; @BMC150_ACCEL_INT_WATERMARK
	.comm	_BMC150_ACCEL_FIFO_LENGTH,4,2   ; @BMC150_ACCEL_FIFO_LENGTH
	.no_dead_strip	_bmc150_accel_buffer_predisable
.subsections_via_symbols
