	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmg160_trig_try_reen
_bmg160_trig_try_reen:                  ## @bmg160_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_iio_trigger_get_drvdata
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_regmap_get_device
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	_BMG160_REG_INT_RST_LATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMG160_INT_MODE_LATCH_INT@GOTPCREL(%rip), %rax
	movq	_BMG160_INT_MODE_LATCH_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %r12d
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMG160_REG_INT_RST_LATCH,4,2   ## @BMG160_REG_INT_RST_LATCH
	.comm	_BMG160_INT_MODE_LATCH_INT,4,2  ## @BMG160_INT_MODE_LATCH_INT
	.comm	_BMG160_INT_MODE_LATCH_RESET,4,2 ## @BMG160_INT_MODE_LATCH_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing reg_rst_latch\n"

	.no_dead_strip	_bmg160_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 bmg160_trig_try_reen
_bmg160_trig_try_reen:                  ; @bmg160_trig_try_reen
	.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
	bl	_iio_trigger_get_drvdata
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0]
	bl	_regmap_get_device
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _BMG160_REG_INT_RST_LATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMG160_REG_INT_RST_LATCH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BMG160_INT_MODE_LATCH_INT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BMG160_INT_MODE_LATCH_INT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _BMG160_INT_MODE_LATCH_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BMG160_INT_MODE_LATCH_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	tbnz	w0, #31, LBB0_4
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BMG160_REG_INT_RST_LATCH,4,2   ; @BMG160_REG_INT_RST_LATCH
	.comm	_BMG160_INT_MODE_LATCH_INT,4,2  ; @BMG160_INT_MODE_LATCH_INT
	.comm	_BMG160_INT_MODE_LATCH_RESET,4,2 ; @BMG160_INT_MODE_LATCH_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing reg_rst_latch\n"

	.no_dead_strip	_bmg160_trig_try_reen
.subsections_via_symbols
