	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zl6100_write_word_data
_zl6100_write_word_data:                ## @zl6100_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_pmbus_get_driver_info
	movq	%rax, %rdi
	callq	_to_zl6100_data
	testl	%r15d, %r15d
	jle	LBB0_2
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rax, %r14
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.3:
	movq	_MFR_VMON_OV_FAULT_LIMIT@GOTPCREL(%rip), %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	%r12d, %edi
	callq	_zl6100_l2d
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %edi
	movl	$11, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %edi
	callq	_zl6100_d2l
	movl	%eax, %r12d
LBB0_5:
	movq	_MFR_VMON_UV_FAULT_LIMIT@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_6:
	movq	_PMBUS_VIRT_BASE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_1
	jmp	LBB0_9
LBB0_7:
	movl	%r12d, %edi
	callq	_zl6100_l2d
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %edi
	movl	$9, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %edi
	callq	_zl6100_d2l
	movl	%eax, %r12d
LBB0_8:
	movl	(%rbx), %ebx
	movq	%r13, %rdi
	callq	_pmbus_clear_cache
LBB0_9:
	movq	%r14, %rdi
	callq	_zl6100_wait
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_pmbus_write_word_data
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, (%r14)
	movl	%ebx, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MFR_VMON_OV_FAULT_LIMIT,4,2    ## @MFR_VMON_OV_FAULT_LIMIT
	.comm	_MFR_VMON_UV_FAULT_LIMIT,4,2    ## @MFR_VMON_UV_FAULT_LIMIT
	.comm	_PMBUS_VIRT_BASE,4,2            ## @PMBUS_VIRT_BASE
	.no_dead_strip	_zl6100_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 zl6100_write_word_data
_zl6100_write_word_data:                ; @zl6100_write_word_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	bl	_pmbus_get_driver_info
	bl	_to_zl6100_data
	cmp	w19, #1
	b.lt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	mov	x20, x0
	sub	w9, w23, #128
	cmp	w9, #3
	b.hi	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _MFR_VMON_OV_FAULT_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MFR_VMON_OV_FAULT_LIMIT@GOTPAGEOFF]
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	mov	x0, x22
	bl	_zl6100_l2d
	add	w8, w0, w0, lsl #2
	lsl	w0, w8, #1
	mov	w1, #11
	bl	_DIV_ROUND_CLOSEST
	bl	_zl6100_d2l
	mov	x22, x0
LBB0_5:
Lloh7:
	adrp	x8, _MFR_VMON_UV_FAULT_LIMIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MFR_VMON_UV_FAULT_LIMIT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _PMBUS_VIRT_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PMBUS_VIRT_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w23
	b.le	LBB0_1
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_zl6100_l2d
	add	w8, w0, w0, lsl #2
	lsl	w0, w8, #1
	mov	w1, #9
	bl	_DIV_ROUND_CLOSEST
	bl	_zl6100_d2l
	mov	x22, x0
Lloh12:
	adrp	x8, _MFR_VMON_OV_FAULT_LIMIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MFR_VMON_OV_FAULT_LIMIT@GOTPAGEOFF]
LBB0_8:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_pmbus_clear_cache
LBB0_9:
	mov	x0, x20
	bl	_zl6100_wait
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_pmbus_write_word_data
	mov	x19, x0
	bl	_ktime_get
	str	w0, [x20]
	mov	x0, x19
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MFR_VMON_OV_FAULT_LIMIT,4,2    ; @MFR_VMON_OV_FAULT_LIMIT
	.comm	_MFR_VMON_UV_FAULT_LIMIT,4,2    ; @MFR_VMON_UV_FAULT_LIMIT
	.comm	_PMBUS_VIRT_BASE,4,2            ; @PMBUS_VIRT_BASE
	.no_dead_strip	_zl6100_write_word_data
.subsections_via_symbols
