	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_fifo_set_mode
_bmc150_accel_fifo_set_mode:            ## @bmc150_accel_fifo_set_mode
	.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	4(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movq	_BMC150_ACCEL_REG_FIFO_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edi
	movl	8(%rbx), %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movq	_BMC150_ACCEL_REG_FIFO_CONFIG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_7
LBB0_3:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_ACCEL_REG_FIFO_CONFIG1,4,2 ## @BMC150_ACCEL_REG_FIFO_CONFIG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing reg_fifo_config1\n"

	.comm	_BMC150_ACCEL_REG_FIFO_CONFIG0,4,2 ## @BMC150_ACCEL_REG_FIFO_CONFIG0
L_.str.1:                               ## @.str.1
	.asciz	"Error writing reg_fifo_config0\n"

	.no_dead_strip	_bmc150_accel_fifo_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_fifo_set_mode
_bmc150_accel_fifo_set_mode:            ; @bmc150_accel_fifo_set_mode
	.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, x0
	ldr	w0, [x0, #4]
	bl	_regmap_get_device
	mov	x19, x0
Lloh0:
	adrp	x8, _BMC150_ACCEL_REG_FIFO_CONFIG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMC150_ACCEL_REG_FIFO_CONFIG1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w0, w2, [x21, #4]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _BMC150_ACCEL_REG_FIFO_CONFIG0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMC150_ACCEL_REG_FIFO_CONFIG0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w2, w0, [x21]
	bl	_regmap_write
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_ACCEL_REG_FIFO_CONFIG1,4,2 ; @BMC150_ACCEL_REG_FIFO_CONFIG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing reg_fifo_config1\n"

	.comm	_BMC150_ACCEL_REG_FIFO_CONFIG0,4,2 ; @BMC150_ACCEL_REG_FIFO_CONFIG0
l_.str.1:                               ; @.str.1
	.asciz	"Error writing reg_fifo_config0\n"

	.no_dead_strip	_bmc150_accel_fifo_set_mode
.subsections_via_symbols
