	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma150_set_high_g_interrupt
_bma150_set_high_g_interrupt:           ## @bma150_set_high_g_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	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_BMA150_HIGH_G_HYST_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BMA150_HIGH_G_HYST_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BMA150_HIGH_G_HYST_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_bma150_set_reg_bits
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movq	_BMA150_HIGH_G_DUR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_bma150_write_byte
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	movq	_BMA150_HIGH_G_THRES_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_bma150_write_byte
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	testl	%r14d, %r14d
	setne	%sil
	movq	_BMA150_HIGH_G_EN_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMA150_HIGH_G_EN_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BMA150_HIGH_G_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bma150_set_reg_bits            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BMA150_HIGH_G_HYST_POS,4,2     ## @BMA150_HIGH_G_HYST_POS
	.comm	_BMA150_HIGH_G_HYST_MSK,4,2     ## @BMA150_HIGH_G_HYST_MSK
	.comm	_BMA150_HIGH_G_HYST_REG,4,2     ## @BMA150_HIGH_G_HYST_REG
	.comm	_BMA150_HIGH_G_DUR_REG,4,2      ## @BMA150_HIGH_G_DUR_REG
	.comm	_BMA150_HIGH_G_THRES_REG,4,2    ## @BMA150_HIGH_G_THRES_REG
	.comm	_BMA150_HIGH_G_EN_POS,4,2       ## @BMA150_HIGH_G_EN_POS
	.comm	_BMA150_HIGH_G_EN_MSK,4,2       ## @BMA150_HIGH_G_EN_MSK
	.comm	_BMA150_HIGH_G_EN_REG,4,2       ## @BMA150_HIGH_G_EN_REG
	.no_dead_strip	_bma150_set_high_g_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma150_set_high_g_interrupt
_bma150_set_high_g_interrupt:           ; @bma150_set_high_g_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	x21, x4
	mov	x22, x3
	mov	x8, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x9, _BMA150_HIGH_G_HYST_POS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BMA150_HIGH_G_HYST_POS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x9, _BMA150_HIGH_G_HYST_MSK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BMA150_HIGH_G_HYST_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
Lloh6:
	adrp	x9, _BMA150_HIGH_G_HYST_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BMA150_HIGH_G_HYST_REG@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
	mov	x1, x8
	bl	_bma150_set_reg_bits
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _BMA150_HIGH_G_DUR_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMA150_HIGH_G_DUR_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_bma150_write_byte
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _BMA150_HIGH_G_THRES_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMA150_HIGH_G_THRES_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_bma150_write_byte
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	w0, [x20]
	cmp	w19, #0
	cset	w1, ne
Lloh15:
	adrp	x8, _BMA150_HIGH_G_EN_POS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMA150_HIGH_G_EN_POS@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _BMA150_HIGH_G_EN_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMA150_HIGH_G_EN_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _BMA150_HIGH_G_EN_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BMA150_HIGH_G_EN_REG@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	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
	b	_bma150_set_reg_bits
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BMA150_HIGH_G_HYST_POS,4,2     ; @BMA150_HIGH_G_HYST_POS
	.comm	_BMA150_HIGH_G_HYST_MSK,4,2     ; @BMA150_HIGH_G_HYST_MSK
	.comm	_BMA150_HIGH_G_HYST_REG,4,2     ; @BMA150_HIGH_G_HYST_REG
	.comm	_BMA150_HIGH_G_DUR_REG,4,2      ; @BMA150_HIGH_G_DUR_REG
	.comm	_BMA150_HIGH_G_THRES_REG,4,2    ; @BMA150_HIGH_G_THRES_REG
	.comm	_BMA150_HIGH_G_EN_POS,4,2       ; @BMA150_HIGH_G_EN_POS
	.comm	_BMA150_HIGH_G_EN_MSK,4,2       ; @BMA150_HIGH_G_EN_MSK
	.comm	_BMA150_HIGH_G_EN_REG,4,2       ; @BMA150_HIGH_G_EN_REG
	.no_dead_strip	_bma150_set_high_g_interrupt
.subsections_via_symbols
