	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fxas21002c_axis_get
_fxas21002c_axis_get:                   ## @fxas21002c_axis_get
	.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, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_fxas21002c_pm_get
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%r12), %ebx
	movl	%r15d, %edi
	callq	_FXAS21002C_AXIS_TO_REG
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-44(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, %edi
	movl	$15, %esi
	callq	_sign_extend32
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_fxas21002c_pm_put
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read axis: %d: %d\n"

	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_fxas21002c_axis_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fxas21002c_axis_get
_fxas21002c_axis_get:                   ; @fxas21002c_axis_get
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_regmap_get_device
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_fxas21002c_pm_get
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w23, [x19, #4]
	mov	x0, x21
	bl	_FXAS21002C_AXIS_TO_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x23
	mov	w3, #4
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_be16_to_cpu
	mov	w1, #15
	bl	_sign_extend32
	str	w0, [x20]
	mov	x0, x19
	bl	_fxas21002c_pm_put
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w23, w0, w8, lt
	b	LBB0_5
LBB0_3:
	mov	x23, x0
	b	LBB0_5
LBB0_4:
	mov	x23, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	bl	_dev_err
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read axis: %d: %d\n"

	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_fxas21002c_axis_get
.subsections_via_symbols
