	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_update_slope
_bmc150_accel_update_slope:             ## @bmc150_accel_update_slope
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movl	4(%rbx), %edx
	movl	8(%rbx), %edi
	movq	_BMC150_ACCEL_REG_INT_6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	movl	8(%rbx), %edi
	movq	_BMC150_ACCEL_REG_INT_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMC150_ACCEL_SLOPE_DUR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_ACCEL_REG_INT_6,4,2     ## @BMC150_ACCEL_REG_INT_6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing reg_int_6\n"

	.comm	_BMC150_ACCEL_REG_INT_5,4,2     ## @BMC150_ACCEL_REG_INT_5
	.comm	_BMC150_ACCEL_SLOPE_DUR_MASK,4,2 ## @BMC150_ACCEL_SLOPE_DUR_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Error updating reg_int_5\n"

L_.str.2:                               ## @.str.2
	.asciz	"%x %x\n"

	.no_dead_strip	_bmc150_accel_update_slope
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_update_slope
_bmc150_accel_update_slope:             ; @bmc150_accel_update_slope
	.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	x20, x0
	ldr	w0, [x0, #8]
	bl	_regmap_get_device
	mov	x19, x0
Lloh0:
	adrp	x8, _BMC150_ACCEL_REG_INT_6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMC150_ACCEL_REG_INT_6@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w2, w0, [x20, #4]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _BMC150_ACCEL_REG_INT_5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMC150_ACCEL_REG_INT_5@GOTPAGEOFF]
	ldr	w0, [x20, #8]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _BMC150_ACCEL_SLOPE_DUR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMC150_ACCEL_SLOPE_DUR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x20]
	bl	_regmap_update_bits
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldp	w3, w2, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_6
LBB0_3:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
LBB0_6:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_ACCEL_REG_INT_6,4,2     ; @BMC150_ACCEL_REG_INT_6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing reg_int_6\n"

	.comm	_BMC150_ACCEL_REG_INT_5,4,2     ; @BMC150_ACCEL_REG_INT_5
	.comm	_BMC150_ACCEL_SLOPE_DUR_MASK,4,2 ; @BMC150_ACCEL_SLOPE_DUR_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Error updating reg_int_5\n"

l_.str.2:                               ; @.str.2
	.asciz	"%x %x\n"

	.no_dead_strip	_bmc150_accel_update_slope
.subsections_via_symbols
