	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmg160_setup_new_data_interrupt
_bmg160_setup_new_data_interrupt:       ## @bmg160_setup_new_data_interrupt
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	_BMG160_REG_INT_MAP_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMG160_INT_MAP_1_BIT_NEW_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r12d, %r12d
	movl	%edx, %ecx
	cmovel	%r12d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	movq	_BMG160_REG_INT_RST_LATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	movq	_BMG160_INT_MODE_NON_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
	js	LBB0_4
## %bb.6:
	movq	_BMG160_DATA_ENABLE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_5:
	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
	xorl	%edx, %edx
	testl	%eax, %eax
	js	LBB0_4
LBB0_7:
	movl	(%r15), %edi
	movq	_BMG160_REG_INT_EN_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMG160_REG_INT_MAP_1,4,2       ## @BMG160_REG_INT_MAP_1
	.comm	_BMG160_INT_MAP_1_BIT_NEW_DATA,4,2 ## @BMG160_INT_MAP_1_BIT_NEW_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error updating bits in reg_int_map1\n"

	.comm	_BMG160_REG_INT_RST_LATCH,4,2   ## @BMG160_REG_INT_RST_LATCH
	.comm	_BMG160_INT_MODE_NON_LATCH_INT,4,2 ## @BMG160_INT_MODE_NON_LATCH_INT
	.comm	_BMG160_INT_MODE_LATCH_RESET,4,2 ## @BMG160_INT_MODE_LATCH_RESET
L_.str.1:                               ## @.str.1
	.asciz	"Error writing reg_rst_latch\n"

	.comm	_BMG160_REG_INT_EN_0,4,2        ## @BMG160_REG_INT_EN_0
	.comm	_BMG160_DATA_ENABLE_INT,4,2     ## @BMG160_DATA_ENABLE_INT
	.comm	_BMG160_INT_MODE_LATCH_INT,4,2  ## @BMG160_INT_MODE_LATCH_INT
L_.str.2:                               ## @.str.2
	.asciz	"Error writing reg_int_en0\n"

	.no_dead_strip	_bmg160_setup_new_data_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmg160_setup_new_data_interrupt
_bmg160_setup_new_data_interrupt:       ; @bmg160_setup_new_data_interrupt
	.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	x22, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_regmap_get_device
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _BMG160_REG_INT_MAP_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMG160_REG_INT_MAP_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BMG160_INT_MAP_1_BIT_NEW_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMG160_INT_MAP_1_BIT_NEW_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cmp	w22, #0
	csel	w3, wzr, w2, eq
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _BMG160_REG_INT_RST_LATCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMG160_REG_INT_RST_LATCH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	cbz	w22, LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _BMG160_INT_MODE_NON_LATCH_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMG160_INT_MODE_NON_LATCH_INT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BMG160_INT_MODE_LATCH_RESET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BMG160_INT_MODE_LATCH_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	tbnz	w0, #31, LBB0_9
; %bb.3:
Lloh15:
	adrp	x8, _BMG160_DATA_ENABLE_INT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMG160_DATA_ENABLE_INT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	b	LBB0_7
LBB0_4:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh20:
	adrp	x8, _BMG160_INT_MODE_LATCH_INT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BMG160_INT_MODE_LATCH_INT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _BMG160_INT_MODE_LATCH_RESET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BMG160_INT_MODE_LATCH_RESET@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	w2, #0
LBB0_7:
	ldr	w0, [x20]
Lloh26:
	adrp	x8, _BMG160_REG_INT_EN_0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BMG160_REG_INT_EN_0@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	w21, #0
	b	LBB0_12
LBB0_9:
	mov	x21, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x21, x0
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_BMG160_REG_INT_MAP_1,4,2       ; @BMG160_REG_INT_MAP_1
	.comm	_BMG160_INT_MAP_1_BIT_NEW_DATA,4,2 ; @BMG160_INT_MAP_1_BIT_NEW_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error updating bits in reg_int_map1\n"

	.comm	_BMG160_REG_INT_RST_LATCH,4,2   ; @BMG160_REG_INT_RST_LATCH
	.comm	_BMG160_INT_MODE_NON_LATCH_INT,4,2 ; @BMG160_INT_MODE_NON_LATCH_INT
	.comm	_BMG160_INT_MODE_LATCH_RESET,4,2 ; @BMG160_INT_MODE_LATCH_RESET
l_.str.1:                               ; @.str.1
	.asciz	"Error writing reg_rst_latch\n"

	.comm	_BMG160_REG_INT_EN_0,4,2        ; @BMG160_REG_INT_EN_0
	.comm	_BMG160_DATA_ENABLE_INT,4,2     ; @BMG160_DATA_ENABLE_INT
	.comm	_BMG160_INT_MODE_LATCH_INT,4,2  ; @BMG160_INT_MODE_LATCH_INT
l_.str.2:                               ; @.str.2
	.asciz	"Error writing reg_int_en0\n"

	.no_dead_strip	_bmg160_setup_new_data_interrupt
.subsections_via_symbols
