	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8452_read_hp_filter
_mma8452_read_hp_filter:                ## @mma8452_read_hp_filter
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %edi
	movq	_MMA8452_HP_FILTER_CUTOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_mma8452_get_odr_index
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_mma8452_get_power_mode
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_MMA8452_HP_FILTER_CUTOFF_SEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	movq	_mma8452_hp_filter_cutoff@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, %eax
	movq	(%rdx,%rax,8), %rax
	movslq	%r13d, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA8452_HP_FILTER_CUTOFF,4,2   ## @MMA8452_HP_FILTER_CUTOFF
	.comm	_MMA8452_HP_FILTER_CUTOFF_SEL_MASK,4,2 ## @MMA8452_HP_FILTER_CUTOFF_SEL_MASK
	.comm	_mma8452_hp_filter_cutoff,8,3   ## @mma8452_hp_filter_cutoff
	.no_dead_strip	_mma8452_read_hp_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma8452_read_hp_filter
_mma8452_read_hp_filter:                ; @mma8452_read_hp_filter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _MMA8452_HP_FILTER_CUTOFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMA8452_HP_FILTER_CUTOFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_mma8452_get_odr_index
	mov	x22, x0
	mov	x0, x23
	bl	_mma8452_get_power_mode
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _MMA8452_HP_FILTER_CUTOFF_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMA8452_HP_FILTER_CUTOFF_SEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, w21
	and	x8, x8, x9
Lloh6:
	adrp	x9, _mma8452_hp_filter_cutoff@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mma8452_hp_filter_cutoff@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x9, w0, uxtw #3]
	ldr	x9, [x9, w22, sxtw #3]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w9, [x8]
	str	w9, [x20]
	ldr	w8, [x8, #4]
	str	w8, [x19]
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x21
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA8452_HP_FILTER_CUTOFF,4,2   ; @MMA8452_HP_FILTER_CUTOFF
	.comm	_MMA8452_HP_FILTER_CUTOFF_SEL_MASK,4,2 ; @MMA8452_HP_FILTER_CUTOFF_SEL_MASK
	.comm	_mma8452_hp_filter_cutoff,8,3   ; @mma8452_hp_filter_cutoff
	.no_dead_strip	_mma8452_read_hp_filter
.subsections_via_symbols
