	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29501_get_scale
_isl29501_get_scale:                    ## @isl29501_get_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movl	$125, (%rbx)
	movl	$100000, (%r14)                 ## imm = 0x186A0
	jmp	LBB0_3
LBB0_2:
	movl	$3331, (%rbx)                   ## imm = 0xD03
	movl	$6553600, (%r14)                ## imm = 0x640000
	jmp	LBB0_3
LBB0_4:
	movl	$0, (%rbx)
	movl	$95874, (%r14)                  ## imm = 0x17682
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_5:
	movl	$35, (%rbx)
	movl	$10000, (%r14)                  ## imm = 0x2710
LBB0_3:
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_6:
	movq	_REG_DRIVER_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_isl29501_register_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movl	-36(%rbp), %r12d
	movq	_isl29501_current_scale_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jle	LBB0_8
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movslq	-36(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%r15), %rcx
	movq	-8(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_9:
	movl	$0, (%rbx)
	movl	$0, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_REG_DRIVER_RANGE,4,2           ## @REG_DRIVER_RANGE
	.comm	_isl29501_current_scale_table,8,3 ## @isl29501_current_scale_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_isl29501_get_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29501_get_scale
_isl29501_get_scale:                    ; @isl29501_get_scale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w8, #125
	str	w8, [x20]
	mov	w8, #34464
	movk	w8, #1, lsl #16
	b	LBB0_6
LBB0_3:
	mov	w8, #3331
	str	w8, [x20]
	mov	w8, #6553600
	b	LBB0_6
LBB0_4:
	str	wzr, [x20]
	mov	w8, #30338
	movk	w8, #1, lsl #16
	str	w8, [x19]
Lloh2:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
	mov	w8, #35
	str	w8, [x20]
	mov	w8, #10000
LBB0_6:
	str	w8, [x19]
Lloh5:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _REG_DRIVER_RANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_DRIVER_RANGE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_isl29501_register_read
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	w22, [sp, #12]
Lloh11:
	adrp	x21, _isl29501_current_scale_table@GOTPAGE
Lloh12:
	ldr	x21, [x21, _isl29501_current_scale_table@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.le	LBB0_11
LBB0_9:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.12:
	ldr	x9, [x21]
	sub	w8, w8, #1
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w9, [x8]
	str	w9, [x20]
	ldr	w8, [x8, #4]
	str	w8, [x19]
Lloh16:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_13:
	str	wzr, [x20]
	str	wzr, [x19]
Lloh19:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_REG_DRIVER_RANGE,4,2           ; @REG_DRIVER_RANGE
	.comm	_isl29501_current_scale_table,8,3 ; @isl29501_current_scale_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_isl29501_get_scale
.subsections_via_symbols
