	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function magn_3d_capture_sample
_magn_3d_capture_sample:                ## @magn_3d_capture_sample
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %rdi
	movq	%rcx, %r14
	movl	%esi, %ebx
	callq	_platform_get_drvdata
	movq	%rax, %rdi
	callq	_iio_priv
	leal	-128(%rbx), %ecx
	cmpl	$7, %ecx
	jae	LBB0_3
## %bb.1:
	movslq	%ecx, %rcx
	leaq	l_switch.table.magn_3d_capture_sample(%rip), %rdx
	leaq	l_switch.table.magn_3d_capture_sample.1(%rip), %rsi
	movq	(%rsi,%rcx,8), %rsi
	addl	(%rdx,%rcx,4), %ebx
	addl	(%rsi), %ebx
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_SCAN_INDEX_X,4,2       ## @CHANNEL_SCAN_INDEX_X
	.comm	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP,4,2 ## @CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_magn_3d_capture_sample
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.magn_3d_capture_sample
l_switch.table.magn_3d_capture_sample:
	.long	4294967162                      ## 0xffffff7a
	.long	4294967162                      ## 0xffffff7a
	.long	4294967164                      ## 0xffffff7c
	.long	4294967164                      ## 0xffffff7c
	.long	4294967164                      ## 0xffffff7c
	.long	4294967162                      ## 0xffffff7a
	.long	4294967162                      ## 0xffffff7a

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.magn_3d_capture_sample.1
l_switch.table.magn_3d_capture_sample.1:
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.quad	_CHANNEL_SCAN_INDEX_X
	.quad	_CHANNEL_SCAN_INDEX_X
	.quad	_CHANNEL_SCAN_INDEX_X
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function magn_3d_capture_sample
_magn_3d_capture_sample:                ; @magn_3d_capture_sample
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x0, x4
	mov	x19, x3
	mov	x20, x1
	bl	_platform_get_drvdata
	bl	_iio_priv
	sub	w8, w20, #128
	cmp	w8, #7
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.magn_3d_capture_sample@PAGE
Lloh1:
	add	x9, x9, l_switch.table.magn_3d_capture_sample@PAGEOFF
	ldr	w9, [x9, w8, sxtw #2]
Lloh2:
	adrp	x10, l_switch.table.magn_3d_capture_sample.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.magn_3d_capture_sample.1@PAGEOFF
	ldr	x8, [x10, w8, sxtw #3]
	ldr	w8, [x8]
	add	w9, w9, w20
	add	w8, w9, w8
	ldr	x9, [x0]
	ldr	x8, [x9, w8, sxtw #3]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	w9, [x19]
	str	w9, [x8]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_SCAN_INDEX_X,4,2       ; @CHANNEL_SCAN_INDEX_X
	.comm	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP,4,2 ; @CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_magn_3d_capture_sample
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.magn_3d_capture_sample
l_switch.table.magn_3d_capture_sample:
	.long	4294967162                      ; 0xffffff7a
	.long	4294967162                      ; 0xffffff7a
	.long	4294967164                      ; 0xffffff7c
	.long	4294967164                      ; 0xffffff7c
	.long	4294967164                      ; 0xffffff7c
	.long	4294967162                      ; 0xffffff7a
	.long	4294967162                      ; 0xffffff7a

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.magn_3d_capture_sample.1
l_switch.table.magn_3d_capture_sample.1:
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.quad	_CHANNEL_SCAN_INDEX_X
	.quad	_CHANNEL_SCAN_INDEX_X
	.quad	_CHANNEL_SCAN_INDEX_X
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.quad	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP

.subsections_via_symbols
