	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max34440_write_word_data
_max34440_write_word_data:              ## @max34440_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	%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_max34440_data
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_14
## %bb.1:
	movq	%rax, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_MAX34440_MFR_VOUT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$32767, %ecx                    ## imm = 0x7FFF
	callq	_pmbus_write_word_data
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	_MAX34440_MFR_VOUT_PEAK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_11:
	movq	_MAX34440_MFR_TEMPERATURE_PEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$32768, %ecx                    ## imm = 0x8000
	callq	_pmbus_write_word_data
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movl	(%r15), %ecx
	movq	_max34446@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_15
## %bb.13:
	movq	_MAX34446_MFR_TEMPERATURE_AVG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MAX34446_MFR_POUT_PEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_pmbus_write_word_data
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	_MAX34446_MFR_POUT_AVG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_MAX34440_MFR_IOUT_PEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_pmbus_write_word_data
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movl	(%r15), %ecx
	movq	_max34446@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_10
## %bb.9:
	movq	_max34451@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_10
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_MAX34446_MFR_IOUT_AVG@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmbus_write_word_data          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MAX34446_MFR_POUT_PEAK,4,2     ## @MAX34446_MFR_POUT_PEAK
	.comm	_MAX34446_MFR_POUT_AVG,4,2      ## @MAX34446_MFR_POUT_AVG
	.comm	_MAX34440_MFR_VOUT_MIN,4,2      ## @MAX34440_MFR_VOUT_MIN
	.comm	_MAX34440_MFR_VOUT_PEAK,4,2     ## @MAX34440_MFR_VOUT_PEAK
	.comm	_MAX34440_MFR_IOUT_PEAK,4,2     ## @MAX34440_MFR_IOUT_PEAK
	.comm	_max34446,4,2                   ## @max34446
	.comm	_max34451,4,2                   ## @max34451
	.comm	_MAX34446_MFR_IOUT_AVG,4,2      ## @MAX34446_MFR_IOUT_AVG
	.comm	_MAX34440_MFR_TEMPERATURE_PEAK,4,2 ## @MAX34440_MFR_TEMPERATURE_PEAK
	.comm	_MAX34446_MFR_TEMPERATURE_AVG,4,2 ## @MAX34446_MFR_TEMPERATURE_AVG
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_max34440_write_word_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max34440_write_word_data
_max34440_write_word_data:              ; @max34440_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	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_pmbus_get_driver_info
	bl	_to_max34440_data
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x21, x0
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:
Lloh2:
	adrp	x8, _MAX34440_MFR_VOUT_MIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX34440_MFR_VOUT_MIN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #32767
	bl	_pmbus_write_word_data
	cbnz	w0, LBB0_15
; %bb.3:
Lloh5:
	adrp	x8, _MAX34440_MFR_VOUT_PEAK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX34440_MFR_VOUT_PEAK@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh7:
	adrp	x8, _ENODATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_5:
Lloh10:
	adrp	x8, _MAX34440_MFR_TEMPERATURE_PEAK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX34440_MFR_TEMPERATURE_PEAK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #32768
	bl	_pmbus_write_word_data
	cbnz	w0, LBB0_15
; %bb.6:
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _max34446@GOTPAGE
Lloh14:
	ldr	x9, [x9, _max34446@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.7:
Lloh16:
	adrp	x8, _MAX34446_MFR_TEMPERATURE_AVG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX34446_MFR_TEMPERATURE_AVG@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh18:
	adrp	x8, _MAX34446_MFR_POUT_PEAK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX34446_MFR_POUT_PEAK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_pmbus_write_word_data
	cbnz	w0, LBB0_15
; %bb.9:
Lloh21:
	adrp	x8, _MAX34446_MFR_POUT_AVG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX34446_MFR_POUT_AVG@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh23:
	adrp	x8, _MAX34440_MFR_IOUT_PEAK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX34440_MFR_IOUT_PEAK@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_pmbus_write_word_data
	cbnz	w0, LBB0_15
; %bb.11:
	ldr	w8, [x21]
Lloh26:
	adrp	x9, _max34446@GOTPAGE
Lloh27:
	ldr	x9, [x9, _max34446@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _max34451@GOTPAGE
Lloh30:
	ldr	x10, [x10, _max34451@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_14
; %bb.12:
Lloh32:
	adrp	x8, _MAX34446_MFR_IOUT_AVG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MAX34446_MFR_IOUT_AVG@GOTPAGEOFF]
LBB0_13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	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	_pmbus_write_word_data
LBB0_14:
	mov	w0, #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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX34446_MFR_POUT_PEAK,4,2     ; @MAX34446_MFR_POUT_PEAK
	.comm	_MAX34446_MFR_POUT_AVG,4,2      ; @MAX34446_MFR_POUT_AVG
	.comm	_MAX34440_MFR_VOUT_MIN,4,2      ; @MAX34440_MFR_VOUT_MIN
	.comm	_MAX34440_MFR_VOUT_PEAK,4,2     ; @MAX34440_MFR_VOUT_PEAK
	.comm	_MAX34440_MFR_IOUT_PEAK,4,2     ; @MAX34440_MFR_IOUT_PEAK
	.comm	_max34446,4,2                   ; @max34446
	.comm	_max34451,4,2                   ; @max34451
	.comm	_MAX34446_MFR_IOUT_AVG,4,2      ; @MAX34446_MFR_IOUT_AVG
	.comm	_MAX34440_MFR_TEMPERATURE_PEAK,4,2 ; @MAX34440_MFR_TEMPERATURE_PEAK
	.comm	_MAX34446_MFR_TEMPERATURE_AVG,4,2 ; @MAX34446_MFR_TEMPERATURE_AVG
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_max34440_write_word_data
.subsections_via_symbols
