	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_trig_try_reen
_bmc150_accel_trig_try_reen:            ## @bmc150_accel_trig_try_reen
	.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
	callq	_iio_trigger_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %r13
	movl	4(%r13), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_BMC150_ACCEL_TRIGGER_DATA_READY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$3, %rcx
	addq	8(%rax), %rcx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	4(%r13), %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
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	jns	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r12d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_ACCEL_TRIGGER_DATA_READY,8,3 ## @BMC150_ACCEL_TRIGGER_DATA_READY
	.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"

	.no_dead_strip	_bmc150_accel_trig_try_reen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_trig_try_reen
_bmc150_accel_trig_try_reen:            ; @bmc150_accel_trig_try_reen
	.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
	bl	_iio_trigger_get_drvdata
	mov	x21, x0
	ldr	x20, [x0]
	ldr	w0, [x20, #4]
	bl	_regmap_get_device
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _BMC150_ACCEL_TRIGGER_DATA_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BMC150_ACCEL_TRIGGER_DATA_READY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	cmp	x21, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _BMC150_ACCEL_REG_INT_RST_LATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMC150_ACCEL_REG_INT_RST_LATCH@GOTPAGEOFF]
Lloh5:
	adrp	x9, _BMC150_ACCEL_INT_MODE_LATCH_INT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BMC150_ACCEL_INT_MODE_LATCH_INT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _BMC150_ACCEL_INT_MODE_LATCH_RESET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BMC150_ACCEL_INT_MODE_LATCH_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_3
LBB0_2:
	mov	w21, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_ACCEL_TRIGGER_DATA_READY,8,3 ; @BMC150_ACCEL_TRIGGER_DATA_READY
	.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"

	.no_dead_strip	_bmc150_accel_trig_try_reen
.subsections_via_symbols
