	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adxl345_core_probe             ## -- Begin function adxl345_core_probe
	.p2align	4, 0x90
_adxl345_core_probe:                    ## @adxl345_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ADXL345_REG_DEVID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	-44(%rbp), %edx
	movq	_ADXL345_DEVID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_9
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	%r15, 8(%rbx)
	movl	%r13d, (%rbx)
	movq	%rbx, %r13
	movq	_ADXL345_DATA_FORMAT_FULL_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 16(%rbx)
	movq	_ADXL345_REG_DATA_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movq	%r14, 32(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movq	_adxl345_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_adxl345_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r12)
	movq	8(%r13), %rdi
	movq	_ADXL345_REG_POWER_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ADXL345_POWER_CTL_MEASURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_12
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r13), %rdi
	movl	(%r15), %esi
	movq	_ADXL345_POWER_CTL_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_14:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ADXL345_REG_DEVID,4,2          ## @ADXL345_REG_DEVID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading device ID: %d\n"

	.comm	_ADXL345_DEVID,4,2              ## @ADXL345_DEVID
L_.str.1:                               ## @.str.1
	.asciz	"Invalid device ID: %x, expected %x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ADXL345_DATA_FORMAT_FULL_RES,4,2 ## @ADXL345_DATA_FORMAT_FULL_RES
	.comm	_ADXL345_REG_DATA_FORMAT,4,2    ## @ADXL345_REG_DATA_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set data range: %d\n"

	.comm	_adxl345_info,4,2               ## @adxl345_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_adxl345_channels,4,2           ## @adxl345_channels
	.comm	_ADXL345_REG_POWER_CTL,4,2      ## @ADXL345_REG_POWER_CTL
	.comm	_ADXL345_POWER_CTL_MEASURE,4,2  ## @ADXL345_POWER_CTL_MEASURE
L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable measurement mode: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"iio_device_register failed: %d\n"

	.comm	_ADXL345_POWER_CTL_STANDBY,4,2  ## @ADXL345_POWER_CTL_STANDBY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adxl345_core_probe             ; -- Begin function adxl345_core_probe
	.p2align	2
_adxl345_core_probe:                    ; @adxl345_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x3
	mov	x25, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ADXL345_REG_DEVID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADXL345_REG_DEVID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x24
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w2, [sp, #12]
Lloh3:
	adrp	x8, _ADXL345_DEVID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADXL345_DEVID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_dev_set_drvdata
	str	x24, [x21, #8]
Lloh6:
	adrp	x8, _ADXL345_DATA_FORMAT_FULL_RES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADXL345_DATA_FORMAT_FULL_RES@GOTPAGEOFF]
	str	w25, [x21]
Lloh8:
	ldr	w2, [x8]
	str	w2, [x21, #16]
Lloh9:
	adrp	x8, _ADXL345_REG_DATA_FORMAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADXL345_REG_DATA_FORMAT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_regmap_write
	tbnz	w0, #31, LBB0_13
; %bb.4:
	str	x23, [x22]
Lloh12:
	adrp	x8, _adxl345_info@GOTPAGE
Lloh13:
	ldr	x8, [x8, _adxl345_info@GOTPAGEOFF]
	stp	x8, x19, [x22, #24]
Lloh14:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _adxl345_channels@GOTPAGE
Lloh18:
	ldr	x9, [x9, _adxl345_channels@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	stp	w0, w8, [x22, #12]
	bl	_ARRAY_SIZE
	str	w0, [x22, #8]
	ldr	x0, [x21, #8]
Lloh20:
	adrp	x23, _ADXL345_REG_POWER_CTL@GOTPAGE
Lloh21:
	ldr	x23, [x23, _ADXL345_REG_POWER_CTL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh22:
	adrp	x8, _ADXL345_POWER_CTL_MEASURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ADXL345_POWER_CTL_MEASURE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_14
; %bb.5:
	mov	x0, x22
	bl	_iio_device_register
	mov	x20, x0
	tbz	w0, #31, LBB0_12
; %bb.6:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	ldr	x0, [x21, #8]
	ldr	w1, [x23]
Lloh27:
	adrp	x8, _ADXL345_POWER_CTL_STANDBY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ADXL345_POWER_CTL_STANDBY@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_regmap_write
	b	LBB0_12
LBB0_7:
	mov	x20, x0
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_12
LBB0_9:
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh34:
	adrp	x8, _ENODEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x20, x0
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_14:
	mov	x20, x0
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ADXL345_REG_DEVID,4,2          ; @ADXL345_REG_DEVID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading device ID: %d\n"

	.comm	_ADXL345_DEVID,4,2              ; @ADXL345_DEVID
l_.str.1:                               ; @.str.1
	.asciz	"Invalid device ID: %x, expected %x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ADXL345_DATA_FORMAT_FULL_RES,4,2 ; @ADXL345_DATA_FORMAT_FULL_RES
	.comm	_ADXL345_REG_DATA_FORMAT,4,2    ; @ADXL345_REG_DATA_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set data range: %d\n"

	.comm	_adxl345_info,4,2               ; @adxl345_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_adxl345_channels,4,2           ; @adxl345_channels
	.comm	_ADXL345_REG_POWER_CTL,4,2      ; @ADXL345_REG_POWER_CTL
	.comm	_ADXL345_POWER_CTL_MEASURE,4,2  ; @ADXL345_POWER_CTL_MEASURE
l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable measurement mode: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"iio_device_register failed: %d\n"

	.comm	_ADXL345_POWER_CTL_STANDBY,4,2  ; @ADXL345_POWER_CTL_STANDBY
.subsections_via_symbols
