	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak8975_read_axis
_ak8975_read_axis:                      ## @ak8975_read_axis
	.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	%rdx, %r14
	movl	%esi, %r12d
	callq	_iio_priv
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ak8975_start_read_axis
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_4
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_i2c_smbus_read_i2c_block_data_or_emulated
	testl	%eax, %eax
	js	LBB0_2
## %bb.5:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	8(%rbx), %rdi
	callq	_pm_runtime_mark_last_busy
	movq	8(%rbx), %rdi
	callq	_pm_runtime_put_autosuspend
	movl	-44(%rbp), %edi
	callq	_le16_to_cpu
	movq	_s16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	negl	%edx
	movl	%eax, %esi
	callq	_clamp_t
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %r13d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_s16,4,2                        ## @s16
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in reading axis\n"

	.no_dead_strip	_ak8975_read_axis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak8975_read_axis
_ak8975_read_axis:                      ; @ak8975_read_axis
	.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	x19, x2
	mov	x22, x1
	bl	_iio_priv
	mov	x20, x0
	ldp	x21, x24, [x0, #8]
	mov	x0, x21
	bl	_pm_runtime_get_sync
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	bl	_ak8975_start_read_axis
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_mutex_unlock
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_4
LBB0_2:
	ldr	x8, [x24, #8]
	ldr	w1, [x8, w22, sxtw #2]
	add	x3, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_i2c_smbus_read_i2c_block_data_or_emulated
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x0, [x20, #8]
	bl	_pm_runtime_mark_last_busy
	ldr	x0, [x20, #8]
	bl	_pm_runtime_put_autosuspend
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	mov	x1, x0
Lloh2:
	adrp	x8, _s16@GOTPAGE
Lloh3:
	ldr	x8, [x8, _s16@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w3, [x24]
	neg	w2, w3
	bl	_clamp_t
	str	w0, [x19]
Lloh5:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
LBB0_4:
	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
LBB0_5:
	mov	x23, x0
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_s16,4,2                        ; @s16
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in reading axis\n"

	.no_dead_strip	_ak8975_read_axis
.subsections_via_symbols
