	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_create_fan_tach_channel
_aspeed_create_fan_tach_channel:        ## @aspeed_create_fan_tach_channel
	.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
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movl	%ecx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	%edx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13,%r14,4), %rbx
	movl	16(%r12), %edi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_aspeed_set_fan_tach_ch_enable
	movq	(%r12), %rax
	movl	$1, (%rax,%rbx,4)
	movq	8(%r12), %rax
	movl	%r15d, (%rax,%rbx,4)
	movl	16(%r12), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_aspeed_set_fan_tach_ch_source
	incq	%r14
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aspeed_create_fan_tach_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_create_fan_tach_channel
_aspeed_create_fan_tach_channel:        ; @aspeed_create_fan_tach_channel
	.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
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	w23, w2
	mov	w24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x22, [x20], #4
	ldr	w0, [x21, #16]
	mov	x1, x22
	mov	w2, #1
	bl	_aspeed_set_fan_tach_ch_enable
	lsl	x8, x22, #2
	ldp	x9, x10, [x21]
	str	w24, [x9, x8]
	str	w19, [x10, x8]
	ldr	w0, [x21, #16]
	mov	x1, x22
	mov	x2, x19
	bl	_aspeed_set_fan_tach_ch_source
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_aspeed_create_fan_tach_channel
.subsections_via_symbols
