	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function noa1305_scale
_noa1305_scale:                         ## @noa1305_scale
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	movq	_NOA1305_REG_INTEGRATION_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	-20(%rbp), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.noa1305_scale(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.noa1305_scale.1(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	movl	%ecx, (%rbx)
	movl	%eax, (%r14)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOA1305_REG_INTEGRATION_TIME,4,2 ## @NOA1305_REG_INTEGRATION_TIME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.no_dead_strip	_noa1305_scale
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.noa1305_scale
l_switch.table.noa1305_scale:
	.long	100                             ## 0x64
	.long	1000000                         ## 0xf4240
	.long	1000                            ## 0x3e8
	.long	100                             ## 0x64
	.long	10000                           ## 0x2710
	.long	100                             ## 0x64
	.long	100000                          ## 0x186a0
	.long	100                             ## 0x64

	.p2align	2                               ## @switch.table.noa1305_scale.1
l_switch.table.noa1305_scale.1:
	.long	616                             ## 0x268
	.long	48125                           ## 0xbbfd
	.long	385                             ## 0x181
	.long	308                             ## 0x134
	.long	1925                            ## 0x785
	.long	154                             ## 0x9a
	.long	9625                            ## 0x2599
	.long	77                              ## 0x4d

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function noa1305_scale
_noa1305_scale:                         ; @noa1305_scale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _NOA1305_REG_INTEGRATION_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOA1305_REG_INTEGRATION_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hs	LBB0_3
; %bb.2:
	sbfiz	x8, x8, #2, #32
Lloh3:
	adrp	x9, l_switch.table.noa1305_scale@PAGE
Lloh4:
	add	x9, x9, l_switch.table.noa1305_scale@PAGEOFF
	ldr	w9, [x9, x8]
Lloh5:
	adrp	x10, l_switch.table.noa1305_scale.1@PAGE
Lloh6:
	add	x10, x10, l_switch.table.noa1305_scale.1@PAGEOFF
	ldr	w8, [x10, x8]
	str	w9, [x20]
	str	w8, [x19]
Lloh7:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NOA1305_REG_INTEGRATION_TIME,4,2 ; @NOA1305_REG_INTEGRATION_TIME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.no_dead_strip	_noa1305_scale
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.noa1305_scale
l_switch.table.noa1305_scale:
	.long	100                             ; 0x64
	.long	1000000                         ; 0xf4240
	.long	1000                            ; 0x3e8
	.long	100                             ; 0x64
	.long	10000                           ; 0x2710
	.long	100                             ; 0x64
	.long	100000                          ; 0x186a0
	.long	100                             ; 0x64

	.p2align	2                               ; @switch.table.noa1305_scale.1
l_switch.table.noa1305_scale.1:
	.long	616                             ; 0x268
	.long	48125                           ; 0xbbfd
	.long	385                             ; 0x181
	.long	308                             ; 0x134
	.long	1925                            ; 0x785
	.long	154                             ; 0x9a
	.long	9625                            ; 0x2599
	.long	77                              ; 0x4d

.subsections_via_symbols
