	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_create_type
_aspeed_create_type:                    ## @aspeed_create_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_M_PWM_DIV_H@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	movq	48(%rdi), %rdx
	movq	_TYPEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movq	_M_PWM_DIV_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	40(%rdi), %rdi
	movl	%edx, (%rdi,%rsi,4)
	movq	_M_PWM_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	32(%rbx), %rdi
	movl	%edx, (%rdi,%rsi,4)
	movl	(%rbx), %edi
	movl	(%r8), %edx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	callq	_aspeed_set_pwm_clock_values
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	movl	$1, %edx
	callq	_aspeed_set_tacho_type_enable
	movq	_M_TACH_CLK_DIV@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	movq	24(%rbx), %rdx
	movq	(%r14), %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movq	_M_TACH_UNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	16(%rbx), %rdi
	movl	%edx, (%rdi,%rsi,4)
	movq	_M_TACH_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	8(%rbx), %rax
	movl	%edi, (%rax,%rsi,4)
	movl	(%rbx), %edi
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	movl	(%r8), %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_aspeed_set_tacho_type_values   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PWM_DIV_H,4,2                ## @M_PWM_DIV_H
	.comm	_TYPEM,8,3                      ## @TYPEM
	.comm	_M_PWM_DIV_L,4,2                ## @M_PWM_DIV_L
	.comm	_M_PWM_PERIOD,4,2               ## @M_PWM_PERIOD
	.comm	_M_TACH_CLK_DIV,4,2             ## @M_TACH_CLK_DIV
	.comm	_M_TACH_UNIT,4,2                ## @M_TACH_UNIT
	.comm	_M_TACH_MODE,4,2                ## @M_TACH_MODE
	.no_dead_strip	_aspeed_create_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_create_type
_aspeed_create_type:                    ; @aspeed_create_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _M_PWM_DIV_H@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PWM_DIV_H@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x10, [x0, #48]
Lloh2:
	adrp	x20, _TYPEM@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TYPEM@GOTPAGEOFF]
	ldr	x1, [x20]
	lsl	x11, x1, #2
	str	w9, [x10, x11]
Lloh4:
	adrp	x9, _M_PWM_DIV_L@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_PWM_DIV_L@GOTPAGEOFF]
	ldr	w10, [x9]
	ldp	x13, x12, [x0, #32]
	str	w10, [x12, x11]
Lloh6:
	adrp	x10, _M_PWM_PERIOD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M_PWM_PERIOD@GOTPAGEOFF]
	ldr	w12, [x10]
	str	w12, [x13, x11]
	ldr	w0, [x0]
	ldr	w2, [x8]
	ldr	w3, [x9]
	ldr	w4, [x10]
	bl	_aspeed_set_pwm_clock_values
	ldr	w0, [x19]
	ldr	x1, [x20]
	mov	w2, #1
	bl	_aspeed_set_tacho_type_enable
Lloh8:
	adrp	x8, _M_TACH_CLK_DIV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_TACH_CLK_DIV@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x10, [x19, #24]
	ldr	x1, [x20]
	lsl	x11, x1, #2
	str	w9, [x10, x11]
Lloh10:
	adrp	x9, _M_TACH_UNIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M_TACH_UNIT@GOTPAGEOFF]
	ldr	w10, [x9]
	ldp	x13, x12, [x19, #8]
	str	w10, [x12, x11]
Lloh12:
	adrp	x10, _M_TACH_MODE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _M_TACH_MODE@GOTPAGEOFF]
	ldr	w12, [x10]
	str	w12, [x13, x11]
	ldr	w0, [x19]
	ldr	w2, [x10]
	ldr	w3, [x9]
	ldr	w4, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_aspeed_set_tacho_type_values
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PWM_DIV_H,4,2                ; @M_PWM_DIV_H
	.comm	_TYPEM,8,3                      ; @TYPEM
	.comm	_M_PWM_DIV_L,4,2                ; @M_PWM_DIV_L
	.comm	_M_PWM_PERIOD,4,2               ; @M_PWM_PERIOD
	.comm	_M_TACH_CLK_DIV,4,2             ; @M_TACH_CLK_DIV
	.comm	_M_TACH_UNIT,4,2                ; @M_TACH_UNIT
	.comm	_M_TACH_MODE,4,2                ; @M_TACH_MODE
	.no_dead_strip	_aspeed_create_type
.subsections_via_symbols
