	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl345_spi_probe
_adxl345_spi_probe:                     ## @adxl345_spi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spi_get_device_id
	movq	%rax, %r15
	movq	(%rbx), %rdx
	movq	_ADXL345_MAX_SPI_FREQ_HZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_1
## %bb.3:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_adxl345_spi_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_spi
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	addq	$8, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adxl345_core_probe             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADXL345_MAX_SPI_FREQ_HZ,8,3    ## @ADXL345_MAX_SPI_FREQ_HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI CLK, %d Hz exceeds 5 MHz\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_adxl345_spi_regmap_config,4,2  ## @adxl345_spi_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"Error initializing spi regmap: %ld\n"

	.no_dead_strip	_adxl345_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl345_spi_probe
_adxl345_spi_probe:                     ; @adxl345_spi_probe
	.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	x20, x0
	bl	_spi_get_device_id
	ldr	x2, [x20]
Lloh0:
	adrp	x8, _ADXL345_MAX_SPI_FREQ_HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADXL345_MAX_SPI_FREQ_HZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_2
; %bb.1:
	add	x0, x20, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_2:
	mov	x21, x0
Lloh8:
	adrp	x1, _adxl345_spi_regmap_config@GOTPAGE
Lloh9:
	ldr	x1, [x1, _adxl345_spi_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_spi
	mov	x19, x0
	bl	_IS_ERR
	add	x20, x20, #8
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_4:
	ldp	w3, w2, [x21]
	mov	x0, x20
	mov	x1, x19
	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
	b	_adxl345_core_probe
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ADXL345_MAX_SPI_FREQ_HZ,8,3    ; @ADXL345_MAX_SPI_FREQ_HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI CLK, %d Hz exceeds 5 MHz\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_adxl345_spi_regmap_config,4,2  ; @adxl345_spi_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"Error initializing spi regmap: %ld\n"

	.no_dead_strip	_adxl345_spi_probe
.subsections_via_symbols
