	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83627ehf_update_pwm
_w83627ehf_update_pwm:                  ## @w83627ehf_update_pwm
	.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	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_W83627EHF_PWM_MODE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	xorl	%ecx, %ecx
	btl	%eax, %r14d
	setae	%cl
	movq	8(%r13), %rax
	movl	%ecx, (%rax,%rbx,4)
	movq	_W83627EHF_PWM_ENABLE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%rax,%rbx,4), %ecx
	movl	%r14d, %eax
	sarl	%cl, %eax
	andl	$3, %eax
	incl	%eax
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_w83627ehf_read_value
	movq	40(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%r15d, %eax
	movl	%r12d, %ecx
	sarl	%cl, %eax
	andl	$15, %eax
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	(%r13), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %ecx
	btl	%ebx, %ecx
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %r12d
	cmpq	$1, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_W83627EHF_REG_PWM_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_w83627ehf_read_value
	movq	%rax, %r14
	movq	_W83627EHF_REG_TOLERANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_w83627ehf_read_value
	movq	%rax, %r15
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83627EHF_REG_PWM_ENABLE,8,3   ## @W83627EHF_REG_PWM_ENABLE
	.comm	_W83627EHF_REG_TOLERANCE,8,3    ## @W83627EHF_REG_TOLERANCE
	.comm	_W83627EHF_PWM_MODE_SHIFT,8,3   ## @W83627EHF_PWM_MODE_SHIFT
	.comm	_W83627EHF_PWM_ENABLE_SHIFT,8,3 ## @W83627EHF_PWM_ENABLE_SHIFT
	.no_dead_strip	_w83627ehf_update_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83627ehf_update_pwm
_w83627ehf_update_pwm:                  ; @w83627ehf_update_pwm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	ldrb	w9, [x0, #4]
	tbnz	w9, #0, LBB0_3
; %bb.2:
	mov	w20, #0
	mov	w21, #0
	cmp	w8, #2
	b.ge	LBB0_4
	b	LBB0_11
LBB0_3:
Lloh0:
	adrp	x8, _W83627EHF_REG_PWM_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83627EHF_REG_PWM_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	x20, x0
Lloh3:
	adrp	x8, _W83627EHF_REG_TOLERANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W83627EHF_REG_TOLERANCE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	x21, x0
Lloh6:
	adrp	x8, _W83627EHF_PWM_MODE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _W83627EHF_PWM_MODE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8]
	mvn	w9, w20
	lsr	w8, w9, w8
	and	w8, w8, #0x1
	ldp	x9, x10, [x19, #8]
	str	w8, [x9]
Lloh9:
	adrp	x8, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8]
	asr	w8, w20, w8
	and	w8, w8, #0x3
	add	w8, w8, #1
	str	w8, [x10]
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	ldr	x8, [x19, #40]
	str	x0, [x8]
	and	w8, w21, #0xf
	ldr	x9, [x19, #24]
	str	w8, [x9]
	ldr	w8, [x19]
	ubfx	w21, w21, #4, #4
	cmp	w8, #2
	b.lt	LBB0_11
LBB0_4:
	ldrb	w9, [x19, #4]
	tbz	w9, #1, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _W83627EHF_PWM_MODE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _W83627EHF_PWM_MODE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x8, #4]
Lloh15:
	adrp	x9, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldp	x10, x11, [x19, #8]
	ldr	x12, [x19, #32]
	mvn	w13, w20
	lsr	w8, w13, w8
	and	w8, w8, #0x1
	str	w8, [x10, #4]
	ldr	w8, [x9, #4]
	asr	w8, w20, w8
	and	w8, w8, #0x3
	add	w8, w8, #1
	str	w8, [x11, #4]
	ldr	w1, [x12, #4]
	mov	x0, x19
	bl	_w83627ehf_read_value
	ldr	x8, [x19, #40]
	str	x0, [x8, #8]
	ldr	x8, [x19, #24]
	str	w21, [x8, #4]
	ldr	w8, [x19]
LBB0_6:
	cmp	w8, #3
	b.lt	LBB0_11
; %bb.7:
	mov	w22, #2
Lloh18:
	adrp	x23, _W83627EHF_REG_PWM_ENABLE@GOTPAGE
Lloh19:
	ldr	x23, [x23, _W83627EHF_REG_PWM_ENABLE@GOTPAGEOFF]
Lloh20:
	adrp	x24, _W83627EHF_REG_TOLERANCE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _W83627EHF_REG_TOLERANCE@GOTPAGEOFF]
Lloh22:
	adrp	x25, _W83627EHF_PWM_MODE_SHIFT@GOTPAGE
Lloh23:
	ldr	x25, [x25, _W83627EHF_PWM_MODE_SHIFT@GOTPAGEOFF]
Lloh24:
	adrp	x26, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGE
Lloh25:
	ldr	x26, [x26, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #4]
	lsr	w9, w9, w22
	tbz	w9, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	lsl	x27, x22, #2
	ldr	w1, [x8, x27]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	x20, x0
	ldr	x8, [x24]
	ldr	w1, [x8, x27]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	x21, x0
	ldr	x8, [x25]
	ldr	w8, [x8, x27]
	mvn	w9, w20
	lsr	w8, w9, w8
	and	w8, w8, #0x1
	ldp	x9, x10, [x19, #8]
	str	w8, [x9, x27]
	ldr	x8, [x26]
	ldr	w8, [x8, x27]
	asr	w8, w20, w8
	and	w8, w8, #0x3
	add	w8, w8, #1
	str	w8, [x10, x27]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, x27]
	mov	x0, x19
	bl	_w83627ehf_read_value
	ldr	x8, [x19, #40]
	str	x0, [x8, x22, lsl #3]
	and	w8, w21, #0xf
	ldr	x9, [x19, #24]
	str	w8, [x9, x27]
	ldr	w8, [x19]
	b	LBB0_8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_W83627EHF_REG_PWM_ENABLE,8,3   ; @W83627EHF_REG_PWM_ENABLE
	.comm	_W83627EHF_REG_TOLERANCE,8,3    ; @W83627EHF_REG_TOLERANCE
	.comm	_W83627EHF_PWM_MODE_SHIFT,8,3   ; @W83627EHF_PWM_MODE_SHIFT
	.comm	_W83627EHF_PWM_ENABLE_SHIFT,8,3 ; @W83627EHF_PWM_ENABLE_SHIFT
	.no_dead_strip	_w83627ehf_update_pwm
.subsections_via_symbols
