	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8452_probe
_mma8452_probe:                         ## @mma8452_probe
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_mma8452_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %r13
	movq	%r13, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	$56, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rax, %r15
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r12, 48(%rax)
	leaq	40(%rax), %rdi
	callq	_mutex_init
	movq	8(%r14), %rax
	movq	%rax, 32(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movq	%rbx, %r14
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	8(%r14), %rdi
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movq	%rbx, %r14
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	16(%r14), %rdi
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	movq	8(%rbx), %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_15:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_17:
	movq	_MMA8452_WHO_AM_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_27
## %bb.18:
	movl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_26
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_26
## %bb.20:
	movl	(%r14), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_dev_info
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	_mma8452_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r13, 16(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	32(%r14), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	12(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_mma8452_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_mma8452_reset
	testl	%eax, %eax
	js	LBB0_29
## %bb.21:
	movq	_MMA8452_DATA_CFG_FS_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%r14)
	movq	_MMA8452_DATA_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_29
## %bb.22:
	movq	_MMA8452_TRANSIENT_THS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMA8452_TRANSIENT_THS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_29
## %bb.23:
	cmpl	$0, (%r12)
	je	LBB0_36
## %bb.24:
	movl	4(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_of_irq_get_byname
	cmpl	(%r12), %eax
	jne	LBB0_32
## %bb.25:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_34
LBB0_26:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_32:
	movq	_MMA8452_CTRL_REG5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movl	4(%rax), %edx
	movq	%r12, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_29
## %bb.33:
	leaq	L_.str.10(%rip), %rsi
LBB0_34:
	movq	%r13, %rdi
	callq	_dev_dbg
	movq	_MMA8452_CTRL_REG4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movl	8(%rax), %edx
	movq	%r12, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_29
## %bb.35:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mma8452_trigger_setup
	testl	%eax, %eax
	js	LBB0_29
LBB0_36:
	movq	_MMA8452_CTRL_DR_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MMA8452_CTRL_DR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MMA8452_CTRL_ACTIVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_mma8452_calculate_sleep
	movl	%eax, 24(%rbx)
	movq	_MMA8452_CTRL_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_47
## %bb.37:
	movq	_mma8452_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_47
## %bb.38:
	movl	(%r12), %esi
	testl	%esi, %esi
	je	LBB0_40
## %bb.39:
	movq	_mma8452_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movl	8(%r12), %r9d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
LBB0_40:
	movq	%r13, %rdi
	callq	_pm_runtime_set_active
	testl	%eax, %eax
	js	LBB0_43
## %bb.41:
	movq	%r13, %rdi
	callq	_pm_runtime_enable
	movq	_MMA8452_AUTO_SUSPEND_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r13, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_device_register
	testl	%eax, %eax
	js	LBB0_43
## %bb.42:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_mma8452_set_freefall_mode
	testl	%eax, %eax
	jns	LBB0_8
LBB0_43:
	movl	%eax, %ebx
LBB0_44:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_triggered_buffer_cleanup
	jmp	LBB0_48
LBB0_29:
	movl	%eax, %ebx
LBB0_27:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rdi
	callq	_regulator_disable
LBB0_28:
	movq	8(%r14), %rdi
	callq	_regulator_disable
	jmp	LBB0_8
LBB0_47:
	movl	%eax, %ebx
LBB0_48:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mma8452_trigger_cleanup
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_mma8452_dt_ids,4,2             ## @mma8452_dt_ids
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown device model\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"vdd"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"failed to get VDD regulator!\n"

L_.str.3:                               ## @.str.3
	.asciz	"vddio"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get VDDIO regulator!\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to enable VDD regulator!\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to enable VDDIO regulator!\n"

	.comm	_MMA8452_WHO_AM_I,4,2           ## @MMA8452_WHO_AM_I
L_.str.7:                               ## @.str.7
	.asciz	"registering %s accelerometer; ID 0x%x\n"

	.comm	_mma8452_info,4,2               ## @mma8452_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mma8452_scan_masks,4,2         ## @mma8452_scan_masks
	.comm	_MMA8452_DATA_CFG_FS_2G,4,2     ## @MMA8452_DATA_CFG_FS_2G
	.comm	_MMA8452_DATA_CFG,4,2           ## @MMA8452_DATA_CFG
	.comm	_MMA8452_TRANSIENT_THS,4,2      ## @MMA8452_TRANSIENT_THS
	.comm	_MMA8452_TRANSIENT_THS_MASK,4,2 ## @MMA8452_TRANSIENT_THS_MASK
L_.str.8:                               ## @.str.8
	.asciz	"INT2"

L_.str.9:                               ## @.str.9
	.asciz	"using interrupt line INT2\n"

	.comm	_MMA8452_CTRL_REG5,4,2          ## @MMA8452_CTRL_REG5
L_.str.10:                              ## @.str.10
	.asciz	"using interrupt line INT1\n"

	.comm	_MMA8452_CTRL_REG4,4,2          ## @MMA8452_CTRL_REG4
	.comm	_MMA8452_CTRL_ACTIVE,4,2        ## @MMA8452_CTRL_ACTIVE
	.comm	_MMA8452_CTRL_DR_DEFAULT,4,2    ## @MMA8452_CTRL_DR_DEFAULT
	.comm	_MMA8452_CTRL_DR_SHIFT,4,2      ## @MMA8452_CTRL_DR_SHIFT
	.comm	_MMA8452_CTRL_REG1,4,2          ## @MMA8452_CTRL_REG1
	.comm	_mma8452_trigger_handler,4,2    ## @mma8452_trigger_handler
	.comm	_mma8452_interrupt,4,2          ## @mma8452_interrupt
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_MMA8452_AUTO_SUSPEND_DELAY_MS,4,2 ## @MMA8452_AUTO_SUSPEND_DELAY_MS
	.no_dead_strip	_mma8452_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma8452_probe
_mma8452_probe:                         ; @mma8452_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _mma8452_dt_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mma8452_dt_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x22, #4
	mov	x1, x20
	bl	_of_match_device
	cbz	x0, LBB0_5
; %bb.1:
	mov	x25, x0
	mov	x0, x20
	mov	w1, #56
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	str	x22, [x0, #48]
	add	x0, x0, #40
	bl	_mutex_init
	ldr	x8, [x25, #8]
	str	x8, [x19, #32]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x23, x0
Lloh5:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	b	LBB0_12
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x23, x0
Lloh18:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.11:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_13:
	ldr	x0, [x19, #8]
	bl	_regulator_enable
	cbz	w0, LBB0_15
; %bb.14:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_8
LBB0_15:
	ldr	x0, [x19, #16]
	bl	_regulator_enable
	cbz	w0, LBB0_17
; %bb.16:
	mov	x23, x0
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_42
LBB0_17:
Lloh27:
	adrp	x8, _MMA8452_WHO_AM_I@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MMA8452_WHO_AM_I@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	tbnz	w0, #31, LBB0_41
; %bb.18:
	sub	w8, w23, #128
	cmp	w8, #5
	b.hi	LBB0_26
; %bb.19:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_26
; %bb.20:
	ldr	w2, [x25]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x3, x23
	bl	_dev_info
	mov	x0, x22
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh32:
	adrp	x8, _mma8452_info@GOTPAGE
Lloh33:
	ldr	x8, [x8, _mma8452_info@GOTPAGEOFF]
	str	x8, [x21, #32]
	ldr	w8, [x24]
	str	w8, [x21, #24]
	str	x20, [x21, #16]
Lloh34:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	ldr	x8, [x19, #32]
	ldur	d0, [x8, #12]
	stur	d0, [x21, #4]
Lloh37:
	adrp	x8, _mma8452_scan_masks@GOTPAGE
Lloh38:
	ldr	x8, [x8, _mma8452_scan_masks@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x22
	bl	_mma8452_reset
	tbnz	w0, #31, LBB0_40
; %bb.21:
Lloh40:
	adrp	x8, _MMA8452_DATA_CFG_FS_2G@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MMA8452_DATA_CFG_FS_2G@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	str	w2, [x19]
Lloh43:
	adrp	x8, _MMA8452_DATA_CFG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MMA8452_DATA_CFG@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_40
; %bb.22:
Lloh46:
	adrp	x8, _MMA8452_TRANSIENT_THS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MMA8452_TRANSIENT_THS@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _MMA8452_TRANSIENT_THS_MASK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MMA8452_TRANSIENT_THS_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_40
; %bb.23:
	ldr	w8, [x22]
	cbz	w8, LBB0_31
; %bb.24:
	ldr	w0, [x22, #4]
Lloh52:
	adrp	x1, l_.str.8@PAGE
Lloh53:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_of_irq_get_byname
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.25:
Lloh54:
	adrp	x1, l_.str.9@PAGE
Lloh55:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_29
LBB0_26:
Lloh56:
	adrp	x8, _ENODEV@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_41
LBB0_27:
Lloh59:
	adrp	x8, _MMA8452_CTRL_REG5@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MMA8452_CTRL_REG5@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	ldr	w2, [x8, #4]
	mov	x0, x22
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_40
; %bb.28:
Lloh62:
	adrp	x1, l_.str.10@PAGE
Lloh63:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_29:
	mov	x0, x20
	bl	_dev_dbg
Lloh64:
	adrp	x8, _MMA8452_CTRL_REG4@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MMA8452_CTRL_REG4@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	ldr	w2, [x8, #8]
	mov	x0, x22
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_40
; %bb.30:
	mov	x0, x21
	bl	_mma8452_trigger_setup
	tbnz	w0, #31, LBB0_40
LBB0_31:
Lloh67:
	adrp	x8, _MMA8452_CTRL_ACTIVE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MMA8452_CTRL_ACTIVE@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
Lloh70:
	adrp	x9, _MMA8452_CTRL_DR_DEFAULT@GOTPAGE
Lloh71:
	ldr	x9, [x9, _MMA8452_CTRL_DR_DEFAULT@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
Lloh73:
	adrp	x10, _MMA8452_CTRL_DR_SHIFT@GOTPAGE
Lloh74:
	ldr	x10, [x10, _MMA8452_CTRL_DR_SHIFT@GOTPAGEOFF]
Lloh75:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_mma8452_calculate_sleep
	str	w0, [x19, #24]
Lloh76:
	adrp	x8, _MMA8452_CTRL_REG1@GOTPAGE
Lloh77:
	ldr	x8, [x8, _MMA8452_CTRL_REG1@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x22
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_43
; %bb.32:
Lloh79:
	adrp	x8, _mma8452_trigger_handler@GOTPAGE
Lloh80:
	ldr	x8, [x8, _mma8452_trigger_handler@GOTPAGEOFF]
Lloh81:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_43
; %bb.33:
	ldr	w1, [x22]
	cbz	w1, LBB0_35
; %bb.34:
Lloh82:
	adrp	x8, _mma8452_interrupt@GOTPAGE
Lloh83:
	ldr	x8, [x8, _mma8452_interrupt@GOTPAGEOFF]
Lloh84:
	ldr	w3, [x8]
Lloh85:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh86:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
Lloh88:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh89:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	orr	w4, w9, w8
	ldr	w5, [x22, #8]
	mov	x0, x20
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x23, x0
	cbnz	w0, LBB0_39
LBB0_35:
	mov	x0, x20
	bl	_pm_runtime_set_active
	tbnz	w0, #31, LBB0_38
; %bb.36:
	mov	x0, x20
	bl	_pm_runtime_enable
Lloh91:
	adrp	x8, _MMA8452_AUTO_SUSPEND_DELAY_MS@GOTPAGE
Lloh92:
	ldr	x8, [x8, _MMA8452_AUTO_SUSPEND_DELAY_MS@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x20
	bl	_pm_runtime_use_autosuspend
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_38
; %bb.37:
	mov	x0, x19
	mov	w1, #0
	bl	_mma8452_set_freefall_mode
	mov	w23, #0
	tbz	w0, #31, LBB0_8
LBB0_38:
	mov	x23, x0
LBB0_39:
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
	b	LBB0_44
LBB0_40:
	mov	x23, x0
LBB0_41:
	ldr	x0, [x19, #16]
	bl	_regulator_disable
LBB0_42:
	ldr	x0, [x19, #8]
	bl	_regulator_disable
	b	LBB0_8
LBB0_43:
	mov	x23, x0
LBB0_44:
	mov	x0, x21
	bl	_mma8452_trigger_cleanup
	b	LBB0_41
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.comm	_mma8452_dt_ids,4,2             ; @mma8452_dt_ids
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown device model\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"vdd"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"failed to get VDD regulator!\n"

l_.str.3:                               ; @.str.3
	.asciz	"vddio"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get VDDIO regulator!\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to enable VDD regulator!\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to enable VDDIO regulator!\n"

	.comm	_MMA8452_WHO_AM_I,4,2           ; @MMA8452_WHO_AM_I
l_.str.7:                               ; @.str.7
	.asciz	"registering %s accelerometer; ID 0x%x\n"

	.comm	_mma8452_info,4,2               ; @mma8452_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mma8452_scan_masks,4,2         ; @mma8452_scan_masks
	.comm	_MMA8452_DATA_CFG_FS_2G,4,2     ; @MMA8452_DATA_CFG_FS_2G
	.comm	_MMA8452_DATA_CFG,4,2           ; @MMA8452_DATA_CFG
	.comm	_MMA8452_TRANSIENT_THS,4,2      ; @MMA8452_TRANSIENT_THS
	.comm	_MMA8452_TRANSIENT_THS_MASK,4,2 ; @MMA8452_TRANSIENT_THS_MASK
l_.str.8:                               ; @.str.8
	.asciz	"INT2"

l_.str.9:                               ; @.str.9
	.asciz	"using interrupt line INT2\n"

	.comm	_MMA8452_CTRL_REG5,4,2          ; @MMA8452_CTRL_REG5
l_.str.10:                              ; @.str.10
	.asciz	"using interrupt line INT1\n"

	.comm	_MMA8452_CTRL_REG4,4,2          ; @MMA8452_CTRL_REG4
	.comm	_MMA8452_CTRL_ACTIVE,4,2        ; @MMA8452_CTRL_ACTIVE
	.comm	_MMA8452_CTRL_DR_DEFAULT,4,2    ; @MMA8452_CTRL_DR_DEFAULT
	.comm	_MMA8452_CTRL_DR_SHIFT,4,2      ; @MMA8452_CTRL_DR_SHIFT
	.comm	_MMA8452_CTRL_REG1,4,2          ; @MMA8452_CTRL_REG1
	.comm	_mma8452_trigger_handler,4,2    ; @mma8452_trigger_handler
	.comm	_mma8452_interrupt,4,2          ; @mma8452_interrupt
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_MMA8452_AUTO_SUSPEND_DELAY_MS,4,2 ; @MMA8452_AUTO_SUSPEND_DELAY_MS
	.no_dead_strip	_mma8452_probe
.subsections_via_symbols
