	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxrs450_spi_initial
_adxrs450_spi_initial:                  ## @adxrs450_spi_initial
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movabsq	$17179869192, %rax              ## imm = 0x400000008
	movq	%rax, -56(%rbp)
	leaq	4(%rdi), %r12
	movq	%r12, -48(%rbp)
	leaq	16(%rdi), %rax
	movq	%rax, -40(%rbp)
	callq	_mutex_lock
	movq	_ADXRS450_SENSOR_DATA@GOTPCREL(%rip), %rax
	movq	_ADXRS450_CHK@GOTPCREL(%rip), %rcx
	movq	_ADXRS450_P@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%edi, %edi
	testb	%r15b, %r15b
	cmovnel	%edx, %edi
	orl	(%rax), %edi
	callq	_cpu_to_be32
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_spi_sync_transfer
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movl	(%r12), %edi
	callq	_be32_to_cpu
	movl	%eax, (%r14)
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADXRS450_SENSOR_DATA,4,2       ## @ADXRS450_SENSOR_DATA
	.comm	_ADXRS450_CHK,4,2               ## @ADXRS450_CHK
	.comm	_ADXRS450_P,4,2                 ## @ADXRS450_P
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Problem while reading initializing data\n"

	.no_dead_strip	_adxrs450_spi_initial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function adxrs450_spi_initial
lCPI0_0:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_adxrs450_spi_initial:                  ; @adxrs450_spi_initial
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	add	x22, x0, #4
	add	x8, x0, #16
	stp	x22, x8, [sp, #16]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ADXRS450_SENSOR_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADXRS450_SENSOR_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ADXRS450_CHK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADXRS450_CHK@GOTPAGEOFF]
Lloh7:
	adrp	x10, _ADXRS450_P@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ADXRS450_P@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w0, w9, w8
	bl	_cpu_to_be32
	str	w0, [x19, #16]
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_spi_sync_transfer
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	ldr	w0, [x22]
	bl	_be32_to_cpu
	str	w0, [x20]
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ADXRS450_SENSOR_DATA,4,2       ; @ADXRS450_SENSOR_DATA
	.comm	_ADXRS450_CHK,4,2               ; @ADXRS450_CHK
	.comm	_ADXRS450_P,4,2                 ; @ADXRS450_P
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Problem while reading initializing data\n"

	.no_dead_strip	_adxrs450_spi_initial
.subsections_via_symbols
