	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc2978_read_word_data_common
_ltc2978_read_word_data_common:         ## @ltc2978_read_word_data_common
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_pmbus_get_driver_info
	movq	%rax, %rdi
	callq	_to_ltc2978_data
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_9
## %bb.1:
	movq	%rax, %r15
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_ltc_wait_ready
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	movq	_LTC2978_MFR_VOUT_PEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ltc_read_word_data
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	(%r15), %rdx
	movslq	%r14d, %rsi
	movl	(%rdx,%rsi,4), %eax
	cmpl	%eax, %ecx
	jle	LBB0_11
## %bb.7:
	movl	%ecx, (%rdx,%rsi,4)
	movl	%ecx, %eax
	jmp	LBB0_11
LBB0_2:
	movq	_LTC2978_MFR_VIN_PEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %r8
	addq	$16, %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	jmp	LBB0_3
LBB0_8:
	movq	_LTC2978_MFR_TEMPERATURE_PEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movslq	%r14d, %rdx
	leaq	(,%rdx,4), %r8
	addq	8(%r15), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ltc_get_max                    ## TAILCALL
LBB0_5:
	movl	%ecx, %eax
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_LTC2978_MFR_VIN_PEAK,4,2       ## @LTC2978_MFR_VIN_PEAK
	.comm	_LTC2978_MFR_VOUT_PEAK,4,2      ## @LTC2978_MFR_VOUT_PEAK
	.comm	_LTC2978_MFR_TEMPERATURE_PEAK,4,2 ## @LTC2978_MFR_TEMPERATURE_PEAK
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_ltc2978_read_word_data_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc2978_read_word_data_common
_ltc2978_read_word_data_common:         ; @ltc2978_read_word_data_common
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_pmbus_get_driver_info
	bl	_to_ltc2978_data
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	w0, #0
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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x20
	bl	_ltc_wait_ready
	tbnz	w0, #31, LBB0_2
; %bb.4:
Lloh2:
	adrp	x8, _ENODATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _LTC2978_MFR_VOUT_PEAK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LTC2978_MFR_VOUT_PEAK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ltc_read_word_data
	mov	x8, x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	x9, [x21]
	ldr	w0, [x9, w19, sxtw #2]
	cmp	w8, w0
	b.le	LBB0_2
; %bb.7:
	sxtw	x10, w19
	str	w8, [x9, x10, lsl #2]
	mov	x0, x8
	b	LBB0_2
LBB0_8:
Lloh8:
	adrp	x8, _LTC2978_MFR_VIN_PEAK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LTC2978_MFR_VIN_PEAK@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, x21, #16
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _LTC2978_MFR_TEMPERATURE_PEAK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LTC2978_MFR_TEMPERATURE_PEAK@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	ldr	x8, [x21, #8]
	add	x4, x8, w19, sxtw #2
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ltc_get_max
LBB0_11:
	mov	x0, x8
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_LTC2978_MFR_VIN_PEAK,4,2       ; @LTC2978_MFR_VIN_PEAK
	.comm	_LTC2978_MFR_VOUT_PEAK,4,2      ; @LTC2978_MFR_VOUT_PEAK
	.comm	_LTC2978_MFR_TEMPERATURE_PEAK,4,2 ; @LTC2978_MFR_TEMPERATURE_PEAK
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_ltc2978_read_word_data_common
.subsections_via_symbols
