	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc2978_write_word_data
_ltc2978_write_word_data:               ## @ltc2978_write_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_pmbus_get_driver_info
	movq	%rax, %rdi
	callq	_to_ltc2978_data
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_9:
	movq	40(%rax), %rcx
	movslq	%r14d, %rdx
	movl	$65535, (%rcx,%rdx,4)           ## imm = 0xFFFF
	movq	72(%rax), %rcx
	movl	$0, (%rcx,%rdx,4)
	jmp	LBB0_8
LBB0_12:
	movq	%r15, %rdi
	callq	_ltc_wait_ready
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movabsq	$136339441875967, %rcx          ## imm = 0x7C0000007BFF
	movq	%rcx, 48(%rax)
	jmp	LBB0_8
LBB0_11:
	movq	56(%rax), %rcx
	movslq	%r14d, %rdx
	movl	$31743, (%rcx,%rdx,4)           ## imm = 0x7BFF
	movq	64(%rax), %rcx
	movl	$31744, (%rcx,%rdx,4)           ## imm = 0x7C00
	movq	%rax, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_4
LBB0_7:
	movl	$31744, 32(%rax)                ## imm = 0x7C00
	jmp	LBB0_8
LBB0_5:
	movabsq	$136335146908672, %rcx          ## imm = 0x7BFF00007C00
	movq	%rcx, 8(%rax)
	jmp	LBB0_3
LBB0_6:
	movq	16(%rax), %rcx
	movslq	%r14d, %rdx
	movl	$31744, (%rcx,%rdx,4)           ## imm = 0x7C00
	movq	24(%rax), %rcx
	movl	$64511, (%rcx,%rdx,4)           ## imm = 0xFBFF
LBB0_8:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	jmp	LBB0_4
LBB0_2:
	movabsq	$136335146908672, %rcx          ## imm = 0x7BFF00007C00
	movq	%rcx, (%rax)
LBB0_3:
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ltc2978_clear_peaks            ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_ltc2978_write_word_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ltc2978_write_word_data
lCPI0_0:
	.long	31743                           ; 0x7bff
	.long	31744                           ; 0x7c00
lCPI0_1:
	.long	31744                           ; 0x7c00
	.long	31743                           ; 0x7bff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ltc2978_write_word_data:               ; @ltc2978_write_word_data
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_pmbus_get_driver_info
	bl	_to_ltc2978_data
	sub	w8, w21, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %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:
	ldr	x8, [x0, #40]
	mov	x9, x20
	sbfiz	x9, x9, #2, #32
	mov	w10, #65535
	str	w10, [x8, x9]
	ldr	x8, [x0, #72]
	str	wzr, [x8, x9]
	b	LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_ltc_wait_ready
	tbnz	w0, #31, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _ENODATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #48]
	b	LBB0_12
LBB0_7:
	mov	x8, x20
	sbfiz	x8, x8, #2, #32
	mov	w9, #31743
	ldp	x10, x11, [x0, #56]
	str	w9, [x10, x8]
	mov	w9, #31744
	b	LBB0_11
LBB0_8:
	mov	w8, #31744
	str	w8, [x0, #32]
	b	LBB0_12
LBB0_9:
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x0, #8]
	b	LBB0_14
LBB0_10:
	sbfiz	x8, x20, #2, #32
	mov	w9, #31744
	ldp	x10, x11, [x0, #16]
	str	w9, [x10, x8]
	mov	w9, #64511
LBB0_11:
	str	w9, [x11, x8]
LBB0_12:
	mov	x1, x19
	mov	x2, x20
	b	LBB0_15
LBB0_13:
Lloh9:
	adrp	x8, lCPI0_1@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x0]
LBB0_14:
	mov	x1, x19
	mov	w2, #0
LBB0_15:
	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	_ltc2978_clear_peaks
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_ltc2978_write_word_data
.subsections_via_symbols
