	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mma7455_core_probe             ## -- Begin function mma7455_core_probe
	.p2align	4, 0x90
_mma7455_core_probe:                    ## @mma7455_core_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_MMA7455_REG_WHOAMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_2:
	movl	-44(%rbp), %eax
	movq	_MMA7455_WHOAMI_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r13, (%rax)
	movq	_mma7455_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r12, (%r14)
	movq	%r15, 24(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_mma7455_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r14)
	movq	_mma7455_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%rbx), %rdi
	movq	_MMA7455_REG_MCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMA7455_MCTL_MODE_MEASURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movq	_mma7455_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_11:
	movl	%r12d, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA7455_REG_WHOAMI,4,2         ## @MMA7455_REG_WHOAMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read reg\n"

	.comm	_MMA7455_WHOAMI_ID,4,2          ## @MMA7455_WHOAMI_ID
L_.str.1:                               ## @.str.1
	.asciz	"device id mismatch\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mma7455_info,4,2               ## @mma7455_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mma7455_channels,4,2           ## @mma7455_channels
	.comm	_mma7455_scan_masks,4,2         ## @mma7455_scan_masks
	.comm	_MMA7455_REG_MCTL,4,2           ## @MMA7455_REG_MCTL
	.comm	_MMA7455_MCTL_MODE_MEASURE,4,2  ## @MMA7455_MCTL_MODE_MEASURE
	.comm	_mma7455_trigger_handler,4,2    ## @mma7455_trigger_handler
L_.str.2:                               ## @.str.2
	.asciz	"unable to setup triggered buffer\n"

L_.str.3:                               ## @.str.3
	.asciz	"unable to register device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mma7455_core_probe             ; -- Begin function mma7455_core_probe
	.p2align	2
_mma7455_core_probe:                    ; @mma7455_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MMA7455_REG_WHOAMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMA7455_REG_WHOAMI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x23
	bl	_regmap_read
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_3:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _MMA7455_WHOAMI_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMA7455_WHOAMI_ID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #8
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
Lloh8:
	adrp	x8, _mma7455_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mma7455_info@GOTPAGEOFF]
	str	x23, [x0]
	str	x22, [x20]
	stp	x19, x8, [x20, #24]
Lloh10:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _mma7455_channels@GOTPAGE
Lloh14:
	ldr	x9, [x9, _mma7455_channels@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #16]
	bl	_ARRAY_SIZE
Lloh16:
	adrp	x8, _mma7455_scan_masks@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mma7455_scan_masks@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #8]
	ldr	x0, [x21]
Lloh19:
	adrp	x8, _MMA7455_REG_MCTL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MMA7455_REG_MCTL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MMA7455_MCTL_MODE_MEASURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMA7455_MCTL_MODE_MEASURE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_regmap_write
Lloh25:
	adrp	x8, _mma7455_trigger_handler@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mma7455_trigger_handler@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	cbz	w0, LBB0_11
; %bb.6:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_7:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh32:
	adrp	x8, _ENODEV@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_11:
	mov	x0, x20
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.12:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_iio_triggered_buffer_cleanup
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA7455_REG_WHOAMI,4,2         ; @MMA7455_REG_WHOAMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read reg\n"

	.comm	_MMA7455_WHOAMI_ID,4,2          ; @MMA7455_WHOAMI_ID
l_.str.1:                               ; @.str.1
	.asciz	"device id mismatch\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mma7455_info,4,2               ; @mma7455_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mma7455_channels,4,2           ; @mma7455_channels
	.comm	_mma7455_scan_masks,4,2         ; @mma7455_scan_masks
	.comm	_MMA7455_REG_MCTL,4,2           ; @MMA7455_REG_MCTL
	.comm	_MMA7455_MCTL_MODE_MEASURE,4,2  ; @MMA7455_MCTL_MODE_MEASURE
	.comm	_mma7455_trigger_handler,4,2    ; @mma7455_trigger_handler
l_.str.2:                               ; @.str.2
	.asciz	"unable to setup triggered buffer\n"

l_.str.3:                               ; @.str.3
	.asciz	"unable to register device\n"

.subsections_via_symbols
