	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max31785_read_word_data
_max31785_read_word_data:               ## @max31785_read_word_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
                                        ## kill: def $edx killed $edx def $rdx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	jmp	_max31785_get_pwm_mode          ## TAILCALL
LBB0_7:
	addq	$16, %rsp
	popq	%rbp
	jmp	_max31785_get_pwm               ## TAILCALL
LBB0_2:
	movq	_MAX31785_NR_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jg	LBB0_9
## %bb.3:
	subl	%eax, %esi
	leaq	-4(%rbp), %rcx
	movl	$130, %edx
	callq	_max31785_read_long_data
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movzwl	-2(%rbp), %eax
	jmp	LBB0_11
LBB0_5:
	movq	_MAX31785_NR_PAGES@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_6
LBB0_9:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_MAX31785_NR_PAGES,4,2          ## @MAX31785_NR_PAGES
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_max31785_read_word_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max31785_read_word_data
_max31785_read_word_data:               ; @max31785_read_word_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.1:
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:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_max31785_get_pwm_mode
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_max31785_get_pwm
LBB0_4:
Lloh2:
	adrp	x8, _MAX31785_NR_PAGES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX31785_NR_PAGES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _ENODATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _MAX31785_NR_PAGES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX31785_NR_PAGES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _ENOTSUPP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ENOTSUPP@GOTPAGEOFF]
Lloh12:
	adrp	x10, _ENODATA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ENODATA@GOTPAGEOFF]
	cmp	w8, w1
	csel	x8, x10, x9, gt
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_9:
	sub	w1, w1, w8
	sub	x3, x29, #4
	mov	w2, #130
	bl	_max31785_read_long_data
	tbnz	w0, #31, LBB0_8
; %bb.10:
	ldurh	w0, [x29, #-2]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX31785_NR_PAGES,4,2          ; @MAX31785_NR_PAGES
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_max31785_read_word_data
.subsections_via_symbols
